[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/insight-users/attachments/20170527/85f60a5e/attachment.html>


More information about the Insight-users mailing list