Hello,
I am using ITK to build my own multi-resolution rigid registration of 3D images. I want to pass the initial transforms of the fixed image and the moving image to the registration. How to do it? Here is my code.
#include “itkMultiResolutionImageRegistrationMethod.h”
#include “itkVersorRigid3DTransform.h”
#include “itkImage.h”using InternalImageType = itk::Image<float, 3>;
using RegistrationType = itk::MultiResolutionImageRegistrationMethod<InternalImageType, InternalImageType>;RegistrationType::Pointer registration = RegistrationType::New();
using TransformType = itk::VersorRigid3DTransform;
TransformType::Pointer initialTransform = TransformType::New();//Then I update the initialTransform using my program… After that, I want to pass the updated initialTransform to the registration:
registration->SetInitialTransformParameters(initialTransform->GetParameters());
The question is I can only pass the initial transform of the moving image to the registration. How to pass the initial transform of the fixed image to the registration? In itk::ImageRegistrationMethodv4, we can simply use
registration->SetInitialTransform(initialTransform);
But how to do it using itk::MultiResolutionImageRegistrationMethod?
Thanks.
Fang