<DIV>Thanks. </DIV>
<DIV>&nbsp;</DIV>
<DIV>But don't you think I will have to define&nbsp;2 types of rescalefilter such as:</DIV>
<DIV>&nbsp;</DIV>
<DIV>typedef itk::RescaleIntensityImageFilter&lt;<STRONG>ImageType3D</STRONG>,&nbsp; ImageType3D&gt; <STRONG>RescaleWithLog</STRONG>;</DIV>
<DIV>typedef itk::RescaleIntensityImageFilter&lt;<STRONG>ImageAdaptorType</STRONG>,&nbsp;ImageType3D&gt; <STRONG>RescaleWithoutLog</STRONG>;&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Because, if on, &nbsp;the input of my rescale filter is a filter's output. If off, the input of my rescale filter will be an ImageAdaptor. OR can I switch so easily the input of my rescale filter? </DIV>
<DIV>&nbsp;</DIV>
<DIV>Isabelle<BR><BR><B><I>Karthik Krishnan &lt;Karthik.Krishnan@kitware.com&gt;</I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">if (on)<BR>{<BR>logFilter-&gt;SetInput( adaptor );<BR>rescaleFilter-&gt;SetInput( logFilter-&gt;GetOutput()) ;<BR>}<BR>else<BR>{<BR>rescaleFilter-&gt;SetInput( adaptor );<BR>}<BR><BR>rescaleFilter-&gt;Update();<BR><BR>Renaud Isabelle wrote:<BR><BR>&gt; Hi,<BR>&gt; <BR>&gt; I'm working on building an user interface in Visual C++ in order to <BR>&gt; display medical images and execute some image processing.<BR>&gt; <BR>&gt; I would offer the choice to the user to execute some image processing <BR>&gt; such as logarithmic scaling or not in order to improve visualization <BR>&gt; of the image. (depending on the quality of the image displayed)<BR>&gt; <BR>&gt; Here is my actual pipeline:<BR>&gt; <BR>&gt; *adaptor-&gt;SetPixelAccessor(acessor); //*ImageAdaptor<BR>&gt; * adaptor-&gt;SetImage(image);*<BR>&gt; ** <BR>&gt; * logFilter-&gt;SetInput( adaptor ); //*LogImageFilter<BR>&gt; *
 *<BR>&gt; * rescaleFilter-&gt;SetInput( logFilter-&gt;GetOutput() <BR>&gt; ); //*RescaleIntensityImageFilter<BR>&gt; * <BR>&gt; connector-&gt;SetInput( rescaleFilter-&gt;GetOutput() <BR>&gt; ); //*ImageToVTKImageFilter<BR>&gt; ** <BR>&gt; --&gt; I would make turn on/off log filter () possible if user desires. <BR>&gt; (by turn on/off a radio button). How could I proceed? Is it a way to <BR>&gt; make it properly?<BR>&gt; <BR>&gt; Isabelle<BR>&gt;<BR>&gt; * *<BR>&gt;<BR>&gt; *<BR>&gt; * <BR>&gt; <BR>&gt; <BR>&gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo! <BR>&gt; Messenger<BR>&gt; Téléchargez le ici ! <BR>&gt; <HTTP: fr.messenger.yahoo.com *http: default mail_taglines messenger us.rd.yahoo.com><BR>&gt;<BR>&gt;<BR>&gt;------------------------------------------------------------------------<BR>&gt;<BR>&gt;_______________________________________________<BR>&gt;Insight-users
 mailing list<BR>&gt;Insight-users@itk.org<BR>&gt;http://www.itk.org/mailman/listinfo/insight-users<BR>&gt; <BR>&gt;<BR></BLOCKQUOTE><p>
                <hr size=1> 
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br> 
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>