[ITK-users] How to use itk::LandmarkBasedTransformInitializer for python supported ITK?

Matt McCormick matt.mccormick at kitware.com
Wed Aug 24 00:02:03 EDT 2016


Hi,

I added a Python version of the example to the wiki page, although it
required a few fixes to the wrapping.

This patch fixes wrapping of the LandmarkTransformInitializer class
for 2D Transform's:

  http://review.source.kitware.com/#/c/21481/

and this patch adds wrapping for std::vector< itk::Point > so the
landmarks can be added.

  http://review.source.kitware.com/#/c/21480/

Please review the patches.

Thanks,
Matt

On Tue, Aug 23, 2016 at 9:53 PM, 沈庄明 <zhuangming.shen at sphic.org.cn> wrote:
> Hi all,
>
>
> I'd like to do landmark based image registration using python supported ITK.
> I referred to this example
> (https://itk.org/Wiki/ITK/Examples/Registration/LandmarkBasedTransformInitializer)
> and want to modify the code to python. In this example,
> itk::LandmarkBasedTransformInitializer can be wrapped to python. But how to
> SetFixedLandmarks/SetMovingLandmarks using python? Because the input of
> SetFixedLandmarks/SetMovingLandmarks is fixedLandmarks/movingLandmarks,
> whose actual type is std::vector. Could anyone give me a short example on
> how to write it? Thanks in advance.
>
>
>
> Regards,
>
>
> Zhuangming Shen
>
>
> _____________________________________
> 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 Insight-users mailing list