<div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="verdana, sans-serif">Hi Ivan,</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">the optimizers in ITK minimize the metric, and since mutual information needs to be "bigger" it is prefixed by a minus so that optimizers try to increase its absolute value.</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">Regards,</font></div><div class="gmail_default"><font face="verdana, sans-serif">Dženan</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 5, 2016 at 8:34 AM, ivan <span dir="ltr"><<a href="mailto:ivan.granata.na@gmail.com" target="_blank">ivan.granata.na@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">with my example where i use<br>
<span class=""><br>
<br>
R.<wbr>setMetricAsMattesMutualInforma<wbr>tion(numberOfBins);<br>
<br>
double LearningRate = 8.0;<br>
</span> double minStep = 0.001;<br>
long numberOfIterations = 100;<br>
double relaxationFactor = 0.5;<br>
double gradientMagnitudeTolerance = 1e-006;<br>
<br>
R.<wbr>setOptimizerAsRegularStepGradi<wbr>entDescent<br>
<br>
<br>
<br>
i receive a txt file and this video output<br>
<br>
0 = -0,15630 : [0,746321, -7,955376]<br>
1 = -0,17854 : [1,437118, -15,910358]<br>
2 = -0,19452 : [1,031387, -23,317717]<br>
3 = -0,20341 : [3,410042, -21,038059]<br>
4 = -0,19856 : [1,526970, -21,439759]<br>
5 = -0,20108 : [0,143113, -22,783732]<br>
6 = -0,20340 : [1,089391, -22,619125]<br>
7 = -0,20366 : [1,647981, -21,912288]<br>
8 = -0,20073 : [1,184824, -22,085392]<br>
9 = -0,20140 : [0,993548, -22,508374]<br>
10 = -0,20281 : [1,192105, -22,356475]<br>
11 = -0,20253 : [1,117475, -22,167086]<br>
12 = -0,20169 : [1,075827, -22,241268]<br>
13 = -0,20225 : [1,126952, -22,206076]<br>
14 = -0,20222 : [1,122912, -22,147089]<br>
15 = -0,20209 : [1,108291, -22,166964]<br>
16 = -0,20222 : [1,118988, -22,159212]<br>
17 = -0,20224 : [1,125776, -22,145295]<br>
18 = -0,20224 : [1,118157, -22,146866]<br>
19 = -0,20226 : [1,119790, -22,149387]<br>
-------<br>
itk::simple::Transform<br>
TranslationTransform (0000000019CD54D0)<br>
<span class=""> RTTI typeinfo: class itk::TranslationTransform<<wbr>double,3><br>
Reference Count: 3<br>
</span> Modified Time: 2659<br>
<span class=""> Debug: Off<br>
Object Name:<br>
Observers:<br>
none<br>
</span> Offset: [1.11979, -22.1494, 4.96231]<br>
<span class=""><br>
Optimizer stop condition: RegularStepGradientDescentOpti<wbr>mizerv4: Gradient<br>
</span>magnitude tolerance met after 20 iterations. Gradient magnitude (9.89e-007)<br>
is less than gradient magnitude tolerance (1e-006).<br>
Iteration: 21<br>
Metric value: -0,202264<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/ITK-users-SimpleITK-for-Java-Image-Fusion-and-Co-registration-tp37600p37640.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/ITK-users-SimpleITK-for-<wbr>Java-Image-Fusion-and-Co-<wbr>registration-tp37600p37640.<wbr>html</a><br>
<span class="im HOEnZb">Sent from the ITK - Users mailing list archive at Nabble.com.<br>
</span><div class="HOEnZb"><div class="h5">______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br></div>