[ITK] [ITK-users] Euler3DTransform not taking user defined Center of Rotation?
Matias
matimontg at gmail.com
Mon Apr 17 19:11:54 EDT 2017
Hi,I'm trying to rotate a volume and use an user defined center but no matter
what value I set, it seems the rotation is always performed using the same
center (not sure which, maybe a default center)?Here's the code I'm using..
am I missing something? typedef itk::Euler3DTransform< double >
TransformType; //Transform TransformType::Pointer transform =
TransformType::New(); double alfa, beta, gamma, centro_rotacion_X,
centro_rotacion_Y, centro_rotacion_Z, origenX,origenY; gamma =
atof(argv[2]); beta = atof(argv[3]); alfa = atof(argv[4]);
centro_rotacion_X = atof(argv[5]); centro_rotacion_Y = atof(argv[6]);
centro_rotacion_Z = atof(argv[7]); double centro[3] = { centro_rotacion_X,
centro_rotacion_Y, centro_rotacion_Z }; transform->SetCenter(centro);
transform->SetRotation(gamma, beta, alfa);
--
View this message in context: http://itk-users.7.n7.nabble.com/Euler3DTransform-not-taking-user-defined-Center-of-Rotation-tp38126.html
Sent from the ITK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170417/acdc68a2/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