<DIV>Hi. I am triing to implement some filters on complex images.</DIV>
<DIV> </DIV>
<DIV>First one needs to use the conjugate of one number: how can I call this? I think that only real() and imag() are available so this is my function to produce the multiplication of a complex image with the conjugate of another:</DIV>
<DIV> </DIV>
<DIV>namespace Function { </DIV>
<DIV>template< class TInput1, class TInput2, class TOutput><BR>class MultComplex<BR>{<BR>public:<BR> MultComplex() {}<BR> ~MultComplex() {}<BR> inline TOutput operator()( const TInput1 & A, const TInput2 & B)<BR> {<BR> <STRONG>TOutput v;<BR> real(v) = A.real()*B.real() + A.imag()*B.imag();<BR> imag(v) = A.imag()*B.real() - A.real()*B.imag();<BR> return v;<BR></STRONG> }<BR>}; <BR>}</DIV>
<DIV> </DIV>
<DIV>It seems that I can't access real and imaginary parts of my complex number with real() and imag() functions.</DIV>
<DIV> </DIV>
<DIV>Please help me,</DIV>
<DIV> </DIV>
<DIV>Isabelle </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>