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


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. | |
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
| bool eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.IsFirstApplication | ( | ) |
Checks whether the segmenter has already been used to segment an image.
| new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Load | ( | eVision.ESerializer | serializer | ) |
Load the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Load | ( | string | path | ) |
Load the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for reading.
| path | The file path. |
| new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Save | ( | eVision.ESerializer | serializer | ) |
Save the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| new void eVision.Segmenters.EGrayscaleSingleThresholdSegmenter.Save | ( | string | path | ) |
Save the EGrayscaleSingleThresholdSegmenter configuration. The given ESerializer must have been created for writing.
| path | The file path. |
|
getset |
Value of the threshold to be used in the case of absolute thresholding.
|
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.
|
getset |
Threshold selection mode.
|
getset |
Fraction of the image pixels that belongs to the black layer in the case of relative thresholding.