robokudo.annotators.cluster_color_histogram

Classes

ClusterColorHistogramAnnotator

Calculate the Hue and Saturation Histogram for every Object Hypothesis (cluster) that has a RGB ROI and

Module Contents

class robokudo.annotators.cluster_color_histogram.ClusterColorHistogramAnnotator(name='ClusterColorHistogramAnnotator', descriptor=Descriptor())

Bases: robokudo.annotators.core.BaseAnnotator

Calculate the Hue and Saturation Histogram for every Object Hypothesis (cluster) that has a RGB ROI and a Mask

class Descriptor

Bases: robokudo.annotators.core.BaseAnnotator.Descriptor

class Parameters
histogram_cols = 16
histogram_rows = 16
generate_plot_output = False
parameters
update()

Called every time the behavior is ticked.

create_color_histogram_annotations(color: numpy.typing.NDArray)

Takes the image of the scene and calculates for each cluster/object hypothesis a 2D Color Histogram. The histogram contains the distribution of pixel values over the Hue and Saturation channel.

Parameters:

color – The color image of the scene.

Returns:

An image with a plot over all cluster histograms when

self.descriptor.parameters.generate_plot_output is True . None otherwise.