<DIV>Hi again, </DIV>
<DIV> </DIV>
<DIV>Of course. What I would like to do is computing an output image from 2 input images: the output image is the correlation matrix of the 2 input images computing through FFT. So, my operations on the overall image is to compute the FFT of each input image, my pixel wise operation is to compute the pixel wise multiplication of each complex FFT of the input images. </DIV>
<DIV> </DIV>
<DIV>Isabelle<BR><BR><B><I>Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr></I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Wed, 02 Nov 2 o005 00:18:47 +0100, Renaud Isabelle <RENAUISA@YAHOO.FR><BR>wrote:<BR><BR>> Hi,<BR>> yes, it is to apply on 2 inputs of the same type: more precisely, on two <BR>> slices of one image 3D. So, what you mean is that I just have to derive <BR>> my own filter from itkImageToImageFilter and just modify the constructor <BR>> of it.<BR><BR>That's it :-)<BR><BR>> Can you give me some filters builded like this?<BR><BR>http://www.itk.org/Doxygen/html/classitk_1_1ReconstructionByDilationImageFilter.html<BR>http://www.itk.org/Doxygen/html/classitk_1_1MaskImageFilter.html<BR>...<BR><BR>> - Moreover, I would like to implement a pixel-wise function as well as <BR>> functions on the overall of my 2 inputs. But, after a first sight on <BR>> itkBinaryFunctorImageFilter, it seems that a pixel wise function <BR>> required to be defined in a
ThreadedGenerateData function whereas my <BR>> operations on the overall input images need GenerateData function, right?<BR><BR>What do you mean by "operations on the overall input images" ?<BR>Do you want to compute an output image ? Or a single value ?<BR>Can you give more precision about what you want to do ?<BR><BR>> ISabelle<BR>><BR>> Gaetan Lehmann <GAETAN.LEHMANN@JOUY.INRA.FR>a écrit :<BR>><BR>> Hi Isabelle,<BR>><BR>> There is lots of filters with 2 inputs. If you want to have 2 inputs of <BR>> same<BR>> type, you just have to declare it in the constructor with :<BR>><BR>> this->SetNumberOfRequiredInputs(2);<BR>><BR>> If the 2 image can be of different types, it's a little more complex. You<BR>> should look at ConnectedComponentImageFilter which do that. Here is the<BR>> relevant part of code in the header :<BR>><BR>> void SetMaskImage(TMaskImage* mask) {<BR>> this->SetNthInput(1, const_cast( mask ));<BR>>
}<BR>><BR>> const TMaskImage* GetMaskImage() const {<BR>> return (static_cast(this->ProcessObject::GetInput(1)));<BR>> }<BR>><BR>> Regards,<BR>><BR>> Gaetan<BR>><BR>> On Tuesday 01 November 2005 22:33, Renaud Isabelle wrote:<BR>>> Hi,<BR>>><BR>>> I am triing to write a filter that will have two inputs and one output.<BR>>><BR>>> The only example that I found with two inputs is<BR>>> itkBinaryFunctorImageFilter. However, my filter will not compute a<BR>>> pixel-wise operation.<BR>>><BR>>> I am looking for a file like itkImageToImageFilter but with 2 inputs. <BR>>> Then,<BR>>> I could derive my own filter from it.<BR>>><BR>>> Any example or any idea to give, please?<BR>>><BR>>> Isabelle<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>> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! <BR>> Messenger<BR>> Téléchargez le ici !<BR><BR><BR><BR>-- <BR>Gaëtan Lehmann<BR>Biologie du Développement et de la Reproduction<BR>INRA de Jouy-en-Josas (France)<BR>tel: +33 1 34 65 29 66 fax: 01 34 65 29 09<BR>http://voxel.jouy.inra.fr<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>