[Insight-users] Question about getting current angle in eachiteration

Jay Li chyumm at yahoo.com
Thu Jul 29 20:24:05 EDT 2004


Hi, Julien,
 
Thanks a lot for your reply.  I wonder if ITK has a function to get the rotation angle for each iteration for every registration method, such like demons, multi-resolutional and so so, not only for itkEuler3DTransform. Is GetCurrentPosition able to do so?  
 
Thanks
 
Jay

Julien Jomier <jjomier at cs.unc.edu> wrote:
Hi Jay,

The observer in the registration process has access to the parameters of the
transformation. For instance, if you are using itkEuler3DTransform, the
first three parameters represents the current angles (around X,Y and Z). So
you can do something like:

double currentRotationAngleX = optimizer->GetCurrentPosition()[0];

and this will return the current angle around the X axis.

Hope this helps,

Julien

-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
On Behalf Of Jay Li
Sent: Thursday, July 29, 2004 5:41 PM
To: insight-users at itk.org
Subject: [Insight-users] Question about getting current angle in
eachiteration


Dear All,

I have a simple question about the observer in the process of registration.
Can I get the current rotation angle from each iteration? Does ITK have
GetCurrentAngle() this kind of function? 

Thanks.

Jay


Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20040729/379c06cb/attachment.htm


More information about the Insight-users mailing list