ome / omero-rois

OMERO python ROI utils
https://omero-rois.readthedocs.io/
GNU General Public License v2.0
2 stars 4 forks source link

Add method to create masks grouped by label id #6

Open dominikl opened 4 years ago

dominikl commented 4 years ago

Add a method to create masks from labelled z-stack image, grouped by label ids. These can used to create "3D'ish" ROIs. Input is a list of planes so that the output from the getPlanes() method can be used directly.

dominikl commented 4 years ago

Indeed, the index of the masks coming from masks_from_label_image is basically the label. I rewrote the method accordingly, which makes it easier. I'm not sure about ziplongest... I rather write a few lines more code, but therefore make it a bit easier to understand what's actually going on.