Is predicted images of registration method have same affine matrices as the affine matrices of fixed images #6313
Unanswered
JosianeUwineza
asked this question in
Q&A
Replies: 2 comments 7 replies
-
the output meta info was not updated by the network and workflow. I haven't tested it but please try something like |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ wyli thanks for the suggestion, But I think if I use output_image.affine = fixed.affine before saving is like cheating, how am I going to know the registration model registered the image well? I wish there is the way that this affine matrix can be updated during the training so that the model during predict the image with correct affine |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To get registration pair(moving and fixed) images and masks(.nii.gz). I took fixed images and masks rotate them by 10 degrees and perform registration using monai LocalNet model. With this data I found that the dice score reached 97%, but when use Monai SaveImage where resample is set to False, the predicted image is at the same position as moving image buy visualizing it . when I checked affine of fixed image, moving image and predicted image I found that the moving and predicted image has same affine matrices. Is this mean that the monai LocalNet can't register images and mask which is slightly rotated? what I can do ?
Your helps will be much appreciated
Thanks
Beta Was this translation helpful? Give feedback.
All reactions