<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">It looks like it should. Maybe you could have new instance of registration class, to prevent loop dependency. Anyway, it is best to try :D</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 21, 2016 at 8:25 AM, Constantinus Spanakis <span dir="ltr"><<a href="mailto:c.spanakis83@gmail.com" target="_blank">c.spanakis83@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"><span style="font-size:12.8px">Hello. I try to do image registration between two images, called fixedImage and movingImage using firstly rigid transform and then affine transform.</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">After I finish the rigid registration, I want to use the movingImage, after it gets transformed due to rigid registration, and use the NEW movingImage as the movingimage input of the affine registration. Does the following code do the trick?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div> rigidTransform->SetParameters(registration->GetLastTransformParameters());</div><div><span style="white-space:pre-wrap"> </span></div><div><span style="white-space:pre-wrap"> </span>resample->SetTransform(rigidTransform);</div><div><span style="white-space:pre-wrap"> </span>resample->SetInput(movingImageReader->GetOutput());</div><div><br></div><div><span style="white-space:pre-wrap"> </span>resample->SetSize(fixedImage->GetLargestPossibleRegion().GetSize());</div><div><span style="white-space:pre-wrap"> </span>resample->SetOutputOrigin(fixedImage->GetOrigin());</div><div><span style="white-space:pre-wrap"> </span>resample->SetOutputSpacing(fixedImage->GetSpacing());</div><div><span style="white-space:pre-wrap"> </span>resample->SetOutputDirection(fixedImage->GetDirection());</div><div><br></div><div><span style="white-space:pre-wrap"> </span>registration->SetMovingImage(resample->GetOutput());</div></div></div>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>