<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Thanks a lot for both your answers.</div><div><br></div><div>Indeed I think the method SetWeights for the optimizer is what I am looking for, and this might spare me the trouble of redefining a whole new subclass !</div><div><br></div><div>Best,</div><div><br></div><div>Marc-Michel</div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>De: </b>"brian avants" <stnava@gmail.com><br><b>À: </b>"Dženan Zukić" <dzenanz@gmail.com><br><b>Cc: </b>"Marc-Michel Rohé" <marc-michel.rohe@inria.fr>, "Insight-users" <insight-users@itk.org><br><b>Envoyé: </b>Dimanche 25 Septembre 2016 17:59:55<br><b>Objet: </b>Re: [ITK-users] Restrict parameters of a transformation to be optimized during registration<br><div><br></div>This use case is also what parameter weights are for<br><div><br></div>On Sunday, September 25, 2016, Dženan Zukić <<a href="mailto:dzenanz@gmail.com" target="_blank" data-mce-href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small" data-mce-style="font-family: verdana,sans-serif; font-size: small;">Hi Marc-Michel,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small" data-mce-style="font-family: verdana,sans-serif; font-size: small;"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small" data-mce-style="font-family: verdana,sans-serif; font-size: small;">the classic solution for such a case is to derive a class from itkTranslationTransform and re-implement the relevant methods (TransformPoint, Translate etc). Then supply your transform class instead of itkTranslationTransform to itkImageRegistrationMethodv4.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small" data-mce-style="font-family: verdana,sans-serif; font-size: small;"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small" data-mce-style="font-family: verdana,sans-serif; font-size: small;">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small" data-mce-style="font-family: verdana,sans-serif; font-size: small;">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 24, 2016 at 2:54 PM, Marc-Michel Rohé <span dir="ltr"><<a href="JAVASCRIPT-BLOCKED_e(%7B%7D,'cvml','marc-michel.rohe@inria.fr');" target="_blank" data-mce-href="JAVASCRIPT-BLOCKED_e(%7B%7D,'cvml','marc-michel.rohe@inria.fr');">marc-michel.rohe@inria.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Hello,<br> <br> I am working with the registration pipeline of ITK using 3D images. What I would like to do is to register two images with translations but keeping the translation with respect to the third dimension at 0 (so find the best 2D translation on the axis X and Y mapping two images).<br> <br> Is there a way to use the ITK classes "itkTranslationTransform" and "itkImageRegistrationMethodv4" ?<br> <br> I have looked at multiple examples and documentation but could not find a way to do it easily if not coding a whole new class that performs 2D transform in 3D...<br> <br> Thx !<br> _____________________________________<br> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank" data-mce-href="http://www.kitware.com">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" data-mce-href="http://www.kitware.com/opensource/opensource.html">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" data-mce-href="http://www.kitware.com/products/protraining.php">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" data-mce-href="http://www.itk.org/Wiki/ITK_FAQ">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" data-mce-href="http://public.kitware.com/mailman/listinfo/insight-users">http://public.kitware.com/mailman/listinfo/insight-users</a><br></blockquote></div><br></div></blockquote><br><div><br></div>-- <br><div><br></div>brian<br><div><br></div><br></blockquote><div><br></div></div></body></html>