<div dir="ltr">ok</div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-31 17:49 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>
Use the existing optimizer classes as an example, and examine the API<br>
and its descriptions in the Doxygen documentation.<br>
<br>
HTH,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Oct 31, 2015 at 12:07 PM, Carmine Pagliaro<br>
<<a href="mailto:carminepagliaro@gmail.com">carminepagliaro@gmail.com</a>> wrote:<br>
> oh yes but, I would know how can I create a new one. i.e<br>
> RegularStepGradientDescentBaseOptimizer becomes MyPersonalOptimizer. in this<br>
> class i'll write my personal algorithm.<br>
><br>
> 2015-10-31 16:54 GMT+01:00 Dženan Zukić <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>>:<br>
>><br>
>> You should probably look at one of the registration examples to see how an<br>
>> optimizer is used:<br>
>> <a href="http://itk.org/Wiki/ITK/Examples/Included/Registration" rel="noreferrer" target="_blank">http://itk.org/Wiki/ITK/Examples/Included/Registration</a><br>
>><br>
>> HTH<br>
>><br>
>> On Sat, Oct 31, 2015 at 7:07 AM, Carmine Pagliaro<br>
>> <<a href="mailto:carminepagliaro@gmail.com">carminepagliaro@gmail.com</a>> wrote:<br>
>>><br>
>>> Thank you for the reply, Dr. McCormick.<br>
>>> But that not help me.<br>
>>> I don't understand how I can create a new optimizer algorithm and pass it<br>
>>> to the registration->SetOptimizer() method<br>
>>><br>
>>><br>
>>> 2015-10-30 17:02 GMT+01:00 Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>>:<br>
>>>><br>
>>>> Hi Carmine,<br>
>>>><br>
>>>> To see all the optimizer options, go to the base class in Doxygen:<br>
>>>><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">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>
>>><br>
>>><br>
>>><br>
>>><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>
>><br>
><br>
><br>
><br>
> --<br>
> Carmine Pagliaro<br>
> Life is for sharing.<br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><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>