Skip to content

Need keep_axis in itk.size() #2006

@Nic-Ma

Description

@Nic-Ma

Description

I used itk.array_view_from_image(img, keep_axes=False) to load array data, but itk.size(img) gives reverse order of shape.
For example:

data = itk.array_view_from_image(img, keep_axes=False)
shape = list(itk.size(img))
data.shape: (64, 128, 96)
shape: [96, 128, 64]

Expected behavior

Need to add keep_axes=False for itk.size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:EnhancementImprovement of existing methods or implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions