InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.37k stars 660 forks source link

BUG: array_from_image shape for VectorImage with 1 component #4648

Closed thewtex closed 1 month ago

thewtex commented 1 month ago

A VectorImage with one component should have a shape with a value of 1 for the component. Also make the ndim consistent.

Closes #4646