Skip to content

Question about using Spacing transform after Transpose transform #6711

Open
@chaoscls

Description

@chaoscls

The Transpose transform doesn't change the image's affine matric, but spacing transform needs to calculate the original spacing using this affine matric. So I think this is a bug if transpose before spacing transform.
Transpose:

class Transpose(Transform):

Calculating original spacing: https://github.com/Project-MONAI/MONAI/blob/17c1e3acff583e241066da08dae4b75554b52dda/monai/transforms/spatial/array.py#L507C7-L507C7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions