[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [Insight-users] [ITK Community]  Cost function value increases
From:       Hana Cherif <hanacherif62 () gmail ! com>
Date:       2013-11-30 12:55:44
Message-ID: CAGJa-oavoJnVotMAs7f8QcVcH7drQrj7wPg7vNSua7ic6gEYHA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I get that my program does not take into account the header files from my
optimizer , as when I tried to modify the header file optimizer so that it
displays me an error !! when I did the compilation it works without any
error !

 Would you give me some hint of that please, thanks


2013/11/28 Brian Helba <brian.helba@kitware.com>

> I would try some much larger maximum step values. You program appears to
> be spending iterations while not making very much progress at the start.
>
> Also, when you're tuning things, it can be helpful to print the moving
> image parameters on each iteration, in addition to the cost function.
> On Nov 27, 2013 5:42 PM, "Hana Cherif" <hanacherif62@gmail.com> wrote:
>
>>
>> Hello every body !
>>
>>
>> After execution of my images' registration program , using this
>> components:
>>
>> Regular Step Gradient Descent Optimizer,
>> Mean Squares Image  To Image Metric
>> Bspline interpolator
>>
>>  I get this results::
>>
>>
>> Iteration number:     Cost function value
>>
>>
>> 0                        2732.74
>> 1                        2700.84
>> 2                        2699.27
>> 3                        2701.48
>> 4                        2703.19
>> 5                        2700
>> 6                        2704.12
>> 7                        2705.1
>> 8                        2705.27
>> 9                        2705.4
>> 10                        2702.91
>> 11                        2705.15
>> 12                        2713.1
>> 13                        2720.48
>> 14                        2720
>> 15                        2715.81
>> 16                        2704.64
>> 17                        2687.46
>> 18                        2666.14
>> 19                        2639.91
>> 20                        2613.11
>> 21                        2587.55
>> 22                        2564.89
>> 23                        2546.22
>>
>> I use this parameters:
>>  optimizer->SetMaximumStepLength(0.10 );
>>  optimizer->SetMinimumStepLength( 0.05);
>>  optimizer->SetRelaxationFactor(0.5);
>>
>> My question is : as you see i the results the value of the cost function
>> increases i want to know why can be the reason of this results please!! is
>> it just a probleme of parameters??
>>
>> Thanks !
>>
>>
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.php
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>> _______________________________________________
>> Community mailing list
>> Community@itk.org
>> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>>
>>

[Attachment #5 (text/html)]

<div dir="ltr"><span id="result_box" class="" lang="en"><span class="">I get that \
my</span> <span class="">program does not take</span> <span class="">into account \
the</span> <span class="">header</span> <span class="">files from my</span> <span \
class="">optimizer</span><span> ,</span> <span class="">as</span> <span class="">when \
I tried</span> <span class="">to modify the</span> <span class="">header</span> <span \
class="">file</span> <span class="">optimizer</span> <span class="">so that it \
displays</span> <span class="">me</span> <span class="">an</span> <span \
class="">error</span> <span class="">!! when</span> <span class="">I did the</span> \
<span class="">compilation</span> <span class="">it works</span> <span \
class="">without any error !<br> <br> Would you give me some hint of that please, \
thanks <br></span></span></div><div class="gmail_extra"><br><br><div \
class="gmail_quote">2013/11/28 Brian Helba <span dir="ltr">&lt;<a \
href="mailto:brian.helba@kitware.com" \
target="_blank">brian.helba@kitware.com</a>&gt;</span><br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><p dir="ltr">I would try some much larger maximum step \
values. You program appears to be spending iterations while not making very much \
progress at the start.</p>

<p dir="ltr">Also, when you&#39;re tuning things, it can be helpful to print the \
moving image parameters on each iteration, in addition to the cost function.</p> <div \
class="gmail_quote"><div><div class="h5">On Nov 27, 2013 5:42 PM, &quot;Hana \
Cherif&quot; &lt;<a href="mailto:hanacherif62@gmail.com" \
target="_blank">hanacherif62@gmail.com</a>&gt; wrote:<br type="attribution"></div> \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div class="h5"> <div \
dir="ltr"><div><div><br></div>Hello every body !<br><br><br></div><div>After \
execution of my images&#39; registration program , using this \
components:<br><br></div><div>Regular Step Gradient Descent Optimizer,<br>Mean \
Squares Image  To Image Metric<br>


</div><div>Bspline interpolator<br><br> I get this results::<br><br><br>Iteration \
number:     Cost function value        <br><br><br>0                        2732.74   \
<br>1                        2700.84                <br>


2                        2699.27                <br>3                        2701.48  \
<br>4                        2703.19                <br>5                        2700 \
<br>6                        2704.12                <br>


7                        2705.1                <br>8                        2705.27   \
<br>9                        2705.4                <br>10                        \
2702.91                <br>11                        2705.15                <br>


12                        2713.1                <br>13                        2720.48 \
<br>14                        2720                <br>15                        \
2715.81                <br>16                        2704.64                <br>


17                        2687.46                <br>18                        \
2666.14                <br>19                        2639.91                <br>20    \
2613.11                <br>21                        2587.55                <br>


22                        2564.89                <br>23                        \
2546.22   <br><br></div><div>I use this parameters:<br> \
optimizer-&gt;SetMaximumStepLength(0.10 );<br> optimizer-&gt;SetMinimumStepLength( \
0.05);<br>


 optimizer-&gt;SetRelaxationFactor(0.5);<br><br></div><div>My question is : as you \
see i the results the value of the cost function increases i want to know why can be \
the reason of this results please!! is it just a probleme of parameters??<br>


<br></div><div>Thanks !<br></div><div><br></div><div><br></div></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" \
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" \
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" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" \
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> \
<br>_______________________________________________<br> Community mailing list<br>
<a href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" \
target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br> \
<br></blockquote></div> </blockquote></div><br></div>



_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic