[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. However, I do not understand some of the parameters=
of=20
the input file. In particular, line 14 specifies the translation =
scale at=20
each resolution level. These seemed to affect my output in a strange =
way,=20
so I checked into the code:</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><BR> // set the translation scale<BR> =20
itk::Point<double,7> scales;<BR> scales.Fill(1.0);<BR> =
for(=20
int j =3D 4; j < 7; j++ )<BR> {<BR> =
=20
scales[j] =3D 1.0 / vnl_math_sqr( m_TranslationScales[0] );<BR> =
=20
}<BR> =20
internalRegistrator->GetOptimizer()->GetTransform()->SetScale( =
scales=20
);<BR> <BR></DIV>
<DIV>First, I don't understand why the code reads in 5 different scales =
and then=20
only uses the first one. </DIV>
<DIV> </DIV>
<DIV>Second, it appears that the scaling fills 3 parameters, 4 =
through=20
6. </DIV>
<DIV> </DIV>
<DIV>I would appreciate it if somenone could explane what this is =
supposed=20
to do. I can't find any other documentation on it.</DIV>
<DIV> </DIV>
<DIV>Also, input lines 10 and 11 read in the starting level shrink factor =
for=20
each of the two images. Is this the term used for resolution=20
reduction?</DIV>
<DIV> </DIV>
<DIV>Thanks for any help.</DIV>
<DIV> </DIV>
<DIV>Dave Rich</DIV></BODY></HTML>
--=_CE936558.2E4F886D--