[Insight-users] Question about getting current angle ineachiteration

Julien Jomier jjomier at cs.unc.edu
Mon Aug 2 16:24:31 EDT 2004


Hi Jay,

The get rotation angles makes sense only if the transformation your are
optimizing has a rotation. 
Demons algorithm is a non-rigid registration technique and therefore returns
a deformation field so the get rotation angle doesn't make any sense in this
case.
Regarding the GetCurrentPosition(), this function returns the array of
parameters you are optimizing so you can access the current angle if the
transformation has one.

best regards,

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 8:24 PM
To: Julien Jomier
Cc: insight-users at itk.org
Subject: RE: [Insight-users] Question about getting current angle
ineachiteration


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.



More information about the Insight-users mailing list