eVision .NET API
Loading...
Searching...
No Matches
eVision.Segmenters.EGrayscaleSingleThresholdSegmenter Class Reference

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

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

Public Member Functions

new void Load (string path)
 Load the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.
new void Load (eVision.ESerializer serializer)
 Load the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.
new void Save (string path)
 Save the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.
new void Save (eVision.ESerializer serializer)
 Save the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.
bool IsFirstApplication ()
 Checks whether the segmenter has already been used to segment an image.
Public Member Functions inherited from eVision.Segmenters.ETwoLayersImageSegmenter
void Load (string path)
 Load the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for reading.
void Load (eVision.ESerializer serializer)
 Load the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for reading.
void Save (string path)
 Save the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for writing.
void Save (eVision.ESerializer serializer)
 Save the ETwoLayersImageSegmenter configuration. The given ESerializer must have been created for writing.

Properties

eVision.EGrayscaleSingleThreshold Mode [get, set]
 Threshold selection mode.
uint AbsoluteThreshold [get, set]
 Value of the threshold to be used in the case of absolute thresholding.
float RelativeThreshold [get, set]
 Fraction of the image pixels that belongs to the black layer in the case of relative thresholding.
uint LastThreshold [get]
 Retrieves the actual threshold value that was used for the last image that got encoded by the segmenter.
Properties inherited from eVision.Segmenters.ETwoLayersImageSegmenter
virtual uint BlackLayerIndex [get, set]
 Index of the black layer in the destination coded image.
virtual bool BlackLayerEncoded [get, set]
 Black layer encoding status.
virtual uint WhiteLayerIndex [get, set]
 Index of the white layer in the destination coded image.
virtual bool WhiteLayerEncoded [get, set]
 White layer encoding status.

Detailed Description

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

This segmenter is applicable to EROIBW8 and EROIBW16 grayscale images. It produces coded images with two layers: the black layer (usually, with index 0) contains the unmasked pixels having a gray value strictly below the threshold value; and the white layer (usually, with index 1) contains the remaining unmasked pixels, i.e. unmasked pixels having a gray value greater or equal to the threshold value. The default thresholding method is minimum residue. If another method is required, the EGrayscaleSingleThresholdSegmenter.Mode property must be set prior to encoding.

License(s): EasyObject

Member Function Documentation

◆ IsFirstApplication()

bool eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.IsFirstApplication ( )

Checks whether the segmenter has already been used to segment an image.

◆ Load() [1/2]

new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Load ( eVision.ESerializer serializer)

Load the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

◆ Load() [2/2]

new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Load ( string path)

Load the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

◆ Save() [1/2]

new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Save ( eVision.ESerializer serializer)

Save the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.

Parameters
serializerThe serializer.

◆ Save() [2/2]

new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Save ( string path)

Save the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

Property Documentation

◆ AbsoluteThreshold

uint eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.AbsoluteThreshold
getset

Value of the threshold to be used in the case of absolute thresholding.

◆ LastThreshold

uint eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.LastThreshold
get

Retrieves the actual threshold value that was used for the last image that got encoded by the segmenter.

A call to this method will result in an exception if it is the first time the segmenter is applied. To check whether the segmenter has already been applied, call the EGrayscaleSingleThresholdSegmenter.IsFirstApplication method.

◆ Mode

eVision.EGrayscaleSingleThreshold eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Mode
getset

Threshold selection mode.

◆ RelativeThreshold

float eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.RelativeThreshold
getset

Fraction of the image pixels that belongs to the black layer in the case of relative thresholding.