I am developing an application to register and display a 3D DICOM image using VTK, ITK, and QT.
I am running into some issues with the registration part.
I am using the ScaleVersor3DTransform, VersorTransformOptimizer, NormalizedCorrelationImageToImageMetric, and LinearInterpolateImageFunction for this.
The problem is that I need to lock or disable the rotation on Z axis. The only axis that can rotate are X and Y.
I tried getting the GetNumberOfParameters() from the transform and setting all its values to 1.0 (although I think the Z-rotation is the third position on the array), but that didn't seen to work.
What are my options?