<DIV>Hi all,</DIV>
<DIV>Do you know the newmat C++ library? It is a free matrix library <A href="http://www.robertnz.net/ol_doc.htm">http://www.robertnz.net/ol_doc.htm</A> and it allows you to do the matrix operations as if you are doing in matlab (such as C=A+B ). </DIV>
<DIV> </DIV>
<DIV>Anyways, I wanted to include this into my project, but I figured that in newmat.h, there is a class called MartixType such as:</DIV>
<DIV> </DIV>
<DIV>
<DIV>-----------------------------------------------------------------------</DIV></DIV>
<DIV>class MatrixType<BR>{<BR>public:<BR> enum Attribute { .....</DIV>
<DIV>-----------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Well, also the itkRigid2DTransform.txx has such stuff :-( </DIV>
<DIV> </DIV>
<DIV>such as:</DIV>
<DIV>-------------------------------------------------------------------------</DIV>
<DIV>template<class TScalarType><BR>void<BR>Rigid2DTransform<TScalarType>::<BR>SetRotationMatrix(const MatrixType & matrix )<BR>{<BR> itkDebugMacro("setting m_RotationMatrix to " << matrix ); <BR> // The matrix must be orthogonal otherwise it is not<BR> // representing a valid rotaion in 2D space<BR> typename MatrixType::InternalMatrixType test = <BR> matrix.GetVnlMatrix() * matrix.GetTranspose();</DIV>
<DIV>------------------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Any easy way to get around this problem? Help will be very much appreciated,</DIV>
<DIV> </DIV>
<DIV>Thanks a lot,</DIV>
<DIV>Seniha</DIV><p>
                <hr size=1>Yahoo! for Good<br>
<a href="http://store.yahoo.com/redcross-donate3/">Click here to donate</a> to the Hurricane Katrina relief effort.