Ticket #469 (closed defect: fixed)
Opened 2010-02-03T14:39:50-06:00
Last modified 2010-07-13T16:58:52-05:00
Problems autoscaling 1-bit data
Reported by: | curtis | Owned by: | melissa |
---|---|---|---|
Priority: | minor | Milestone: |
|
Component: | plugins | Severity: | serious |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
With some (maybe all?) 1-bit datasets, the image appears initially black in ImageJ even if the Autoscale option is checked.
For an example, see tiff/edward/TestDoc2.tif. It doesn't matter whether the "Use JAI instead of native TIFF support" option is checked in the LOCI Plugins Configuration—the autoscaling fails either way.
The problem is that after calling ImageProcessor.resetMinAndMax() in loci.plugins.util.ImagePlusTools.adjustColorRange, ImageJ reports the maximum as 255 instead of 1 for some reason.
One solution might be use loci.formats.MinMaxCalculator instead, but we should verify that performance won't be harmed too badly first—and only use it if the Autoscale option is checked.
(In [5886]) Fixed autoscaling to use actual minimum and maximum pixel values. Closes #469.