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

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

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

Public Member Functions

None Load (self, str path)
 Load the eVision.Segmenters.EColorRangeThresholdSegmenter configuration.
None Load (self, eVision.ESerializer|None serializer)
 Load the eVision.Segmenters.EColorRangeThresholdSegmenter configuration.
None Save (self, str path)
 Save the eVision.Segmenters.EColorRangeThresholdSegmenter configuration.
None Save (self, eVision.ESerializer|None serializer)
 Save the eVision.Segmenters.EColorRangeThresholdSegmenter configuration.
eVision.EC24 LowThreshold (self)
 Value of the low threshold.
 LowThreshold (self, eVision.EC24 value)
 Value of the low threshold.
eVision.EC24 HighThreshold (self)
 Value of the high threshold.
 HighThreshold (self, eVision.EC24 value)
 Value of the high threshold.
Public Member Functions inherited from eVision.Segmenters.ETwoLayersImageSegmenter
int BlackLayerIndex (self)
 Index of the black layer in the destination coded image.
 BlackLayerIndex (self, int value)
 Index of the black layer in the destination coded image.
bool BlackLayerEncoded (self)
 Black layer encoding status.
 BlackLayerEncoded (self, bool value)
 Black layer encoding status.
int WhiteLayerIndex (self)
 Index of the white layer in the destination coded image.
 WhiteLayerIndex (self, int value)
 Index of the white layer in the destination coded image.
bool WhiteLayerEncoded (self)
 White layer encoding status.
 WhiteLayerEncoded (self, bool value)
 White layer encoding status.

Detailed Description

Segments an image using a double 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 that spans the low threshold point to the high threshold point; and the Black layer (usually, with index 0) contains the remaining unmasked pixels.

License(s): EasyObject

Member Function Documentation

◆ HighThreshold() [1/2]

eVision.EC24 eVision.Segmenters.EColorRangeThresholdSegmenter.HighThreshold ( self)

Value of the high threshold.

◆ HighThreshold() [2/2]

eVision.Segmenters.EColorRangeThresholdSegmenter.HighThreshold ( self,
eVision.EC24 value )

Value of the high threshold.

◆ Load() [1/2]

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

Load the eVision.Segmenters.EColorRangeThresholdSegmenter 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.EColorRangeThresholdSegmenter.Load ( self,
str path )

Load the eVision.Segmenters.EColorRangeThresholdSegmenter configuration.

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

Parameters
pathThe file path.

Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.

◆ LowThreshold() [1/2]

eVision.EC24 eVision.Segmenters.EColorRangeThresholdSegmenter.LowThreshold ( self)

Value of the low threshold.

◆ LowThreshold() [2/2]

eVision.Segmenters.EColorRangeThresholdSegmenter.LowThreshold ( self,
eVision.EC24 value )

Value of the low threshold.

◆ Save() [1/2]

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

Save the eVision.Segmenters.EColorRangeThresholdSegmenter 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.EColorRangeThresholdSegmenter.Save ( self,
str path )

Save the eVision.Segmenters.EColorRangeThresholdSegmenter configuration.

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

Parameters
pathThe file path.

Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.