[Insight-users] MultiResMIRegistration Example

David Rich David.Rich@trw.com
Thu, 21 Mar 2002 17:01:39 -0500


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_CE936558.2E4F886D
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

I am trying to test the MultiResMIRegistration example on a couple of =
images.  However, I do not understand some of the parameters of the input =
file.  In particular, line 14 specifies the translation scale at each =
resolution level.  These seemed to affect my output in a strange way, so I =
checked into the code:


  // set the translation scale
  itk::Point<double,7> scales;
  scales.Fill(1.0);
  for( int j =3D 4; j < 7; j++ )
    {
    scales[j] =3D 1.0 / vnl_math_sqr( m_TranslationScales[0] );
    }
  internalRegistrator->GetOptimizer()->GetTransform()->SetScale( scales );
 =20

First, I don't understand why the code reads in 5 different scales and =
then only uses the first one. =20

Second, it appears that the scaling fills 3 parameters, 4 through 6. =20

I would appreciate it if somenone  could explane what this is supposed to =
do.  I can't find any other documentation on it.

Also, input lines 10 and 11 read in the starting level shrink factor for =
each of the two images.  Is this the term used for resolution reduction?

Thanks for any help.

Dave Rich

--=_CE936558.2E4F886D
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 8pt MS Sans Serif; MARGIN-LEFT: =
2px">
<DIV><FONT size=3D1>I am trying to test the MultiResMIRegistration example =
on a=20
couple of images.&nbsp; However, I do not understand some of the parameters=
 of=20
the input file.&nbsp; In particular, line 14 specifies the translation =
scale at=20
each resolution level.&nbsp; These seemed to affect my output in a strange =
way,=20
so I checked into the code:</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><BR>&nbsp; // set the translation scale<BR>&nbsp;=20
itk::Point&lt;double,7&gt; scales;<BR>&nbsp; scales.Fill(1.0);<BR>&nbsp; =
for(=20
int j =3D 4; j &lt; 7; j++ )<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;=
=20
scales[j] =3D 1.0 / vnl_math_sqr( m_TranslationScales[0] );<BR>&nbsp;&nbsp;=
&nbsp;=20
}<BR>&nbsp;=20
internalRegistrator-&gt;GetOptimizer()-&gt;GetTransform()-&gt;SetScale( =
scales=20
);<BR>&nbsp; <BR></DIV>
<DIV>First, I don't understand why the code reads in 5 different scales =
and then=20
only uses the first one.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Second, it appears that the scaling fills&nbsp;3 parameters, 4 =
through=20
6.&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>I would appreciate it if somenone&nbsp; could explane what this is =
supposed=20
to do.&nbsp; I can't find any other documentation on it.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also, input lines 10 and 11 read in the starting level shrink factor =
for=20
each of the two images.&nbsp; Is this the term used for resolution=20
reduction?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for any help.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Dave Rich</DIV></BODY></HTML>

--=_CE936558.2E4F886D--