Skip to content

Modify pixdim to original_pixdim in meta dict #6840

@KumoLiu

Description

@KumoLiu

Is your feature request related to a problem? Please describe.
Follow up of #6832, after Spacing, the original pixdim is not modified in meta dict, which may cause some confusion.

Describe the solution you'd like
Would be better to update it to original_pixdim.
Similar to affine.

header[MetaKeys.ORIGINAL_AFFINE] = self._get_affine(i, self.affine_lps_to_ras)
header[MetaKeys.SPACE] = SpaceKeys.RAS if self.affine_lps_to_ras else SpaceKeys.LPS
header[MetaKeys.AFFINE] = header[MetaKeys.ORIGINAL_AFFINE].copy()

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