NOTICE! This is a static HTML version of a legacy LOCI Software ticket.

LOCI projects are now located on GitHub. The Bio-Formats project can be found here.

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: bio-formats-4.2
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.

Change History

comment:1 Changed 2010-02-05T09:31:27-06:00 by melissa

  • Status changed from new to closed
  • Resolution set to fixed

(In [5886]) Fixed autoscaling to use actual minimum and maximum pixel values. Closes #469.

comment:2 Changed 2010-07-09T12:55:02-05:00 by melissa

  • Milestone bio-formats-4.2 deleted

Milestone bio-formats-4.2 deleted

comment:3 Changed 2010-07-13T16:58:52-05:00 by melissa

  • Milestone set to bio-formats-4.2