[ITK-users] [ITK] SetCenter() example for VersorRigid3DTransform

Timothee Evain tevain at telecom-paristech.fr
Mon Mar 13 05:50:29 EDT 2017


Hello,

You could use :
itk::OptimizerParameters<double> NewCenter(3);
NewCenter[0]=X;
NewCenter[1]=Y;
NewCenter[2]=Z;
MyTransform->SetFixedParameters(NewCenter);

or 

itk::Point<double,3> NewCenter;
NewCenter[0]=X;
NewCenter[1]=Y;
NewCenter[2]=Z;
MyTransform->SetCenter(NewCenter);

I've mostly used the first way, but the second should work also I think.

HTH

Tim,

----- Mail original -----
De: "Andrew Harris" <aharr8 at uwo.ca>
À: "Insight-users" <insight-users at itk.org>
Envoyé: Vendredi 10 Mars 2017 22:02:14
Objet: [ITK] [ITK-users]  SetCenter() example for VersorRigid3DTransform

Hello, 
I'm trying to set the center of rotation for a VersorRigid3DTransform to the middle of a 3D image in two dimensions and the top in the third. I have as of yet been unable to find an example in the wiki of doing this. The only example I've found appears to use a CenteredTransformInitializer to set the center of rotation to the center of the image. Is there an example of setting the center elsewhere, or if not, can someone provide me the syntax I would use? 


-- 

AH 





----------------------------------------------------------------------------------------------- 

This email and any attachments thereto may contain private, confidential, and privileged materials for the sole use of the intended recipient. Any reviewing, copying, or distribution of this email (or any attachments thereto) by other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently destroy this email and any attachments thereto. 

_____________________________________
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

_______________________________________________
Community mailing list
Community at itk.org
http://public.kitware.com/mailman/listinfo/community


More information about the Insight-users mailing list