[ITK] Passing parameters in image transform

Dženan Zukić dzenanz at gmail.com
Thu Jul 21 11:43:54 EDT 2016


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

On Thu, Jul 21, 2016 at 8:25 AM, Constantinus Spanakis <
c.spanakis83 at gmail.com> wrote:

> Hello. I try to do image registration between two images, called
> fixedImage and movingImage using firstly rigid transform and then affine
> transform.
>
> 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?
>
>
> rigidTransform->SetParameters(registration->GetLastTransformParameters());
> resample->SetTransform(rigidTransform);
> resample->SetInput(movingImageReader->GetOutput());
>
> resample->SetSize(fixedImage->GetLargestPossibleRegion().GetSize());
> resample->SetOutputOrigin(fixedImage->GetOrigin());
> resample->SetOutputSpacing(fixedImage->GetSpacing());
> resample->SetOutputDirection(fixedImage->GetDirection());
>
> registration->SetMovingImage(resample->GetOutput());
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160721/79072e57/attachment-0001.html>


More information about the Community mailing list