Histogram computation and ome-zarr metadata
imagejan opened this issue · 4 comments
When this was still named faim-hcs
, we had this code to compute histograms and add it to the zarr attrs
:
Lines 173 to 183 in 7594dc6
@tibuch what do you think, does it make sense to add the list of histogram paths to the metadata somehow, or should we just rely on the presence of those files inside the zarr directory tree?
Maybe we can come up with a small utility function that returns the histogram loaded from file if it's present, and otherwise computes the histogram on the fly and (optionally) saves it into the zarr (for future use).
What do you think?
A small utility function sounds like a useful start.
I think this would be a great opportunity to explore how we could create and use extensions with the ngff spec.