Hi Luis,<br>Thanks for your quick response.<br><br>1. I assumed that i have a bad setting of the parameters, but I&#39;ve no idea from where to start.<br>My images are T2 mri images which were taken in two times. Firstly i used the mutual information  multi resolution example provided with the ITK to register them. I initialized the transform with the identity transform. and the images registered well.
<br>Then I started to modify the multi resolution example to working with my similarity measure.<br>The first step was to use the Powell optimizer instead of the versor&nbsp; optimizer , but staying with the 3d rigid versor transform, and initialization to the identity transform. In the first evaluation of the similarity measure i got the exception. The scaling parameters and others were the same as appear in the multi resolution MI registration example.
<br>I also tried to change the similarity measure from MI to my similarity measure, but after 4 evaluations, i got&nbsp; the exception when it starts to apply the rotation about the Z axiz.<br><br>2. Is the powell optimizer can work with the versor transform, or just with euler3D transform ?
<br>3. Is there anywhere&nbsp; example of 3D registration with the powell optimizer?<br><br>Many thanks,<br>Moti&nbsp;  <br><br><div><span class="gmail_quote">On 4/15/07, <b class="gmail_sendername">Luis Ibanez</b> &lt;<a href="mailto:luis.ibanez@kitware.com">
luis.ibanez@kitware.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi Moti,<br><br><br>Here are a couple of suggestions:
<br><br><br>1) You can use the OnePlusOne evolutionary optimizer.<br>&nbsp;&nbsp;&nbsp;&nbsp;This optimizer does not require gradients in the<br>&nbsp;&nbsp;&nbsp;&nbsp;cost function. Note that the versor rigid 3D transform<br>&nbsp;&nbsp;&nbsp;&nbsp;will map its parameters to the Versor space, so that
<br>&nbsp;&nbsp;&nbsp;&nbsp;you stay in the unit sphere.<br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;but.. before you get rid of the Powell optimizer,<br>&nbsp;&nbsp;&nbsp;&nbsp;note that you may be simply using a bad set of<br>&nbsp;&nbsp;&nbsp;&nbsp;parameters for it:<br><br><br><br>2) The message that you are getting from the Powell optimizer
<br>&nbsp;&nbsp;&nbsp;&nbsp;can be related to:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A) Poor initialization of the transform.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; How are you initializing your transform ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Have you verified that the initial transform<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; give you a large overlap of the fixed and moving images ?
<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B) Using steps that are too large<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; How many iterations does the optimizer performs before<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; you get the exception ?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What parameters are you passing to the optimizer<br>
<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C) Lack of using a right combination of parameter scaling.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; What values are you setting for the parameter scaling?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; This is very important, since it compensates for the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; difference in the dynamic range of the versor components
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; versus the translation components.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; You may find useful to read the description of this<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; issue in the ITK Software Guide:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.itk.org/ItkSoftwareGuide.pdf">
http://www.itk.org/ItkSoftwareGuide.pdf</a><br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;Regards,<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<br><br><br>---------------------<br>Moti Freiman wrote:<br>&gt; Hello,<br>&gt; I&#39;m trying register two 3D volumes within the ITK framework using a new
<br>&gt; similarity measure which has no analytical gradients.<br>&gt; Since the 3D versor optimizer in itk is based on a gradient decent<br>&gt; optimizer. i cannot use it with my similarity measure.<br>&gt; I tried to use the Powell optimizer with 3DRigidVersor transform but I
<br>&gt; got the following message:<br>&gt; &quot;All the points mapped to outside of the moving image&quot;<br>&gt; It seems that powell is not optimized for the versor space.<br>&gt; 1. Is there any option to build a non-gradient based optimizer for the
<br>&gt; versor space as it done for gradient decent optimizer?<br>&gt; 2. Any other suggestions to which elements i should use in my<br>&gt; registration process given that my similarity measure has no gradients?<br>&gt; Thanks,
<br>&gt; Moti<br>&gt; --<br>&gt; __<br>&gt; Moti Freiman, Ph.D Student.<br>&gt; Medical Image Processing and Computer-Assisted Surgery Laboratory.<br>&gt; School of Computer Science and Engineering.<br>&gt; The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel
<br>&gt; Phone: +(972)-2-658-5371 (laboratory)<br>&gt; WWW site: <a href="http://www.cs.huji.ac.il/~freiman">http://www.cs.huji.ac.il/~freiman</a><br>&gt; &lt;<a href="http://www.cs.huji.ac.il/%7Efreiman">http://www.cs.huji.ac.il/%7Efreiman
</a>&gt;<br>&gt;<br>&gt; --<br>&gt; __<br>&gt; Moti Freiman, Ph.D Student.<br>&gt; Medical Image Processing and Computer-Assisted Surgery Laboratory.<br>&gt; School of Computer Science and Engineering.<br>&gt; The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel
<br>&gt; Phone: +(972)-2-658-5371 (laboratory)<br>&gt; WWW site: <a href="http://www.cs.huji.ac.il/~freiman">http://www.cs.huji.ac.il/~freiman</a><br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Insight-users mailing list<br>&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>__<br>Moti Freiman, Ph.D Student.<br>Medical Image Processing and Computer-Assisted Surgery Laboratory.<br>School of Computer Science and Engineering.
<br>The Hebrew University of Jerusalem Givat Ram, Jerusalem 91904, Israel<br>Phone: +(972)-2-658-5371 (laboratory)<br>WWW site: <a href="http://www.cs.huji.ac.il/~freiman">http://www.cs.huji.ac.il/~freiman</a>