-
Notifications
You must be signed in to change notification settings - Fork 150
Generated Segmentations do not follow image geometry #111
Copy link
Copy link
Open
Description
I would expect outputs to follow the image geometry (spacing etc) unless specified otherwise. However the segmentations are always saved in 1x1x1 spacing. This is likely due to a bug in preprocess which overwrites the original affine of the image with the resampled one in this line, so that the postprocessing function cannot resample back
SynthSeg/SynthSeg/predict_synthseg.py
Line 451 in 2a2aa3b
| im, aff = edit_volumes.resample_volume(im, aff, im_res) |
Later when the postprocess function tried to resample back to the original image affine, it receives the preprocessed instead of the original affine
Best,
Fabian
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels