Skip to content

orientation before spacing #545

@wyli

Description

@wyli

Is your feature request related to a problem? Please describe.
the orientation transform should be put before any anisotropic spatial scalings
so that data from different orientations are scaled in the same axes

Spacingd(keys=["image", "label"], pixdim=(
    1.5, 1.5, 2.0), mode=("bilinear", "nearest")),
Orientationd(keys=["image", "label"], axcodes="RAS"),

should be

Orientationd(keys=["image", "label"], axcodes="RAS"),
Spacingd(keys=["image", "label"], pixdim=(
    1.5, 1.5, 2.0), mode=("bilinear", "nearest")),

this is a correct example:

LoadImaged(keys=["image", "label"]),
EnsureChannelFirstd(keys=["image", "label"]),
Orientationd(keys=["image", "label"], axcodes="RAS"),
Spacingd(keys=["image", "label"], pixdim=spacing, mode=("bilinear", "nearest"), align_corners=(True, True)),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions