<DIV>Hi,</DIV>
<DIV> </DIV>
<DIV>I am triing to implement 2 filters: the first one to <STRONG>compute the complex conjugate</STRONG> of a complex image, the other one <STRONG>to compute the multiplication of 2 complex</STRONG> images. </DIV>
<DIV> </DIV>
<DIV>I saw that there are already a lot of files to compute operations on complex images:
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
<TBODY>
<TR>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Function_1_1ComplexToImaginary.html"><FONT color=#000000 size=2>ComplexToImaginary</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Function.html"><FONT color=#000000 size=2>itk::Function</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToImaginaryImageAdaptor.html"><FONT color=#000000 size=2>ComplexToImaginaryImageAdaptor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToImaginaryImageFilter.html"><FONT color=#000000 size=2>ComplexToImaginaryImageFilter</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Accessor_1_1ComplexToImaginaryPixelAccessor.html"><FONT color=#000000 size=2>ComplexToImaginaryPixelAccessor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Accessor.html"><FONT color=#000000 size=2>itk::Accessor</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Function_1_1ComplexToModulus.html"><FONT color=#000000 size=2>ComplexToModulus</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Function.html"><FONT color=#000000 size=2>itk::Function</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToModulusImageAdaptor.html"><FONT color=#000000 size=2>ComplexToModulusImageAdaptor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToModulusImageFilter.html"><FONT color=#000000 size=2>ComplexToModulusImageFilter</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Accessor_1_1ComplexToModulusPixelAccessor.html"><FONT color=#000000 size=2>ComplexToModulusPixelAccessor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Accessor.html"><FONT color=#000000 size=2>itk::Accessor</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Function_1_1ComplexToPhase.html"><FONT color=#000000 size=2>ComplexToPhase</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Function.html"><FONT color=#000000 size=2>itk::Function</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToPhaseImageAdaptor.html"><FONT color=#000000 size=2>ComplexToPhaseImageAdaptor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToPhaseImageFilter.html"><FONT color=#000000 size=2>ComplexToPhaseImageFilter</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Accessor_1_1ComplexToPhasePixelAccessor.html"><FONT color=#000000 size=2>ComplexToPhasePixelAccessor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Accessor.html"><FONT color=#000000 size=2>itk::Accessor</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Function_1_1ComplexToReal.html"><FONT color=#000000 size=2>ComplexToReal</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Function.html"><FONT color=#000000 size=2>itk::Function</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToRealImageAdaptor.html"><FONT color=#000000 size=2>ComplexToRealImageAdaptor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD></TR>
<TR>
<TD><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1ComplexToRealImageFilter.html"><FONT color=#000000 size=2>ComplexToRealImageFilter</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk.html"><FONT color=#000000 size=2>itk</FONT></A><FONT size=2><U>) </U></FONT></TD>
<TD><FONT size=2><U></U></FONT></TD>
<TD></TD></TR>
<TR>
<TD>
<P><A class=el href="http://www.itk.org/Doxygen/html/classitk_1_1Accessor_1_1ComplexToRealPixelAccessor.html"><FONT color=#000000 size=2>ComplexToRealPixelAccessor</FONT></A><FONT size=2><U> (</U></FONT><A class=el href="http://www.itk.org/Doxygen/html/namespaceitk_1_1Accessor.html"><FONT color=#000000 size=2>itk::Accessor</FONT></A><FONT size=2><U>)</U></FONT> </P>
<P> </P>
<P><FONT size=2>At first sight on </FONT><FONT size=2>itkComplexToImaginaryImageFilter.h, I see:</FONT></P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2>"<FONT size=3> </FONT></FONT></P>
<P><FONT size=2><FONT size=3><SPAN class=preprocessor>#include "<A class=code href="http://www.itk.org/Doxygen/html/itkUnaryFunctorImageFilter_8h.html">itkUnaryFunctorImageFilter.h</A>"</SPAN><BR><SPAN class=preprocessor>#include "vnl/vnl_math.h"</SPAN></FONT></FONT></P>
<P><FONT size=2><FONT size=3><SPAN class=preprocessor></SPAN></FONT></FONT> </P>
<P><FONT size=2><FONT size=3><SPAN class=preprocessor></SPAN><SPAN class=keyword>namespace </SPAN>Function { <BR><SPAN class=keyword>template</SPAN>< <SPAN class=keyword>class</SPAN> TInput, <SPAN class=keyword>class</SPAN> TOutput><BR></FONT><A name=l00034></A><FONT size=3><SPAN class=keyword>class </SPAN></FONT><A class=code href="http://www.itk.org/Doxygen/html/classitk_1_1Function_1_1ComplexToImaginary.html"><FONT size=3>ComplexToImaginary</FONT></A><BR><FONT size=3>{<BR></FONT><A name=l00039></A><FONT size=3><SPAN class=keyword>inline</SPAN> TOutput </FONT><A class=code href="http://www.itk.org/Doxygen/html/classitk_1_1Function_1_1ComplexToImaginary.html#a2"><FONT size=3>operator()</FONT></A><FONT size=3>( <SPAN class=keyword>const</SPAN> TInput & A )<BR>{ <SPAN class=keywordflow>return</SPAN> (TOutput)( <STRONG>A.imag()</STRONG> ); }<BR>}; <BR>}<BR></FONT>"</FONT></P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2>So I suppose that, the same way <STRONG>imag()</STRONG> exists, there shoud be a <STRONG>conjugate()</STRONG> operation that is already existing. How and where can I see a list of operations or operators existing for complex numbers. This could help me a lot to compute my owns filters.</FONT></P>
<P><FONT size=2></FONT> </P>
<P><FONT size=2>Thanks for help,</FONT></P>
<P> </P>
<P><FONT size=2>Isabelle</FONT> </P>
<P> </P>
<P> </P></TD></TR></TBODY></TABLE></DIV><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>