Segmentator object
The Segmentator class defines the basic object for chromatically segmenting an image. This page shows how it works.
Initialization
def __init__(self, image: numpy.ndarray):
"""
Initializes the object that segments a given image into its main colours.
Args:
image: A three-dimensional numpy array, representing the image to be segmented, which entries are in 0...255
range and the channels are BGR.
"""Segmentation procedure
Segmentation result
Last updated