[Insight-users] matrix 4x4
Todd_liu
njuptlw at 163.com
Wed Aug 26 23:53:50 EDT 2009
Hi
I use the code :
std::cout << "\nmatrix\n" << affine->GetMatrix() << "\n";
to show the matrix. The resulte is a 3*3 matrix.
We can find some info in the ItkSoftGuide.pdf 8.8.16, the affinetransform
have (N+1)*(N) Number of
Parameters .
I think in 3D space , the parameters setting maybe contain two parts :
firstly , SetMatrix(3X3 matrix) .secondly,affine->Translate(1x3 vector) .
Fyi
Todd
Elena Molina wrote:
>
> Hi,
>
> I have 4x4 matrix from other function and I want to apply this
> on Volume. I used ResampleImagefilter.
> I´m using the method SetMatrix() from AffineTransformation:
>
> TransformType::MatrixType matrix;
> affine ->SetMatrix(matrix);
>
> I have problems when I am doing:
>
> resample->SetTransform(affine);
>
> The error is Access violation reading location 0x425c3250.
>
> Please give me suggestions in doing my task. Thankss.
>
> Elena
>
> *
> *
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
--
View this message in context: http://www.nabble.com/matrix-4x4-tp25159393p25165679.html
Sent from the ITK - Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list