<DIV>Thanks. </DIV>
<DIV> </DIV>
<DIV>But don't you think I will have to define 2 types of rescalefilter such as:</DIV>
<DIV> </DIV>
<DIV>typedef itk::RescaleIntensityImageFilter<<STRONG>ImageType3D</STRONG>, ImageType3D> <STRONG>RescaleWithLog</STRONG>;</DIV>
<DIV>typedef itk::RescaleIntensityImageFilter<<STRONG>ImageAdaptorType</STRONG>, ImageType3D> <STRONG>RescaleWithoutLog</STRONG>; </DIV>
<DIV> </DIV>
<DIV>Because, if on, 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> </DIV>
<DIV>Isabelle<BR><BR><B><I>Karthik Krishnan <Karthik.Krishnan@kitware.com></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->SetInput( adaptor );<BR>rescaleFilter->SetInput( logFilter->GetOutput()) ;<BR>}<BR>else<BR>{<BR>rescaleFilter->SetInput( adaptor );<BR>}<BR><BR>rescaleFilter->Update();<BR><BR>Renaud Isabelle wrote:<BR><BR>> Hi,<BR>> <BR>> I'm working on building an user interface in Visual C++ in order to <BR>> display medical images and execute some image processing.<BR>> <BR>> I would offer the choice to the user to execute some image processing <BR>> such as logarithmic scaling or not in order to improve visualization <BR>> of the image. (depending on the quality of the image displayed)<BR>> <BR>> Here is my actual pipeline:<BR>> <BR>> *adaptor->SetPixelAccessor(acessor); //*ImageAdaptor<BR>> * adaptor->SetImage(image);*<BR>> ** <BR>> * logFilter->SetInput( adaptor ); //*LogImageFilter<BR>> *
*<BR>> * rescaleFilter->SetInput( logFilter->GetOutput() <BR>> ); //*RescaleIntensityImageFilter<BR>> * <BR>> connector->SetInput( rescaleFilter->GetOutput() <BR>> ); //*ImageToVTKImageFilter<BR>> ** <BR>> --> I would make turn on/off log filter () possible if user desires. <BR>> (by turn on/off a radio button). How could I proceed? Is it a way to <BR>> make it properly?<BR>> <BR>> Isabelle<BR>><BR>> * *<BR>><BR>> *<BR>> * <BR>> <BR>> <BR>><BR>> ------------------------------------------------------------------------<BR>> *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo! <BR>> Messenger<BR>> Téléchargez le ici ! <BR>> <HTTP: fr.messenger.yahoo.com *http: default mail_taglines messenger us.rd.yahoo.com><BR>><BR>><BR>>------------------------------------------------------------------------<BR>><BR>>_______________________________________________<BR>>Insight-users
mailing list<BR>>Insight-users@itk.org<BR>>http://www.itk.org/mailman/listinfo/insight-users<BR>> <BR>><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>