<DIV>Hi again, </DIV>
<DIV> </DIV>
<DIV>Because anyway, I have to add a filter to cast data, I decided to change my AbsImageAdaptor in a AbsImageFilter. :-D </DIV>
<DIV> </DIV>
<DIV>Thanks again, you were very helpful.</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">Yes, you are right. You could always cast the data type back to a common <BR>type as in, so your definitions of RescaleIntensityImageFilter are the <BR>samein both cases. You waste a cast operation though..<BR><BR>castFilter->SetInput( adaptor )<BR>if (on)<BR>{<BR>logFilter->SetInput(castFilter);<BR>rescaleFilter->SetInput( logFilter->GetOutput()) ;<BR>}<BR>else<BR>{<BR>rescaleFilter->SetInput( castFilter );<BR>}<BR><BR>rescaleFilter->Update();<BR><BR>Renaud Isabelle wrote:<BR><BR>> Thanks.<BR>> <BR>> But don't you think I will have to define 2 types of rescalefilter <BR>> such as:<BR>> <BR>> typedef itk::RescaleIntensityImageFilter<*ImageType3D*, ImageType3D> <BR>> *RescaleWithLog*;<BR>> typedef <BR>> itk::RescaleIntensityImageFilter<*ImageAdaptorType*, ImageType3D> <BR>> *RescaleWithoutLog*; <BR>> <BR>> Because, if
on, the input of my rescale filter is a filter's output. <BR>> If off, the input of my rescale filter will be an ImageAdaptor. OR can <BR>> I switch so easily the input of my rescale filter?<BR>> <BR>> Isabelle<BR>><BR>> */Karthik Krishnan <KARTHIK.KRISHNAN@KITWARE.COM>/* a écrit :<BR>><BR>> 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<BR>> processing<BR>> > such as logarithmic scaling or not in order to improve<BR>>
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<BR>> desires.<BR>> > (by turn on/off a radio button). How could I proceed? Is it a<BR>> way to<BR>> > make it properly?<BR>> ><BR>> > Isabelle<BR>> ><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>> ><BR>> ><BR>> ><BR>> >------------------------------------------------------------------------<BR>> ><BR>> >_______________________________________________<BR>> >Insigh! t-users mailing list<BR>> >Insight-users@itk.org<BR>> >http://www.itk.org/mailman/listinfo/insight-users<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>