[ITK] Passing parameters in image transform
Constantinus Spanakis
c.spanakis83 at gmail.com
Thu Jul 21 08:25:25 EDT 2016
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());
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160721/bede6d0a/attachment.html>
More information about the Community
mailing list