[ITK-users] D

Matt McCormick matt.mccormick at kitware.com
Thu May 22 14:54:41 EDT 2014


Hi Rosangela,

Since the registration/resampling process is aware of spacing, origin,
size, and direction, that is correct -- there are no extra steps
necessary.

That may work for creating the inverse transform, but it would be more
convenient to use the GetInverse [1] method on the transform.

Hope this helps,
Matt

[1] http://www.itk.org/Doxygen/html/classitk_1_1Transform.html#aec45529ed771515f684b96c5bbff6fc6

On Tue, May 13, 2014 at 8:20 AM,  <rosangelaerrico at virgilio.it> wrote:
> Dear community,
>
> I registered a T1 MRI brain scan to the MNI152 template, for this task I use
> "itkCenteredTransformInitializer" and "itkVersorRigid3DTransform".
> My images and the template have different direction: [1, -1 ,1] and
> [-1,-1,1].
> As the last step of registration process I use the resulting transform to
> map my image into the template space by using "itk::ResampleImageFilter". As
> spacing, origin, size and direction  of the output image I pass those of the
> template.
> For example: (i.e. resampler->SetOutputDirection( fixedImage->GetDirection()
> )).
> Finally I get back to the original space:
> I pass the inverse rotation matrix (matrix.GetInverse()) and offset * (-1)
> into an itkAffineTransform.
> Is this procedure correct?
> I have to pass the center of rotation?
>
> Thank in advance for any help
> Rosangela
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> 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
>


More information about the Insight-users mailing list