Closed
Description
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
- Need to remove the reverse for itk.size.
- Transpose array obtained from itk.array_view_from_image.