ouyangming / DRAMMS

A Generic Medical Image Registration Toolbox
6 stars 2 forks source link

Deformation field in unusable format #3

Open clararodrigo opened 8 months ago

clararodrigo commented 8 months ago

Hi,  I am using DRAMMS for registration and I'm interested in evaluating the accuracy based on the deformation fields. ie. if I add the deformation field value at each pixel location, I should reach the corresponding pixel in the output image, which should be the same as the fixed image. However, the deformation field saved by DRAMMS has a very unusual format, it seems to be very sparse and pixelated. I've attached an image. This is an issue because when I deform my image points using the field, I do not reach the same warped image as DRAMMS.  

I am wondering if there is a way to format this to be more continuous. I saw there is a function called ConvertDeformation, but my installation didn't seem to produce an executable for it and I can't seem to be able to manually produce it. Any help would be greatly appreaciated.

I would also like to ask about the units used in the deformation fields. Currently the maximum value I obtain in these is around 0.003, which is not consistent with the warping I obtain in my images. I cannot find any explanation in the manual about what the units are.

Kind regards, Clara 

ly1998117 commented 3 weeks ago

Hi,  I am using DRAMMS for registration and I'm interested in evaluating the accuracy based on the deformation fields. ie. if I add the deformation field value at each pixel location, I should reach the corresponding pixel in the output image, which should be the same as the fixed image. However, the deformation field saved by DRAMMS has a very unusual format, it seems to be very sparse and pixelated. I've attached an image. This is an issue because when I deform my image points using the field, I do not reach the same warped image as DRAMMS.  

I am wondering if there is a way to format this to be more continuous. I saw there is a function called ConvertDeformation, but my installation didn't seem to produce an executable for it and I can't seem to be able to manually produce it. Any help would be greatly appreaciated.

I would also like to ask about the units used in the deformation fields. Currently the maximum value I obtain in these is around 0.003, which is not consistent with the warping I obtain in my images. I cannot find any explanation in the manual about what the units are.

Kind regards, Clara

you can try my repo (https://github.com/ly1998117/Dramms), I modified the source code to save standard deformation field.