Segments an image using a pixel-by-pixel single threshold given as an image. More...


Public Member Functions | |
| None | Load (self, str path) |
| Load the eVision.Segmenters.EReferenceImageSegmenter configuration. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Load the eVision.Segmenters.EReferenceImageSegmenter configuration. | |
| None | Save (self, str path) |
| Save the eVision.Segmenters.EReferenceImageSegmenter configuration. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Save the eVision.Segmenters.EReferenceImageSegmenter configuration. | |
Properties | |
| 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. | |
| ReferenceImageBW8 = property(_ReferenceImageBW8__getter, _ReferenceImageBW8__setter) | |
| Reference image for the segmentation of eVision.EROIBW8 images. | |
| ReferenceImageBW16 = property(_ReferenceImageBW16__getter, _ReferenceImageBW16__setter) | |
| Reference image for the segmentation of eVision.EROIBW16 images. | |
| ReferenceImageC24 = property(_ReferenceImageC24__getter, _ReferenceImageC24__setter) | |
| Reference image for the segmentation of eVision.EROIC24 images. | |
| 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. | |
Segments an image using a pixel-by-pixel single threshold given as an image.
Remarks:
This segmenter is applicable to eVision.EROIBW8, eVision.EROIBW16 and eVision.EROIC24 images. It produces coded images with two layers. The threshold is defined for each pixel individually by means of a reference image of the same type as the source image.
For grayscale images, the White layer (usually, with index 1) contains unmasked pixels having a gray value in a range defined by the gray value of the respective pixel in the reference image and the white color.
For RGB color images, the White layer (usually, with index 1) contains unmasked pixels having a color inside the cube of the RGB color space defined by the color of the respective pixel in the reference image and the white color (255,255,255).
The Black layer (usually, with index 0) contains the remaining unmasked pixels.
License(s): EasyObject
| None eVision.Segmenters.EReferenceImageSegmenter.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Load the eVision.Segmenters.EReferenceImageSegmenter configuration.
The given eVision.ESerializer must have been created for reading.
| serializer | The serializer. |
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| None eVision.Segmenters.EReferenceImageSegmenter.Load | ( | self, | |
| str | path ) |
Load the eVision.Segmenters.EReferenceImageSegmenter configuration.
The given eVision.ESerializer must have been created for reading.
| path | The file path. |
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| None eVision.Segmenters.EReferenceImageSegmenter.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Save the eVision.Segmenters.EReferenceImageSegmenter configuration.
The given eVision.ESerializer must have been created for writing.
| serializer | The serializer. |
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| None eVision.Segmenters.EReferenceImageSegmenter.Save | ( | self, | |
| str | path ) |
Save the eVision.Segmenters.EReferenceImageSegmenter configuration.
The given eVision.ESerializer must have been created for writing.
| path | The file path. |
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
|
static |
Black layer encoding status.
|
static |
Index of the black layer in the destination coded image.
Remarks:
Setting this property automatically switches on the encoding of the black layer.
|
static |
Reference image for the segmentation of eVision.EROIBW16 images.
Remarks:
Note that the image is copied internally.
|
static |
Reference image for the segmentation of eVision.EROIBW8 images.
Remarks:
Note that the image is copied internally.
|
static |
Reference image for the segmentation of eVision.EROIC24 images.
Remarks:
Note that the image is copied internally.
|
static |
White layer encoding status.
|
static |
Index of the white layer in the destination coded image.
Remarks:
Setting this property automatically switches on the encoding of the white layer.