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: Add bufferedRegion to dict_from_image representation #4633

Closed thewtex closed 2 months ago

thewtex commented 2 months ago

Optional specification of the BufferedRegion, which is a subset of the LargestPossibleRegion. Addresses #4267.

The LargestPossibleRegion's Index is assumed to be trivial (zeros).

Also update the NumPy bridge to correctly use the BufferedRegion instead of the LargestPossibleRegion for the array shape.