livecellx.core.SingleCellStatic.get_contour_mask_closed_form

SingleCellStatic.get_contour_mask_closed_form(padding=0, crop=True)

If contour points are pixel-wise closed, use this function to fill the contour.

Return type:

ndarray[tuple[int, ...], dtype[TypeVar(_ScalarType_co, bound= generic, covariant=True)]]