[ImageJ-bugs] [Bug 931] Possible error when down-converting from 32- or 16-bit-depth images (to 16- or 8-bit).

bugzilla at fiji.sc bugzilla at fiji.sc
Thu Sep 18 09:55:44 CDT 2014


http://fiji.sc/bugzilla/show_bug.cgi?id=931

Wayne Rasband <wsr at nih.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |wsr at nih.gov
         Resolution|---                         |WONTFIX

--- Comment #2 from Wayne Rasband <wsr at nih.gov> ---
You can disable scaling when down-converting by unchecking "Scale when
converting" in Edit>Options>Conversions. The example macro below outputs

  'Scale when converting' checked
  8: 8-248
  32: 8-248
  8: 0-255
  'Scale when converting' not checked
  8: 8-248
  32: 8-248
  8: 8-248


  // test "Scale when converting" option
  setBatchMode(true);
  run("Conversions...", "scale");
  print("'Scale when converting' checked");
  run("Blobs (25K)");
  printRange();
  run("32-bit");
  printRange();
  run("8-bit");
  printRange();
  print("'Scale when converting' not checked");
  run("Conversions...", " ");
  run("Blobs (25K)");
  printRange();
  run("32-bit");
  printRange();
  run("8-bit");
  printRange();

  function printRange() {
      getStatistics(area, mean, min, max);
      print(bitDepth+": "+min+"-"+max);
  }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-bugs/attachments/20140918/2f16aeb2/attachment.html>


More information about the Imagej-bugs mailing list