I'd imagine something like: a ROI loading function that takes
a) the name or index of a ROI: is there always an index column? Then it could be the value from there. We may also want to support just looping over available ROIs by index (useful e.g. for processing ROIs)
b) zarr_url: path to the OME-Zarr image
c) Channel specification or label name
d) Optional compute=False
And returns a dask or numpy array of just that ROI
To be used in the roi loader plugin, some of our tasks when they loop over ROIs, maybe some of Nicole's tasks and the upcoming plotting library by Michael & Silvia
Goal: A high-level API to load ROIs
Placeholder issue, needs to be defined better.
I'd imagine something like: a ROI loading function that takes a) the name or index of a ROI: is there always an index column? Then it could be the value from there. We may also want to support just looping over available ROIs by index (useful e.g. for processing ROIs) b) zarr_url: path to the OME-Zarr image c) Channel specification or label name d) Optional compute=False
And returns a dask or numpy array of just that ROI
To be used in the roi loader plugin, some of our tasks when they loop over ROIs, maybe some of Nicole's tasks and the upcoming plotting library by Michael & Silvia