[Insight-users] Finding intensity range for an image
Glenn Pierce
glennpierce at connectfree.co.uk
Mon, 29 Mar 2004 00:44:20 +0100
--=-heLw6njNgA7JMlV3XCGv
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Thanks alot
Did a search dont know how I missed that.
On Sun, 2004-03-28 at 16:10 -0500, Bing Jian wrote:
> Google on "itk min max value" will give you following message.
>
> [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
>
> Previous message: [Insight-users] BSpline Interpolation
> Next message: [Insight-users] MRIRegistration example has problems
> Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>
> --------------------------------------------------------------------------------
>
> 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
>
>
>
>
> --
> Best wishes,
> Bing Jian
> bjian at cise.ufl.edu
>
>
> On Sun, 28 Mar 2004, Glenn Pierce wrote:
>
> > Hi
> >
> > Does anyone know how I can acquire the maximum and mininum intensity
> > values for an image in itk ?
> >
> > Basically this so I can auto scale the intensity range using
> > SetColorWindow and SetColorLevel of vtkImageViewer for each image.
> >
> > Thanks
> >
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
--=-heLw6njNgA7JMlV3XCGv
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.1.9">
</HEAD>
<BODY>
Thanks alot<BR>
<BR>
Did a search dont know how I missed that.<BR>
<BR>
<BR>
<BR>
On Sun, 2004-03-28 at 16:10 -0500, Bing Jian wrote:<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE><FONT COLOR="#000000">Google on "itk min max value" will give you following message.</FONT>
<FONT COLOR="#000000">[Insight-users] Re: Help in identifying the Min and</FONT>
<FONT COLOR="#000000">max intensity values</FONT>
<FONT COLOR="#000000">Luis Ibanez luis . ibanez at kitware . com</FONT>
<FONT COLOR="#000000">Fri, 26 Jul 2002 14:08:35 -0400</FONT>
<FONT COLOR="#000000">Previous message: [Insight-users] BSpline Interpolation</FONT>
<FONT COLOR="#000000">Next message: [Insight-users] MRIRegistration example has problems</FONT>
<FONT COLOR="#000000">Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]</FONT>
<FONT COLOR="#000000">--------------------------------------------------------------------------------</FONT>
<FONT COLOR="#000000">Hi cspl,</FONT>
<FONT COLOR="#000000">In order to use the itkMinimumMaximumImageFilter:</FONT>
<A HREF="http://www.itk.org/Insight/Doxygen/html/classitk_1_1MinimumMaximumImageFilter.html">http://www.itk.org/Insight/Doxygen/html/classitk_1_1MinimumMaximumImageFilter.html</A>
<FONT COLOR="#000000">to compute the lowest and highest intensity values in an</FONT>
<FONT COLOR="#000000">image you have to call first the "Update()" method of the</FONT>
<FONT COLOR="#000000">filter.</FONT>
<FONT COLOR="#000000">The values returned by GetMinimum() and GetMaximum() are</FONT>
<FONT COLOR="#000000">only valid after calling Update(), before that they are</FONT>
<FONT COLOR="#000000">just initialized to the numeric min,max values of the</FONT>
<FONT COLOR="#000000">pixel type.</FONT>
<FONT COLOR="#000000">You may want to use the alternative "Calculator" class:</FONT>
<A HREF="http://www.itk.org/Insight/Doxygen/html/classitk_1_1MinimumMaximumImageCalculator.html">http://www.itk.org/Insight/Doxygen/html/classitk_1_1MinimumMaximumImageCalculator.html</A>
<FONT COLOR="#000000">Which will not act as an image filter. In order to use this Calculator</FONT>
<FONT COLOR="#000000">class you must call first "Compute()" and then GetMinimum(),</FONT>
<FONT COLOR="#000000">and/or GetMaximum(). If you are interested in only one of them, you</FONT>
<FONT COLOR="#000000">can</FONT>
<FONT COLOR="#000000">use just "ComputeMinimum()" or "ComputeMaximum()" before calling</FONT>
<FONT COLOR="#000000">GetMinimum(), GetMaximum().</FONT>
<FONT COLOR="#000000">Hope that helps</FONT>
<FONT COLOR="#000000"> Luis</FONT>
<FONT COLOR="#000000">-- </FONT>
<FONT COLOR="#000000">Best wishes,</FONT>
<FONT COLOR="#000000">Bing Jian</FONT>
<A HREF="mailto:bjian at cise.ufl.edu">bjian at cise.ufl.edu</A>
<FONT COLOR="#000000">On Sun, 28 Mar 2004, Glenn Pierce wrote:</FONT>
<FONT COLOR="#000000">> Hi</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Does anyone know how I can acquire the maximum and mininum intensity</FONT>
<FONT COLOR="#000000">> values for an image in itk ?</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Basically this so I can auto scale the intensity range using</FONT>
<FONT COLOR="#000000">> SetColorWindow and SetColorLevel of vtkImageViewer for each image.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Thanks</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> _______________________________________________</FONT>
<FONT COLOR="#000000">> Insight-users mailing list</FONT>
<FONT COLOR="#000000">> </FONT><A HREF="mailto:Insight-users at itk.org">Insight-users at itk.org</A>
<FONT COLOR="#000000">> </FONT><A HREF="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT></PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
--=-heLw6njNgA7JMlV3XCGv--