Skip to content

Mask to objects: Accept B&W contour images as input for cells.

Jean-Yves TINEVEZ requested to merge mask-to-objects into master

Created by: tinevez

MASK_TO_CELL Returns the cells from a BW image with ridges.

Screen Shot 2020-02-04 at 09 18 10

This function takes as input an image that was generated e.g. with the morphological segmentation technique, where each object is white and separated from its neighbor by a black ridge. It then returns the a struct array, 1 element per object, containing the object boundary, the junction id this object touches and its center. As a second output it returns the junction graph.

This function only works for object in white with a ridge in black. The ridge must be connected using 8-connectivity.

Merge request reports