[Insight-users] RescaleIntensityImageFilter doesn't respect user-set InputMinimum/Maximum

Zachary Pincus zpincus@stanford.edu
Wed May 19 08:23:05 EDT 2004


Hello,

The RescaleImageIntensityFilter provides methods to set the 
"InputMinimum" and "InputMaximum" values. This provision would lead one 
to believe that after setting these values, the rescaling will be from 
the user-defined input range to the user-defined output range.

However, in actuality, these user-defined values are ignored, and 
re-set to the minimum and maximum pixel values in the input image. 
(itkRescaleIntenistyImageFilter.txx, line 88.)

I'm trying to think of a good mechanism whereby the user can take 
control of these values.
Should the filter automatically note on setting the InputMix/Max that 
the user has requested this, and then not overrule them? Then how would 
the user turn this off?

Perhaps there should be additional methods to tell the class to use the 
current values or recalculate them? This seems a bit confusing, though.

Any thoughts?

Zach Pincus

Department of Biochemistry and Program in Biomedical Informatics
Stanford University School of Medicine




More information about the Insight-users mailing list