An ESupervisedSegmenterResult object represents the result of a supervised segmenter. More...
#include <eVision/EasyDeepLearning/EasySegment/ESupervisedSegmenterResult.h>
Public Member Functions | |
| ESupervisedSegmenterResult () | |
| Constructs a non-valid ESupervisedSegmenterResult. | |
| ESupervisedSegmenterResult (const eVision::EasyDeepLearning::ESupervisedSegmenterResult &other) | |
| Copy constructor of an ESupervisedSegmenterResult object. | |
| virtual | ~ESupervisedSegmenterResult () throw () |
| eVision::EasyDeepLearning::ESupervisedSegmenterResult & | operator= (const eVision::EasyDeepLearning::ESupervisedSegmenterResult &other) |
| Assignment operator. | |
| bool | IsValid () const |
| Indicates whether the result is valid and ready to be used. | |
| eVision::EImageBW16 | GetSegmentationMap () const |
| Segmentation result. | |
| const eVision::ECodedImage2 & | GetCodedImage () const |
| Returns the coded image obtained during the segmentation. | |
| eVision::ERegion | ToRegion () const |
| Returns the region. | |
| void | SetFrame (const eVision::EFrame &frame) |
| Sets the frame in which the result was computed. | |
| const eVision::EFrame & | GetFrame () |
| Gets the frame in which the result was computed. | |
| eVision::EImageC24 | GetColorizedSegmentation () const |
| Colorized version of the segmentation map. | |
| eVision::EImageC24A | GetColorizedSegmentationWithTransparency () const |
| Colorized version of the segmentation map with transparency. | |
| eVision::ERegion | GetRegionForLabel (const std::string &label) const |
| Region corresponding to the given label. | |
| eVision::EImageBW8 | GetProbabilityMap (const std::string &label) const |
| Probability map for the given label. The probability values are mapped between 0 and 255. | |
| int | GetNumBlobs (const std::string &label) const |
| Number of detected blobs for all labels or for the specified label. | |
| int | GetNumBlobs () const |
| Number of detected blobs for all labels or for the specified label. | |
| std::vector< eVision::EasyDeepLearning::ESupervisedSegmenterBlob > | GetBlobs () const |
| Detected blobs for all labels or for the specified label. | |
| std::vector< eVision::EasyDeepLearning::ESupervisedSegmenterBlob > | GetBlobs (const std::string &label) const |
| Detected blobs for all labels or for the specified label. | |
| bool | HasForegroundSegments () const |
| Whether the predicted segmentation contains non-background pixels. | |
| eVision::EasyDeepLearning::ESupervisedSegmenterMetrics | GetImageMetrics () const |
| Metrics for the image. | |
| void | SetGroundtruthSegmentationMap (const eVision::EImageBW16 >) |
| Ground truth segmentation map. | |
| eVision::EImageBW16 | GetGroundtruthSegmentationMap () const |
| Ground truth segmentation map. | |
| int | GetNumLabels () const |
| Number of segmentation labels of the supervised segmenter that produced this result. | |
| std::string | GetLabel (int labelIndex) const |
| Label at the given index. | |
| eVision::ERGBColor | GetLabelColor (int i) const |
| Color of a label. | |
| eVision::ERGBColor | GetLabelColor (const std::string &label) const |
| Color of a label. | |
| bool | HasGroundtruthSegmentation () const |
| Whether the result is associated with a ground truth segmentation map. | |
| void | RemoveGroundtruthSegmentation () |
| Removes any ground truth associated with the result. | |
| float | GetScore () const |
| Score used to determine whether the result contains segments that are not background. | |
| void | SetClassificationThreshold (float threshold) |
| Classification threshold for determining whether the image contains blobs with a label different than background. | |
| float | GetClassificationThreshold () const |
| Classification threshold for determining whether the image contains blobs with a label different than background. | |
| int | GetWidth () const |
| Width of the source image and of the segmentation result. | |
| int | GetHeight () const |
| Height of the source image and of the segmentation result. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draws the segmentation. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draws the segmentation. | |
| void | Draw (HDC graphicsContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the segmentation. | |
| void | Draw (HDC graphicsContext, float zoomX, float zoomY, float panX) const |
| Draws the segmentation. | |
| void | Draw (HDC graphicsContext, float zoomX, float zoomY) const |
| Draws the segmentation. | |
| void | Draw (HDC graphicsContext, float zoomX) const |
| Draws the segmentation. | |
| void | Draw (HDC graphicsContext) const |
| Draws the segmentation. | |
| ESupervisedSegmenterResult (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
An ESupervisedSegmenterResult object represents the result of a supervised segmenter.
License(s): BasicTypes
| eVision::EasyDeepLearning::ESupervisedSegmenterResult::ESupervisedSegmenterResult | ( | ) |
Constructs a non-valid ESupervisedSegmenterResult.
| eVision::EasyDeepLearning::ESupervisedSegmenterResult::ESupervisedSegmenterResult | ( | const eVision::EasyDeepLearning::ESupervisedSegmenterResult & | other | ) |
Copy constructor of an ESupervisedSegmenterResult object.
| other | Reference to the ESupervisedSegmenterResult object that should be copied |
|
virtual | ||||||||||||
| eVision::EasyDeepLearning::ESupervisedSegmenterResult::ESupervisedSegmenterResult | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter | ) | const |
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 EDrawAdapter (like the EWindowsDrawAdapter). |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame ) const |
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 EDrawAdapter (like the EWindowsDrawAdapter). |
| frame | Frame of reference in which this result was computed. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX ) const |
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 EDrawAdapter (like the EWindowsDrawAdapter). |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
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 EDrawAdapter (like the 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. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | HDC | graphicsContext | ) | const |
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.
| graphicsContext | Handle of the device context on which to draw. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | HDC | graphicsContext, |
| float | zoomX ) const |
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.
| graphicsContext | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. A value greater than 1 means zoom in. By default, true scale is used. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | HDC | graphicsContext, |
| float | zoomX, | ||
| float | zoomY ) const |
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.
| graphicsContext | Handle of the device context on which to draw. |
| 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. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | HDC | graphicsContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
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.
| graphicsContext | Handle of the device context on which to draw. |
| 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. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::Draw | ( | HDC | graphicsContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
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.
| graphicsContext | Handle of the device context on which to draw. |
| 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. |
Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.
Deprecated in version 23.12. Scheduled to be removed in version 27.6.
| std::vector< eVision::EasyDeepLearning::ESupervisedSegmenterBlob > eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetBlobs | ( | ) | const |
Detected blobs for all labels or for the specified label.
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.
| std::vector< eVision::EasyDeepLearning::ESupervisedSegmenterBlob > eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetBlobs | ( | const std::string & | label | ) | const |
Detected blobs for all labels or for the specified label.
| label | Label |
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.
| float eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetClassificationThreshold | ( | ) | const |
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.
| const eVision::ECodedImage2 & eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetCodedImage | ( | ) | const |
Returns the coded image obtained during the segmentation.
| eVision::EImageC24 eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetColorizedSegmentation | ( | ) | const |
Colorized version of the segmentation map.
| eVision::EImageC24A eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetColorizedSegmentationWithTransparency | ( | ) | const |
Colorized version of the segmentation map with transparency.
| const eVision::EFrame & eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetFrame | ( | ) |
Gets the frame in which the result was computed.
| eVision::EImageBW16 eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetGroundtruthSegmentationMap | ( | ) | const |
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
| int eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetHeight | ( | ) | const |
Height of the source image and of the segmentation result.
| eVision::EasyDeepLearning::ESupervisedSegmenterMetrics eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetImageMetrics | ( | ) | const |
Metrics for the image.
You must set the ESupervisedSegmenterResult::SetGroundtruthSegmentationMap before accessing this field.
| std::string eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetLabel | ( | int | labelIndex | ) | const |
Label at the given index.
| labelIndex | Index of the label |
The index must be comprised between 0 and ESupervisedSegmenterResult::GetNumLabels - 1. The labels are the one from the supervised segmenter that produced this result.
| eVision::ERGBColor eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetLabelColor | ( | const std::string & | label | ) | const |
Color of a label.
| label | Label for which to get the color |
The label color is controlled at the tool level. To change a color in a result, change the label color in the tool.
| eVision::ERGBColor eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetLabelColor | ( | int | i | ) | const |
Color of a label.
| i | Index of the label for which to get the color (between 0 and ESupervisedSegmenterResult::GetNumLabels - 1) |
The label color is controlled at the tool level. To change a color in a result, change the label color in the tool.
| int eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetNumBlobs | ( | ) | const |
Number of detected blobs for all labels or for the specified label.
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 | ( | const std::string & | label | ) | const |
Number of detected blobs for all labels or for the specified label.
| label | Label |
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::GetNumLabels | ( | ) | const |
Number of segmentation labels of the supervised segmenter that produced this result.
| eVision::EImageBW8 eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetProbabilityMap | ( | const std::string & | label | ) | const |
Probability map for the given label. The probability values are mapped between 0 and 255.
| label | Label |
| eVision::ERegion eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetRegionForLabel | ( | const std::string & | label | ) | const |
Region corresponding to the given label.
| label | Label |
| float eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetScore | ( | ) | const |
Score used to determine whether the result contains segments that are not background.
| eVision::EImageBW16 eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetSegmentationMap | ( | ) | const |
Segmentation result.
The segmentation map is expressed in the sensor coordinates even if an EFrame was used during the inference of the model.
| int eVision::EasyDeepLearning::ESupervisedSegmenterResult::GetWidth | ( | ) | const |
Width of the source image and of the segmentation result.
| bool eVision::EasyDeepLearning::ESupervisedSegmenterResult::HasForegroundSegments | ( | ) | const |
Whether the predicted segmentation contains non-background pixels.
| bool eVision::EasyDeepLearning::ESupervisedSegmenterResult::HasGroundtruthSegmentation | ( | ) | const |
Whether the result is associated with a ground truth segmentation map.
| bool eVision::EasyDeepLearning::ESupervisedSegmenterResult::IsValid | ( | ) | const |
Indicates whether the result is valid and ready to be used.
A default constructed ESupervisedSegmenterResult is not valid.
| eVision::EasyDeepLearning::ESupervisedSegmenterResult & eVision::EasyDeepLearning::ESupervisedSegmenterResult::operator= | ( | const eVision::EasyDeepLearning::ESupervisedSegmenterResult & | other | ) |
Assignment operator.
| other | Reference to the ESupervisedSegmenterResult object used for the assignment |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::RemoveGroundtruthSegmentation | ( | ) |
Removes any ground truth associated with the result.
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::SetClassificationThreshold | ( | float | threshold | ) |
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.
| threshold | Classification threshold |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::SetFrame | ( | const eVision::EFrame & | frame | ) |
Sets the frame in which the result was computed.
| frame | Frame of reference in which the result was computed. |
| void eVision::EasyDeepLearning::ESupervisedSegmenterResult::SetGroundtruthSegmentationMap | ( | const eVision::EImageBW16 & | gt | ) |
Ground truth segmentation map.
By default, the ground truth segmentation map is all background.
| gt | Ground truth segmentation map |
| eVision::ERegion eVision::EasyDeepLearning::ESupervisedSegmenterResult::ToRegion | ( | ) | const |
Returns the region.
| CppWrapperInternal::WrappedClass eVision::EasyDeepLearning::ESupervisedSegmenterResult::wrappedClass_ |