Skip to content

Need to transpose array obtained from itk instead of reversing of itk.size() in ITKReader #1357

Closed
@take5v

Description

@take5v

Description

In ITKReader, itk.size(img) should not be reversed since it outputs correct size of an image. Instead, itk.array_view_from_image(img, keep_axes=False) provides the transposed array and such numpy array must be transposed because of the differences of storing the data in numpy and itk.

This PR is wrong: #1045. See also InsightSoftwareConsortium/ITK#2006

Expected behavior

  1. Need to remove the reverse for itk.size.
  2. Transpose array obtained from itk.array_view_from_image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WG: IOFor the IO working groupbugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions