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
|
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
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
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