junyuchen245 / TransMorph_Transformer_for_Medical_Image_Registration

TransMorph: Transformer for Unsupervised Medical Image Registration (PyTorch)
MIT License
412 stars 67 forks source link

Deformation Field Smoothness #69

Open brumomento opened 5 months ago

brumomento commented 5 months ago

Hello Jenyu,

I am doing my Master's project on histology image registration using TransMorph. Since I am working in histology, i need to ensure that the local morphology of the samples is respected. Therefore, I opted to use TransMorph-diff for non-linear transformations. However, it still generates really jagged deformation fields. Could you please point me how to tweak the regularisation values in the config file to make the deformation fields really smooth? Or maybe there is something else I could do?

1190202328 commented 4 months ago

Hello, I have also encountered this issue. I am doing a 2D image task and the generated deformation field has many small jagged edges. Have you solved this problem? Thank you!

brumomento commented 4 months ago

Hello, unfortunately no. I have opted to use the B-spline variation instead with high control point spacing for smooth deformations.

1190202328 commented 3 months ago

I currently need to obtain the reverse deformation field, but it seems that B-spline variation cannot obtain the reverse deformation field very well, is that right?