<DIV>Hi again, </DIV>
<DIV>&nbsp;</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&nbsp;input images. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Isabelle<BR><BR><B><I>Gaetan Lehmann &lt;gaetan.lehmann@jouy.inra.fr&gt;</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>&gt; Hi,<BR>&gt; yes, it is to apply on 2 inputs of the same type: more precisely, on two <BR>&gt; slices of one image 3D. So, what you mean is that I just have to derive <BR>&gt; my own filter from itkImageToImageFilter and just modify the constructor <BR>&gt; of it.<BR><BR>That's it :-)<BR><BR>&gt; 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>&gt; - Moreover, I would like to implement a pixel-wise function as well as <BR>&gt; functions on the overall of my 2 inputs. But, after a first sight on <BR>&gt; itkBinaryFunctorImageFilter, it seems that a pixel wise function <BR>&gt; required to be defined in a
 ThreadedGenerateData function whereas my <BR>&gt; 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>&gt; ISabelle<BR>&gt;<BR>&gt; Gaetan Lehmann <GAETAN.LEHMANN@JOUY.INRA.FR>a écrit :<BR>&gt;<BR>&gt; Hi Isabelle,<BR>&gt;<BR>&gt; There is lots of filters with 2 inputs. If you want to have 2 inputs of <BR>&gt; same<BR>&gt; type, you just have to declare it in the constructor with :<BR>&gt;<BR>&gt; this-&gt;SetNumberOfRequiredInputs(2);<BR>&gt;<BR>&gt; If the 2 image can be of different types, it's a little more complex. You<BR>&gt; should look at ConnectedComponentImageFilter which do that. Here is the<BR>&gt; relevant part of code in the header :<BR>&gt;<BR>&gt; void SetMaskImage(TMaskImage* mask) {<BR>&gt; this-&gt;SetNthInput(1, const_cast( mask ));<BR>&gt;
 }<BR>&gt;<BR>&gt; const TMaskImage* GetMaskImage() const {<BR>&gt; return (static_cast(this-&gt;ProcessObject::GetInput(1)));<BR>&gt; }<BR>&gt;<BR>&gt; Regards,<BR>&gt;<BR>&gt; Gaetan<BR>&gt;<BR>&gt; On Tuesday 01 November 2005 22:33, Renaud Isabelle wrote:<BR>&gt;&gt; Hi,<BR>&gt;&gt;<BR>&gt;&gt; I am triing to write a filter that will have two inputs and one output.<BR>&gt;&gt;<BR>&gt;&gt; The only example that I found with two inputs is<BR>&gt;&gt; itkBinaryFunctorImageFilter. However, my filter will not compute a<BR>&gt;&gt; pixel-wise operation.<BR>&gt;&gt;<BR>&gt;&gt; I am looking for a file like itkImageToImageFilter but with 2 inputs. <BR>&gt;&gt; Then,<BR>&gt;&gt; I could derive my own filter from it.<BR>&gt;&gt;<BR>&gt;&gt; Any example or any idea to give, please?<BR>&gt;&gt;<BR>&gt;&gt; Isabelle<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; ---------------------------------<BR>&gt;&gt; Appel audio GRATUIT partout dans le monde avec le
 nouveau Yahoo! <BR>&gt;&gt; Messenger<BR>&gt;&gt; Téléchargez le ici !<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><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>