arboretum/utils.py
def _is_binary_segmentation(image):
    """ guess whether this is a binary or unique/integer segmentation based on
    the data in the image. """
    objects = measurements.find_objects(image)
    labeled, n = measurements.label(image.astype(np.bool))
    return n > len(objects)
 guess whether this is a binary or unique/integer segmentation based on
    the data in the image. 
guess whether this is a binary or unique/integer segmentation based on
the data in the image.
guess whether this is a binary or unique / integer segmentation based on the data in the image .
def _is_binary_segmentation(image):
    objects = measurements.find_objects(image)
    labeled, n = measurements.label(image.astype(np.bool))
    return n > len(objects)
def _is_binary_segmentation ( image ) : objects = measurements . find_objects ( image ) labeled , n = measurements . label ( image . astype ( np . bool ) ) return n > len ( objects )
guess whether this is a binary or unique/integer segmentation based on
the data in the image.
guess whether this is a binary or unique / integer segmentation based on the data in the image .
""" guess whether this is a binary or unique/integer segmentation based on
    the data in the image. """
image