ly1998117 / Dramms

DRAMMS with Standard Deforamtion Field
0 stars 0 forks source link

How to use the Standard Deformation Field #1

Open koegl opened 3 weeks ago

koegl commented 3 weeks ago

I want to use the Standard Deformation Field to deform objects like segmentations or landmarks.

I followed the instructions from README.md to create the SDF.

I then tried to 'recreate' the output of DRAMMS by using the SDF to deform the source image, but this didn't work.

I tried two approaches, but both gave the wrong results:

  1. Load into 3D Slicer and apply the transformation to the source image
  2. use F.grid_sample()

Could you give an example of how you used the SDF to deform an image?

ly1998117 commented 3 weeks ago

I want to use the Standard Deformation Field to deform objects like segmentations or landmarks.

I followed the instructions from README.md to create the SDF.

I then tried to 'recreate' the output of DRAMMS by using the SDF to deform the source image, but this didn't work.

I tried two approaches, but both gave the wrong results:

  1. Load into 3D Slicer and apply the transformation to the source image
  2. use F.grid_sample()

Could you give an example of how you used the SDF to deform an image?

I have update a jupyter notebook and some example images here: EXAMPLES. You can map the source image to the target image according to its instructions using F.grid_sample().