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. | |
Properties | |
| SegmentationMap = property(_SegmentationMap__getter, None) | |
| \endcond | |
| CodedImage = property(_CodedImage__getter, None) | |
| \endcond | |
| Frame = property(_Frame__getter, _Frame__setter) | |
| \endcond | |
| ColorizedSegmentation = property(_ColorizedSegmentation__getter, None) | |
| \endcond | |
| ColorizedSegmentationWithTransparency = property(_ColorizedSegmentationWithTransparency__getter, None) | |
| \endcond | |
| ImageMetrics = property(_ImageMetrics__getter, None) | |
| \endcond | |
| GroundtruthSegmentationMap = property(_GroundtruthSegmentationMap__getter, _GroundtruthSegmentationMap__setter) | |
| \endcond | |
| NumLabels = property(_NumLabels__getter, None) | |
| \endcond | |
| Score = property(_Score__getter, None) | |
| \endcond | |
| ClassificationThreshold = property(_ClassificationThreshold__getter, _ClassificationThreshold__setter) | |
| \endcond | |
| Width = property(_Width__getter, None) | |
| \endcond | |
| Height = property(_Height__getter, None) | |
| \endcond | |
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 |
|
protected |
\cond
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.
|
protected |
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.
|
protected |
\cond
Returns the coded image obtained during the segmentation.
|
protected |
\cond
Colorized version of the segmentation map.
|
protected |
\cond
Colorized version of the segmentation map with transparency.
|
protected |
\cond
Gets the frame in which the result was computed.
|
protected |
Gets the frame in which the result was computed.
|
protected |
\cond
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
|
protected |
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
|
protected |
\cond
Height of the source image and of the segmentation result.
|
protected |
\cond
Metrics for the image.
You must set the eVision.EasyDeepLearning.ESupervisedSegmenterResult.GroundtruthSegmentationMap before accessing this field.
|
protected |
\cond
Number of segmentation labels of the supervised segmenter that produced this result.
|
protected |
\cond
Score used to determine whether the result contains segments that are not background.
|
protected |
\cond
Segmentation result.
The segmentation map is expressed in the sensor coordinates even if an EFrame was used during the inference of the model.
|
protected |
\cond
Width of the source image and of the segmentation result.
| 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. |
| 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 |
| 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.
| 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.
| None eVision.EasyDeepLearning.ESupervisedSegmenterResult.RemoveGroundtruthSegmentation | ( | self | ) |
Removes any ground truth associated with the result.
| eVision.ERegion eVision.EasyDeepLearning.ESupervisedSegmenterResult.ToRegion | ( | self | ) |
Returns the region.
|
static |
\endcond
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.
|
static |
\endcond
Returns the coded image obtained during the segmentation.
|
static |
\endcond
Colorized version of the segmentation map.
|
static |
\endcond
Colorized version of the segmentation map with transparency.
|
static |
\endcond
Gets the frame in which the result was computed.
|
static |
\endcond
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
|
static |
\endcond
Height of the source image and of the segmentation result.
|
static |
\endcond
Metrics for the image.
You must set the eVision.EasyDeepLearning.ESupervisedSegmenterResult.GroundtruthSegmentationMap before accessing this field.
|
static |
\endcond
Number of segmentation labels of the supervised segmenter that produced this result.
|
static |
\endcond
Score used to determine whether the result contains segments that are not background.
|
static |
\endcond
Segmentation result.
The segmentation map is expressed in the sensor coordinates even if an EFrame was used during the inference of the model.
|
static |
\endcond
Width of the source image and of the segmentation result.