eVision Python API
Loading...
Searching...
No Matches
eVision.Segmenters.EColorSingleThresholdSegmenter Class Reference

Segments an image using a single threshold on a color image. More...

Inheritance diagram for eVision.Segmenters.EColorSingleThresholdSegmenter:
Collaboration diagram for eVision.Segmenters.EColorSingleThresholdSegmenter:

Public Member Functions

None Load (self, str path)
 Load the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.
None Load (self, eVision.ESerializer|None serializer)
 Load the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.
None Save (self, str path)
 Save the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.
None Save (self, eVision.ESerializer|None serializer)
 Save the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.

Properties

 Threshold = property(_Threshold__getter, _Threshold__setter)
 Value of the threshold.
Properties inherited from eVision.Segmenters.ETwoLayersImageSegmenter
 BlackLayerIndex = property(_BlackLayerIndex__getter, _BlackLayerIndex__setter)
 Index of the black layer in the destination coded image.
 BlackLayerEncoded = property(_BlackLayerEncoded__getter, _BlackLayerEncoded__setter)
 Black layer encoding status.
 WhiteLayerIndex = property(_WhiteLayerIndex__getter, _WhiteLayerIndex__setter)
 Index of the white layer in the destination coded image.
 WhiteLayerEncoded = property(_WhiteLayerEncoded__getter, _WhiteLayerEncoded__setter)
 White layer encoding status.

Detailed Description

Segments an image using a single threshold on a color image.

Remarks:

This segmenter is applicable to eVision.EROIC24 RGB color images. It produces coded images with two layers: The White layer (usually, with index 1) contains the unmasked pixels that belong to the cube of the RGB space defined by the threshold point and the white point (255,255,255); and the Black layer (usually, with index 0) contains the remaining unmasked pixels.

License(s): EasyObject

Member Function Documentation

◆ Load() [1/2]

None eVision.Segmenters.EColorSingleThresholdSegmenter.Load ( self,
eVision.ESerializer | None serializer )

Load the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.

◆ Load() [2/2]

None eVision.Segmenters.EColorSingleThresholdSegmenter.Load ( self,
str path )

Load the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.

◆ Save() [1/2]

None eVision.Segmenters.EColorSingleThresholdSegmenter.Save ( self,
eVision.ESerializer | None serializer )

Save the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe serializer.

Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.

◆ Save() [2/2]

None eVision.Segmenters.EColorSingleThresholdSegmenter.Save ( self,
str path )

Save the eVision.Segmenters.EColorSingleThresholdSegmenter configuration.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.

Property Documentation

◆ Threshold

eVision.Segmenters.EColorSingleThresholdSegmenter.Threshold = property(_Threshold__getter, _Threshold__setter)
static

Value of the threshold.