Skip to content

spacing.y and spacing.x in function core.utils.ijk2LPS should be swapped in Nifti scenario #402

Description

@ppageon

The function core.utils.ijk2LPS seems wrong in Nifti scenario, the original code as follow:
image
when I test a case with Nifti image with spacing like [0.5, 1.0, 0.75], the rendered images are distortion.
image
It looked fine when I swap the spacing.y with spacing.x, like:
image
So I think it should be wrong to multiply x component of Cos with y component of spacing, at least it doesn't work for Nifti scenario.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Backlog Status

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions