NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #2009 (new defect)

Opened 2013-10-07T15:21:51-05:00

DefaultAutoscaleMethod could use valid bits range

Reported by: bdezonia Owned by: bdezonia
Priority: major Milestone: imagej2-unscheduled
Component: Data Model Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1628


When the DefaultAutoscaleMethod is run on an interval of data that has a single value (data min == data max) the returned display range is [type min, type max]. It would be nice if it instead ran from [valid bits min, valid bits max]. However valid bits is associated with an ImgPlus and this autoscale method works on an IterableInterval<T>. Decide whether to provide a version that uses ImgPlus and restricts to valid bits.