Skip to content

Generated Segmentations do not follow image geometry #111

@FabianIsensee

Description

@FabianIsensee

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

Image

Best,
Fabian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions