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. | |
| 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. | |
| eVision.EROIBW8|None | ReferenceImageBW8 (self) |
| Reference image for the segmentation of eVision.EROIBW8 images. | |
| ReferenceImageBW8 (self, eVision.EROIBW8|None value) | |
| Reference image for the segmentation of eVision.EROIBW8 images. | |
| eVision.EROIBW16|None | ReferenceImageBW16 (self) |
| Reference image for the segmentation of eVision.EROIBW16 images. | |
| ReferenceImageBW16 (self, eVision.EROIBW16|None value) | |
| Reference image for the segmentation of eVision.EROIBW16 images. | |
| eVision.EROIC24|None | ReferenceImageC24 (self) |
| Reference image for the segmentation of eVision.EROIC24 images. | |
| ReferenceImageC24 (self, eVision.EROIC24|None value) | |
| Reference image for the segmentation of eVision.EROIC24 images. | |
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
| bool eVision.Segmenters.EReferenceImageSegmenter.BlackLayerEncoded | ( | self | ) |
Black layer encoding status.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| eVision.Segmenters.EReferenceImageSegmenter.BlackLayerEncoded | ( | self, | |
| bool | value ) |
Black layer encoding status.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| int eVision.Segmenters.EReferenceImageSegmenter.BlackLayerIndex | ( | self | ) |
Index of the black layer in the destination coded image.
Remarks:
Setting this property automatically switches on the encoding of the black layer.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| eVision.Segmenters.EReferenceImageSegmenter.BlackLayerIndex | ( | self, | |
| int | value ) |
Index of the black layer in the destination coded image.
Remarks:
Setting this property automatically switches on the encoding of the black layer.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| 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.
| eVision.EROIBW16 | None eVision.Segmenters.EReferenceImageSegmenter.ReferenceImageBW16 | ( | self | ) |
Reference image for the segmentation of eVision.EROIBW16 images.
Remarks:
Note that the image is copied internally.
| eVision.Segmenters.EReferenceImageSegmenter.ReferenceImageBW16 | ( | self, | |
| eVision.EROIBW16 | None | value ) |
Reference image for the segmentation of eVision.EROIBW16 images.
Remarks:
Note that the image is copied internally.
| eVision.EROIBW8 | None eVision.Segmenters.EReferenceImageSegmenter.ReferenceImageBW8 | ( | self | ) |
Reference image for the segmentation of eVision.EROIBW8 images.
Remarks:
Note that the image is copied internally.
| eVision.Segmenters.EReferenceImageSegmenter.ReferenceImageBW8 | ( | self, | |
| eVision.EROIBW8 | None | value ) |
Reference image for the segmentation of eVision.EROIBW8 images.
Remarks:
Note that the image is copied internally.
| eVision.EROIC24 | None eVision.Segmenters.EReferenceImageSegmenter.ReferenceImageC24 | ( | self | ) |
Reference image for the segmentation of eVision.EROIC24 images.
Remarks:
Note that the image is copied internally.
| eVision.Segmenters.EReferenceImageSegmenter.ReferenceImageC24 | ( | self, | |
| eVision.EROIC24 | None | value ) |
Reference image for the segmentation of eVision.EROIC24 images.
Remarks:
Note that the image is copied internally.
| 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.
| bool eVision.Segmenters.EReferenceImageSegmenter.WhiteLayerEncoded | ( | self | ) |
White layer encoding status.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| eVision.Segmenters.EReferenceImageSegmenter.WhiteLayerEncoded | ( | self, | |
| bool | value ) |
White layer encoding status.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| int eVision.Segmenters.EReferenceImageSegmenter.WhiteLayerIndex | ( | self | ) |
Index of the white layer in the destination coded image.
Remarks:
Setting this property automatically switches on the encoding of the white layer.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.
| eVision.Segmenters.EReferenceImageSegmenter.WhiteLayerIndex | ( | self, | |
| int | value ) |
Index of the white layer in the destination coded image.
Remarks:
Setting this property automatically switches on the encoding of the white layer.
Reimplemented from eVision.Segmenters.ETwoLayersImageSegmenter.