<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi!<BR>
<BR>
I have a problem using an Affine transform with Mattes Mutual metric. <BR>
<BR>
When I used an Affine transform, with <FONT color=#800000 size=2><FONT color=#800000 size=2>MeanSquaresImageToImageMetric, <FONT color=#000000>my registration works perfectly, but it is really slow because my images are big (it last for 45 minutes). My images are between 2000x2000 and 4000x4000 pixels, with spacig of (1,1,1). </FONT></FONT></FONT><BR>
<FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000></FONT></FONT></FONT> <BR>
<FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000>So i decided to use <FONT color=#800000 size=2><FONT color=#800000 size=2>MattesMutualInformationImageToImageMetric<FONT color=#000000>, that is a faster metric. But the results are not good.</FONT></FONT></FONT></FONT></FONT></FONT><BR>
<FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000></FONT></FONT></FONT></FONT></FONT></FONT> <BR>
<FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000></FONT></FONT></FONT></FONT></FONT></FONT> <BR>
<FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000>In both, I used the followin parameters:</FONT></FONT></FONT></FONT></FONT></FONT><BR>
<FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000></FONT></FONT></FONT></FONT></FONT></FONT> <BR><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT size=2>
optimizerScales[0] = 1.0;<BR>
optimizerScales[1] = 1.0;<BR>
optimizerScales[2] = 1.0;<BR>
optimizerScales[3] = 1.0;<BR>
optimizerScales[4] = 1.0/1000.0;<BR>
</FONT><FONT size=2>optimizerScales[5] = 1.0/1000.0;</FONT><BR>
<BR><FONT size=2><FONT size=2>
steplength = 0.1<BR>
<BR><FONT size=2>
maxNumberOfIterations = 300;<BR>
<BR>
minimumStepLength = 0.0001;<BR>
<BR>
<FONT color=#000000>and </FONT><BR>
<FONT color=#000000></FONT><FONT size=2> <BR>
optimizer->MinimizeOn();<BR>
<BR>
<FONT color=#000000>For the Mattes Mutual metric, I tried a lot of combinations of histogram bins and spatial samples, starting with 50 bins and a 20% of the pixels as spatial samples. But no matter what i try, the results are not good.</FONT><BR>
<FONT color=#000000></FONT> <BR>
<FONT color=#000000>In both programs, i use <FONT color=#800000 size=2><FONT color=#800000 size=2>LinearInterpolateImageFunction <FONT color=#000000>and</FONT> </FONT></FONT><FONT color=#800000 size=2><FONT color=#800000 size=2>RegularStepGradientDescentOptimizer.</FONT></FONT></FONT><BR>
<FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2></FONT></FONT></FONT> <BR>
<FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000>How can I tune the parameters of the program with MattesMutual to obtain the same results???</FONT></FONT></FONT></FONT><BR>
<FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000></FONT></FONT></FONT></FONT> <BR>
<FONT color=#000000><FONT color=#800000 size=2><FONT color=#800000 size=2><FONT color=#000000>Thank you all!!!</FONT><BR></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT><br /><hr />Charlas más divertidas con el nuevo <a href='http://download.live.com' target='_new'>Windows Live Messenger</a></body>
</html>