Closed dchaley closed 6 months ago
Memory views are nice, but they hardcode the dimensions. That won't work for n-dimensional arrays…
This prepares #118 by refactoring the memory views into pointers. (We'll update the wrapper soon)
Along the way, aligns the mask dtype with the image dtype to dramatically reduce code size. (It's O(N) instead of O(N*N) combinations of types)
Fixes #175
Memory views are nice, but they hardcode the dimensions. That won't work for n-dimensional arrays…
This prepares #118 by refactoring the memory views into pointers. (We'll update the wrapper soon)
Along the way, aligns the mask dtype with the image dtype to dramatically reduce code size. (It's O(N) instead of O(N*N) combinations of types)
Fixes #175