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

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

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

Public Member Functions

None Load (self, str path)
 Load the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.
None Load (self, eVision.ESerializer|None serializer)
 Load the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.
None Save (self, str path)
 Save the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.
None Save (self, eVision.ESerializer|None serializer)
 Save the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.
int LowThreshold (self)
 Value of the low threshold.
 LowThreshold (self, int value)
 Value of the low threshold.
int HighThreshold (self)
 Value of the high threshold.
 HighThreshold (self, int value)
 Value of the high threshold.
Public Member Functions inherited from eVision.Segmenters.EThreeLayersImageSegmenter
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 NeutralLayerIndex (self)
 Index of the neutral layer in the destination coded image.
 NeutralLayerIndex (self, int value)
 Index of the neutral layer in the destination coded image.
bool NeutralLayerEncoded (self)
 Neutral layer encoding status.
 NeutralLayerEncoded (self, bool value)
 Neutral 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 grayscale image.

Remarks:

This segmenter is applicable to eVision.EROIBW8 and eVision.EROIBW16 grayscale images. It produces coded images with three layers: The Black layer (usually, with index 0) contains the unmasked pixels having a gray value strictly below the low threshold value; the White layer (usually, with index 2) contains the unmasked pixels having a gray value above or equal to the high threshold value; and the Neutral layer (usually, with index 1) contains the remaining unmasked pixels.

License(s): EasyObject

Member Function Documentation

◆ HighThreshold() [1/2]

int eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter.HighThreshold ( self)

Value of the high threshold.

◆ HighThreshold() [2/2]

eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter.HighThreshold ( self,
int value )

Value of the high threshold.

◆ Load() [1/2]

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

Load the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.

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

Parameters
serializerThe serializer.

Reimplemented from eVision.Segmenters.EThreeLayersImageSegmenter.

◆ Load() [2/2]

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

Load the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.

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

Parameters
pathThe file path.

Reimplemented from eVision.Segmenters.EThreeLayersImageSegmenter.

◆ LowThreshold() [1/2]

int eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter.LowThreshold ( self)

Value of the low threshold.

◆ LowThreshold() [2/2]

eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter.LowThreshold ( self,
int value )

Value of the low threshold.

◆ Save() [1/2]

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

Save the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.

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

Parameters
serializerThe serializer.

Reimplemented from eVision.Segmenters.EThreeLayersImageSegmenter.

◆ Save() [2/2]

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

Save the eVision.Segmenters.EGrayscaleDoubleThresholdSegmenter configuration.

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

Parameters
pathThe file path.

Reimplemented from eVision.Segmenters.EThreeLayersImageSegmenter.