Hey @dzenanz.
I tried to use the transforms as mentioned. Now I’m getting a quite random error about the metric:
ExceptionObject caught !
itk::ExceptionObject (0x560232884590)
Location: "unknown"
File: /home/leo/General_sources/ITK-5.0.1/Modules/Core/Common/src/itkPoolMultiThreader.cxx
Line: 154
Description: itk::ERROR: PoolMultiThreader(0x5602328a1210): Exception occurred during SingleMethodExecute
/usr/local/include/ITK-5.0/itkImageToImageMetricv4GetValueAndDerivativeThreaderBase.hxx:260:
Exception in GetValueAndDerivativeProcessPoint:
/usr/local/include/ITK-5.0/itkBSplineBaseTransform.h:284:
itk::ERROR: BSplineTransform(0x560232885970): ComputeJacobianWithRespectToPosition not yet implemented for BSplineTransform
So far, I have no clue where this error starts. Although another doubt arises:
What’s the true difference between:
registration->SetInitialTransform();
registration->InPlaceOn();
and
registration->SetMovingInitialTransform();
What I am thinking is if it is correct to set:
registration->setInitialTransform(CompositTransform)
and
registration->SetMovingInitialTransform(dtransform)
to later on GetModifiableTransform
give me the updated dtransform alone.
Any help is appreciated. Thanks.