Open ShangWeiKuo opened 1 year ago
Hi @ShangWeiKuo, to be honest our code in platipy doesn't support 2D data very well. This is because so far this has been used mostly for radiotherapy projects where we typically have 3D image volumes available.
We could probably amend the linear_registration
function to support 2D, however @rnfinnegan and I don't have the capacity for this at the moment. We would be open to contributions from the community though.
This function relies entirely on SimpleITK, so I would recommend taking a look at that for the 2D registration use case. You should be able to get a registration running using SimpleITK directly. The class we use is ImageRegistrationMethod
you can find the documentation here: https://simpleitk.org/doxygen/latest/html/classitk_1_1simple_1_1ImageRegistrationMethod.html
Hello.
I tried conducting mask registration with two 2D dicom masks.
However. I got the error message which shows that The number of pixels along dimension 2 is less than 4.
How should I do to apply linear_registration to the 2D dicom files ?
This are my codes.
This is the error message
Thank you for your help in advance.