Composite module

Channels

Channels information for a composite map.

class edxia.composite.channels.CompositeChannels(components, factors)[source]

Channels information for a composite map.

blue

The component of the blue channel.

blue_factor

The scaling factor for the blue channel.

gray

The component of the gray channel.

gray_factor

The scaling factor for the gray channel.

green

The component of the green channel.

green_factor

The scaling factor for the green channel.

nb_components

The number of components.

red

The component of the red channel.

red_factor

The scaling factor for the red channel.

Composite

class edxia.composite.composite.CompositeMap(composite_img, channels, parent)[source]

A composite map

channels

Return the channels use to build this composite image.

Segmentation

class edxia.composite.segmentation.FullSlicSegmenter(compactness, nb_segments)[source]

Slic segmenter not restricted to RGB space

class edxia.composite.segmentation.SegmentedLabels(labels, composite_parent)[source]

The labels issued from segmentation.

composite

Return the composite image

get_center_labels()[source]

Return the centroids of each segmented part.

get_color_labels(sampler_points=None, color_img=None)[source]

Return the color for the labels.

nb_labels

Return the number of labels.

class edxia.composite.segmentation.Segmenter[source]

Abstract base class for a segmenter

apply_impl()[source]

Return the raw labels

class edxia.composite.segmentation.SlicSegmenter(compactness, nb_segments, **kwargs)[source]

The slic segmenter

apply_impl(composite)[source]

Return the raw labels

class edxia.composite.segmentation.WatershedSegmenter(markers, **kwargs)[source]

The watershed segmenter

apply_impl(composite)[source]

Return the raw labels