dchaley / deepcell-imaging

Tools & guidance to scale DeepCell imaging on Google Cloud Batch
8 stars 2 forks source link

Refactor memory views to pointers #176

Closed dchaley closed 6 months ago

dchaley commented 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