[ITK] [ITK-users] rigid landmark registartion simpleITK (python)
Young, Ryan
Ryan.Young at seattlechildrens.org
Thu Feb 11 20:00:46 EST 2016
Hello,
I am trying to rigidly align a group of landmarked samples. I have calculated a rigid transformation matrix. When I apply this to the sample (see code below) is sample is commonly clipped. It seems like the transformation is pushing the sample out out its physically defined space and the data is lost. How should I set things up to that large translations and rotations do not result in parts of the image being lost.
affine_center = (0,0,0)
affine_translation =translation
affine_matrix =T.flatten(order='C')
affine = sitk.AffineTransform(affine_matrix, affine_translation, affine_center)
imAffine = sitk.Resample(im, imRef, affine,sitk.sitkLinear, sitk.sitkUInt32)
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160212/a9d4ac3f/attachment.html>
-------------- next part --------------
_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list