An eVision.EasyDeepLearning.ESupervisedSegmenterResult object represents the result of a supervised segmenter. More...
Public Member Functions | |
| None | __init__ (self) |
| Constructs a non-valid eVision.EasyDeepLearning.ESupervisedSegmenterResult. | |
| None | __init__ (self, eVision.EasyDeepLearning.ESupervisedSegmenterResult other) |
| Copy constructor of an eVision.EasyDeepLearning.ESupervisedSegmenterResult object. | |
| bool | IsValid (self) |
| Indicates whether the result is valid and ready to be used. | |
| eVision.ERegion | ToRegion (self) |
| Returns the region. | |
| eVision.ERegion | GetRegionForLabel (self, str label) |
| Region corresponding to the given label. | |
| eVision.EImageBW8 | GetProbabilityMap (self, str label) |
| Probability map for the given label. | |
| int | GetNumBlobs (self, str label) |
| Number of detected blobs for all labels or for the specified label. | |
| int | GetNumBlobs (self) |
| Number of detected blobs for all labels or for the specified label. | |
| list[eVision._eVision.EasyDeepLearning.ESupervisedSegmenterBlob] | GetBlobs (self) |
| Detected blobs for all labels or for the specified label. | |
| list[eVision._eVision.EasyDeepLearning.ESupervisedSegmenterBlob] | GetBlobs (self, str label) |
| Detected blobs for all labels or for the specified label. | |
| bool | HasForegroundSegments (self) |
| Whether the predicted segmentation contains non-background pixels. | |
| str | GetLabel (self, int labelIndex) |
| Label at the given index. | |
| eVision.ERGBColor | GetLabelColor (self, int i) |
| Color of a label. | |
| eVision.ERGBColor | GetLabelColor (self, str label) |
| Color of a label. | |
| bool | HasGroundtruthSegmentation (self) |
| Whether the result is associated with a ground truth segmentation map. | |
| None | RemoveGroundtruthSegmentation (self) |
| Removes any ground truth associated with the result. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX) |
| Draws the segmentation. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame) |
| Draws the segmentation. | |
| eVision.EImageBW16 | SegmentationMap (self) |
| Segmentation result. | |
| eVision.ECodedImage2 | CodedImage (self) |
| Returns the coded image obtained during the segmentation. | |
| eVision.EFrame | Frame (self) |
| Gets the frame in which the result was computed. | |
| Frame (self, eVision.EFrame value) | |
| Gets the frame in which the result was computed. | |
| eVision.EImageC24 | ColorizedSegmentation (self) |
| Colorized version of the segmentation map. | |
| eVision.EImageC24A | ColorizedSegmentationWithTransparency (self) |
| Colorized version of the segmentation map with transparency. | |
| eVision.EasyDeepLearning.ESupervisedSegmenterMetrics | ImageMetrics (self) |
| Metrics for the image. | |
| eVision.EImageBW16 | GroundtruthSegmentationMap (self) |
| Ground truth segmentation map. | |
| GroundtruthSegmentationMap (self, eVision.EImageBW16 value) | |
| Ground truth segmentation map. | |
| int | NumLabels (self) |
| Number of segmentation labels of the supervised segmenter that produced this result. | |
| float | Score (self) |
| Score used to determine whether the result contains segments that are not background. | |
| float | ClassificationThreshold (self) |
| Classification threshold for determining whether the image contains blobs with a label different than background. | |
| ClassificationThreshold (self, float value) | |
| Classification threshold for determining whether the image contains blobs with a label different than background. | |
| int | Width (self) |
| Width of the source image and of the segmentation result. | |
| int | Height (self) |
| Height of the source image and of the segmentation result. | |
An eVision.EasyDeepLearning.ESupervisedSegmenterResult object represents the result of a supervised segmenter.
Remarks:
License(s): BasicTypes
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.__init__ | ( | self | ) |
Constructs a non-valid eVision.EasyDeepLearning.ESupervisedSegmenterResult.
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.__init__ | ( | self, | |
| eVision.EasyDeepLearning.ESupervisedSegmenterResult | other ) |
Copy constructor of an eVision.EasyDeepLearning.ESupervisedSegmenterResult object.
| other | Reference to the eVision.EasyDeepLearning.ESupervisedSegmenterResult object that should be copied |
| float eVision.EasyDeepLearning.ESupervisedSegmenterResult.ClassificationThreshold | ( | self | ) |
Classification threshold for determining whether the image contains blobs with a label different than background.
By default, its value is given by the supervised segmenter that produced this result.
| eVision.EasyDeepLearning.ESupervisedSegmenterResult.ClassificationThreshold | ( | self, | |
| float | value ) |
Classification threshold for determining whether the image contains blobs with a label different than background.
By default, its value is given by the supervised segmenter that produced this result.
| eVision.ECodedImage2 eVision.EasyDeepLearning.ESupervisedSegmenterResult.CodedImage | ( | self | ) |
Returns the coded image obtained during the segmentation.
| eVision.EImageC24 eVision.EasyDeepLearning.ESupervisedSegmenterResult.ColorizedSegmentation | ( | self | ) |
Colorized version of the segmentation map.
| eVision.EImageC24A eVision.EasyDeepLearning.ESupervisedSegmenterResult.ColorizedSegmentationWithTransparency | ( | self | ) |
Colorized version of the segmentation map with transparency.
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| frame | Frame of reference in which this result was computed. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| frame | Frame of reference in which this result was computed. |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| frame | Frame of reference in which this result was computed. |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| zoomY | Vertical zooming factor. A value greater than 1 means zoom in. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| frame | Frame of reference in which this result was computed. |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| zoomY | Vertical zooming factor. A value greater than 1 means zoom in. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| eVision.EFrame | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| frame | Frame of reference in which this result was computed. |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| zoomY | Vertical zooming factor. A value greater than 1 means zoom in. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| zoomY | Vertical zooming factor. A value greater than 1 means zoom in. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| zoomY | Vertical zooming factor. A value greater than 1 means zoom in. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.Draw | ( | self, | |
| eVision.EDrawAdapter | None | drawAdapter, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) |
Draws the segmentation.
The detected segment are drawn with the label color specified in the dataset used for training. The pixel classified as background are transparent.
| drawAdapter | A pointer to an eVision.EDrawAdapter (like the eVision.EWindowsDrawAdapter). |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| zoomY | Vertical zooming factor. A value greater than 1 means zoom in. If set to 0, the default value, the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
| panX | Horizontal panning value expressed in pixels. By default, no panning occurs. |
| panY | Vertical panning value expressed in pixels. By default, no panning occurs. |
| eVision.EFrame eVision.EasyDeepLearning.ESupervisedSegmenterResult.Frame | ( | self | ) |
Gets the frame in which the result was computed.
| eVision.EasyDeepLearning.ESupervisedSegmenterResult.Frame | ( | self, | |
| eVision.EFrame | value ) |
Gets the frame in which the result was computed.
| list[eVision._eVision.EasyDeepLearning.ESupervisedSegmenterBlob] eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetBlobs | ( | self | ) |
Detected blobs for all labels or for the specified label.
Remarks:
A blob is a contiguous set of pixels detected to be of the same non-background label. As such, the "background" label never has blobs. The set of detected blobs depends on the threshold.
| list[eVision._eVision.EasyDeepLearning.ESupervisedSegmenterBlob] eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetBlobs | ( | self, | |
| str | label ) |
Detected blobs for all labels or for the specified label.
Remarks:
A blob is a contiguous set of pixels detected to be of the same non-background label. As such, the "background" label never has blobs. The set of detected blobs depends on the threshold.
| label | Label |
| str eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetLabel | ( | self, | |
| int | labelIndex ) |
Label at the given index.
Remarks:
The index must be comprised between 0 and eVision.EasyDeepLearning.ESupervisedSegmenterResult.NumLabels - 1. The labels are the one from the supervised segmenter that produced this result.
| labelIndex | Index of the label |
| eVision.ERGBColor eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetLabelColor | ( | self, | |
| int | i ) |
Color of a label.
Remarks:
The label color is controlled at the tool level. To change a color in a result, change the label color in the tool.
| i | Index of the label for which to get the color (between 0 and eVision.EasyDeepLearning.ESupervisedSegmenterResult.NumLabels - 1) |
| eVision.ERGBColor eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetLabelColor | ( | self, | |
| str | label ) |
Color of a label.
Remarks:
The label color is controlled at the tool level. To change a color in a result, change the label color in the tool.
| label | Label for which to get the color |
| int eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetNumBlobs | ( | self | ) |
Number of detected blobs for all labels or for the specified label.
Remarks:
A blob is a contiguous set of pixels detected to be of the same non-background label. As such, the "background" label never has blobs.
| int eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetNumBlobs | ( | self, | |
| str | label ) |
Number of detected blobs for all labels or for the specified label.
Remarks:
A blob is a contiguous set of pixels detected to be of the same non-background label. As such, the "background" label never has blobs.
| label | Label |
| eVision.EImageBW8 eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetProbabilityMap | ( | self, | |
| str | label ) |
Probability map for the given label.
The probability values are mapped between 0 and 255.
| label | Label |
| eVision.ERegion eVision.EasyDeepLearning.ESupervisedSegmenterResult.GetRegionForLabel | ( | self, | |
| str | label ) |
Region corresponding to the given label.
| label | Label |
| eVision.EImageBW16 eVision.EasyDeepLearning.ESupervisedSegmenterResult.GroundtruthSegmentationMap | ( | self | ) |
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
| eVision.EasyDeepLearning.ESupervisedSegmenterResult.GroundtruthSegmentationMap | ( | self, | |
| eVision.EImageBW16 | value ) |
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
| bool eVision.EasyDeepLearning.ESupervisedSegmenterResult.HasForegroundSegments | ( | self | ) |
Whether the predicted segmentation contains non-background pixels.
| bool eVision.EasyDeepLearning.ESupervisedSegmenterResult.HasGroundtruthSegmentation | ( | self | ) |
Whether the result is associated with a ground truth segmentation map.
| int eVision.EasyDeepLearning.ESupervisedSegmenterResult.Height | ( | self | ) |
Height of the source image and of the segmentation result.
| eVision.EasyDeepLearning.ESupervisedSegmenterMetrics eVision.EasyDeepLearning.ESupervisedSegmenterResult.ImageMetrics | ( | self | ) |
Metrics for the image.
You must set the eVision.EasyDeepLearning.ESupervisedSegmenterResult.GroundtruthSegmentationMap before accessing this field.
| bool eVision.EasyDeepLearning.ESupervisedSegmenterResult.IsValid | ( | self | ) |
Indicates whether the result is valid and ready to be used.
A default constructed eVision.EasyDeepLearning.ESupervisedSegmenterResult is not valid.
| int eVision.EasyDeepLearning.ESupervisedSegmenterResult.NumLabels | ( | self | ) |
Number of segmentation labels of the supervised segmenter that produced this result.
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.RemoveGroundtruthSegmentation | ( | self | ) |
Removes any ground truth associated with the result.
| float eVision.EasyDeepLearning.ESupervisedSegmenterResult.Score | ( | self | ) |
Score used to determine whether the result contains segments that are not background.
| eVision.EImageBW16 eVision.EasyDeepLearning.ESupervisedSegmenterResult.SegmentationMap | ( | self | ) |
Segmentation result.
The segmentation map is expressed in the sensor coordinates even if an EFrame was used during the inference of the model.
| eVision.ERegion eVision.EasyDeepLearning.ESupervisedSegmenterResult.ToRegion | ( | self | ) |
Returns the region.
| int eVision.EasyDeepLearning.ESupervisedSegmenterResult.Width | ( | self | ) |
Width of the source image and of the segmentation result.