[Insight-users] Re: Help in identifying the Min and max intensity values

Luis Ibanez luis . ibanez at kitware . com
Fri, 26 Jul 2002 14:08:35 -0400


Hi cspl,

In order to use the  itkMinimumMaximumImageFilter:
http://www.itk.org/Insight/Doxygen/html/classitk_1_1MinimumMaximumImageFilter.html

to compute the lowest and highest intensity values in an
image you have to call first the "Update()" method of the
filter.

The values returned by GetMinimum() and GetMaximum() are
only valid after calling Update(), before that they are
just initialized to the numeric min,max values of the
pixel type.


You may want to use the alternative "Calculator" class:

http://www.itk.org/Insight/Doxygen/html/classitk_1_1MinimumMaximumImageCalculator.html

Which will not act as an image filter. In order to use this Calculator
class you must call first "Compute()" and then GetMinimum(),
and/or GetMaximum(). If you are interested in only one of them, you can
use just "ComputeMinimum()" or "ComputeMaximum()" before calling
GetMinimum(), GetMaximum().

Hope that helps

    Luis

============================================

cspl wrote:
> 
> I am working with class itkMinimumMaximumImageFilter.In that I calling 
> functions
> Getmaximum,GetMinimum functions.They are returning min and max range of 
> pixel type.I want image
> low intensity value and high intensity value of image. For that which 
> class is suitable to use.
> 
> Thanking you,
> Regards,
> Ramakrishna
>