<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">You should probably look at one of the registration examples to see how an optimizer is used:</div><div class="gmail_default" style=""><font face="verdana, sans-serif"><a href="http://itk.org/Wiki/ITK/Examples/Included/Registration">http://itk.org/Wiki/ITK/Examples/Included/Registration</a></font><br></div><div class="gmail_default" style=""><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font face="verdana, sans-serif">HTH</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Oct 31, 2015 at 7:07 AM, Carmine Pagliaro <span dir="ltr"><<a href="mailto:carminepagliaro@gmail.com" target="_blank">carminepagliaro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you for the reply, Dr. McCormick.<div>But that not help me.</div><div>I don't understand how I can create a new optimizer algorithm and pass it to the registration->SetOptimizer() method <br><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-10-30 17:02 GMT+01:00 Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Carmine,<br>
<br>
To see all the optimizer options, go to the base class in Doxygen:<br>
<br>
<a href="http://www.itk.org/Doxygen/html/classitk_1_1SingleValuedNonLinearOptimizer.html" rel="noreferrer" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1SingleValuedNonLinearOptimizer.html</a><br>
<br>
Then, look at the inheritance diagram. There are options like the<br>
OnePlusOneEvolutionaryOptimizer and ParticleSwarmOptimizer.<br>
<br>
Hope this helps,<br>
Matt<br>
<br>
On Fri, Oct 30, 2015 at 10:59 AM, Carmine Pagliaro<br>
<<a href="mailto:carminepagliaro@gmail.com" target="_blank">carminepagliaro@gmail.com</a>> wrote:<br>
> Dear ITK team,<br>
><br>
> in the file attacched I register 2 mri image in nifti format.<br>
><br>
> the optimization algorithm is gradientdescent<br>
><br>
> typedef itk::RegularStepGradientDescentOptimizer OptimizerType;<br>
><br>
> I would make one myself using annealing. so how can I do this?<br>
><br>
> how could I must modified the follow code ? what is optimizer?<br>
><br>
> OptimizerType::Pointer optimizer = OptimizerType::New();<br>
> registration->SetOptimizer( optimizer );<br>
><br>
> thank you very much<br>
> --<br>
> Carmine Pagliaro<br>
> Life is for sharing.<br>
><br>
><br>
> _____________________________________<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/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/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_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/mailman/listinfo/insight-users</a><br>
><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Carmine Pagliaro<div><div><font color="#cc0000" face="times new roman, serif" size="1"><i>Life is for sharing.</i></font><br></div></div><div><br></div></div></div>
</div>
</div></div><br>_____________________________________<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/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/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_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/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>