[ITK] [ITK-users] Change codes from C++ supported ITK to Python supported ITK

沈庄明 zhuangming.shen at sphic.org.cn
Fri May 26 23:34:05 EDT 2017


Hi all,


I don't know how to write "itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RIP" in the codes below using Python supported ITK. Could someone provide me an example? Thanks in advance.


itk::OrientImageFilter<ImageType,ImageType>::Pointer orienter =
itk::OrientImageFilter<ImageType,ImageType>::New();
orienter->UseImageDirectionOn();
orienter->SetDesiredCoordinateOrientation(itk::SpatialOrientation::ITK_COORDINATE_ORIENTATION_RIP);
orienter->SetInput(rval);
orienter->Update();


Regards,

Zhuangming Shen

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170527/85f60a5e/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