NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 25 - ImageProcessor.resize(int,int) does not preserve properties line min,max and LUT
ImageProcessor.resize(int,int) does not preserve properties line min,max and LUT
Status: RESOLVED INVALID
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
PC Linux
: P2 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2008-12-14 12:31 CST by Albert Cardona
Modified: 2009-03-14 14:05 CDT
0 users

See Also:

Description Albert Cardona 2008-12-14 12:31:05 CST
... and there is no reason at all why it shouldn't.

All ImageProcessor subclasses are affected.
Comment 1 Albert Cardona 2009-03-14 14:05:13 CDT
The min,max concept in ImageJ is so broken, that it's not worth addressing in any further way that could introduce even more bugs.
For example, setMinAndMax on a ColorProcessor or ByteProcessor results in the histogram being stretch to that new range, and the pixels updated to reflect the change.
But setMinAndMax on ShortProcessor or FloatProcessor does not stretch the histogram: only changes the pixels8 array, which is used to generate the java.awt.Image for display.

Just be extra careful with min and max in any of the ij.process.* classes.