Hello to all,
I am trying to write a very simple gui that allows to choose to cancatenate different types of trasforms (rigid, affine and elastic) with different parameters/metrics/optimizers and save the tfm file. I tried first the VH_registration example, but when I try to write the .tfm file I get this error:
RuntimeError: Exception thrown in SimpleITK WriteTransform: D:\a\1\sitk-build\ITK\Modules\IO\TransformInsightLegacy\include\itkTxtTransformIO.hxx:349: itk::ERROR: TxtTransformIOTemplate(0000000045619F60): Composite Transform can only be 1st transform in a file
I looked a bit also in composite transforms, but I didn’t get these two issues: is it possible to optimize more than one transform? Can I use the CenteredTransformInitializer?