[Insight-users] fix registration parameters

Carmen Olmos carmen_olm at yahoo.es
Tue, 10 Feb 2004 12:07:42 +0100 (CET)


--0-1559852385-1076411262=:76278
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

Thank you for your answer Luis.

About the ongoing proposal for removing the center of rotation, what about adding a method FixParameter(parameter[]) to have the option of center or not center optimization - for example - without the need of reimplementing the registration function?
 
Regards,
Carmen


Luis Ibanez <luis.ibanez at kitware.com> wrote:

Hi Carmen

You can do this by copying the code of the itkCenteredRigid2Dtransform
into another file, renaming the class and modifying the following methods:

SetParameters()
GetParameters()
GetJacobian()

In SetParameters() and GetParameters() remove the insertion of the
center of rotation coordinates as part of the parameter array.

In GetJacobian() remove lines 276 to 282. and renumber the
indexes of the Jacobian in lines 285 to 291 to be 1 and 2
instead of 3 and 4.

Also in the header file replace

itkStaticConstMacro(ParametersDimension, unsigned int, 5);

with

itkStaticConstMacro(ParametersDimension, unsigned int, 3);

since now you will only have : angle, trans-X, trans-Y.

Please let us know if you find any problem performing
this changes,


---


FYI: There is an ongoing proposal for removing the center
of rotation from the parameter list of all the transforms.
In that case, most transforms will have the option of
a center of rotation but the coordinates of this center
will not participate in the optimization process.


Luis



--------------------
Carmen Olmos wrote:
> Hello,
> 
> I would like to perform a centered 2d registration fixing the center to 
> its initialization value (*to reduce the number of parameters to 
> optimize*) Is there a way to fix parameters?
> 
> Thanks,
> Carmen
> 
> ------------------------------------------------------------------------
> 
> 
> * Antivirus • Filtros antispam • 6 MB gratis*
> * ¿Todavía no tienes un correo inteligente?* 
> 
> 



_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users

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

    Antivirus #8226; Filtros antispam #8226; 6 MB gratis
    ¿Todavía no tienes un correo inteligente?
--0-1559852385-1076411262=:76278
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<DIV>Thank you for your answer Luis.<BR><BR>About the ongoing proposal for removing the center of rotation, what about adding a method FixParameter(parameter[]) to have the option of center or not center optimization - for example - without the need of reimplementing the registration function?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>Carmen<BR><BR><BR><B><I>Luis Ibanez &lt;luis.ibanez at kitware.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Carmen<BR><BR>You can do this by copying the code of the itkCenteredRigid2Dtransform<BR>into another file, renaming the class and modifying the following methods:<BR><BR>SetParameters()<BR>GetParameters()<BR>GetJacobian()<BR><BR>In SetParameters() and GetParameters() remove the insertion of the<BR>center of rotation coordinates as part of the parameter array.<BR><BR>In GetJacobian() remove lines 276 to 282. and renumber the<BR>indexes of the Jacobian in lines 285 to 291 to be 1 and 2<BR>instead of 3 and 4.<BR><BR>Also in the header file replace<BR><BR>itkStaticConstMacro(ParametersDimension, unsigned int, 5);<BR><BR>with<BR><BR>itkStaticConstMacro(ParametersDimension, unsigned int, 3);<BR><BR>since now you will only have : angle, trans-X, trans-Y.<BR><BR>Please let us know if you find any problem performing<BR>this changes,<BR><BR><BR>---<BR><BR><BR>FYI: There is an ongoing
 proposal for removing the center<BR>of rotation from the parameter list of all the transforms.<BR>In that case, most transforms will have the option of<BR>a center of rotation but the coordinates of this center<BR>will not participate in the optimization process.<BR><BR><BR>Luis<BR><BR><BR><BR>--------------------<BR>Carmen Olmos wrote:<BR>&gt; Hello,<BR>&gt; <BR>&gt; I would like to perform a centered 2d registration fixing the center to <BR>&gt; its initialization value (*to reduce the number of parameters to <BR>&gt; optimize*) Is there a way to fix parameters?<BR>&gt; <BR>&gt; Thanks,<BR>&gt; Carmen<BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; <BR>&gt; <HTTP: benefits es.docs.yahoo.com *http: mail_man tagline mail_es es.rd.yahoo.com /><BR>&gt; * Antivirus • Filtros antispam • 6 MB gratis*<BR>&gt; * ¿Todavía no tienes un correo inteligente?* <BR>&gt; <HTTP: benefits es.docs.yahoo.com *http: mail_man tagline mail_es
 es.rd.yahoo.com /><BR>&gt; <BR><BR><BR><BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users at itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users</BLOCKQUOTE><p><hr size=1><br>
<table><tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail_man/*http://es.docs.yahoo.com/benefits/"><img src="http://eur.i1.yimg.com/eur.yimg.com/i/es/mail/w/tagma.jpg" height=80 width=230 alt="" border=0 align="right"></a></td></tr>
<tr><td><a href="http://es.rd.yahoo.com/mail_es/tagline/mail_man/*http://es.docs.yahoo.com/benefits/" style="font-size: -2; font-family: Verdana; font-weight: bold; color: #73738c; text-decoration: none;"><B><FONT face=Verdana color=#73738c size=-2>&nbsp;&nbsp;&nbsp; Antivirus &#8226; 
Filtros antispam &#8226; 6 MB gratis</FONT></B><BR>
<B><FONT face=Verdana color=#73738c size=-2>&nbsp;&nbsp;&nbsp; ¿Todavía no tienes un correo inteligente?</FONT></B></a></td></tr></table>
--0-1559852385-1076411262=:76278--