E3DObjectExtractor is used to extract 3D objects from a ZMap. More...
#include <eVision/Easy3D/Easy3DObject/E3DObjectExtractor.h>
Public Member Functions | |
| E3DObjectExtractor () | |
| Constructs an E3DObjectExtractor with default (invalid) values. | |
| E3DObjectExtractor (const eVision::Easy3D::E3DObjectExtractor &other) | |
| Copy constructor for E3DObjectExtractor. | |
| virtual | ~E3DObjectExtractor () throw () |
| eVision::Easy3D::E3DObjectExtractor & | operator= (const eVision::Easy3D::E3DObjectExtractor &other) |
| Assignment operator. | |
| bool | operator== (const eVision::Easy3D::E3DObjectExtractor &other) const |
| Comparison operator. | |
| void | Load (const std::string &path) |
| Load the E3DObjectExtractor. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Load the E3DObjectExtractor. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Save the E3DObjectExtractor. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Save the E3DObjectExtractor. The given ESerializer must have been created for writing. | |
| void | SetComputeFeature (eVision::Easy3D::E3DObjectFeature feature, bool enable) |
| Sets true if the feature should computed by the extractor, false otherwise. | |
| void | UnsetAllComputeFeatures () |
| Disables all features to be computed by the extractor. | |
| void | SetAllComputeFeatures () |
| Enables all features to be computed by the extractor. | |
| bool | GetComputeFeature (eVision::Easy3D::E3DObjectFeature feature) const |
| Returns true or false depending if the feature should be computed by the extractor. | |
| void | SetLengthRange (const eVision::EFloatRange &lengthRange) |
| The extraction object length range in metric units. Length is the largest dimension of the object, expressed the ZMap coordinate system. | |
| const eVision::EFloatRange & | GetLengthRange () const |
| The extraction object length range in metric units. Length is the largest dimension of the object, expressed the ZMap coordinate system. | |
| void | SetWidthRange (const eVision::EFloatRange &widthRange) |
| The extraction object width range in metric units. Width is the smallest dimension of the object, expressed the ZMap coordinate system. | |
| const eVision::EFloatRange & | GetWidthRange () const |
| The extraction object width range in metric units. Width is the smallest dimension of the object, expressed the ZMap coordinate system. | |
| void | SetLocalHeightRange (const eVision::EFloatRange &localHeightRange) |
| The extraction object local height range in metric units. Local height is the dimension of the object along the normal of the base plane. For a height based on the ZMap origin, use E3DObjectExtractor::SetLocalHeightRange. | |
| const eVision::EFloatRange & | GetLocalHeightRange () const |
| The extraction object local height range in metric units. Local height is the dimension of the object along the normal of the base plane. For a height based on the ZMap origin, use E3DObjectExtractor::SetLocalHeightRange. | |
| void | SetReferenceHeightRange (const eVision::EFloatRange &referenceHeightRange) |
| The extraction object reference height range in metric units. Reference height is the dimension of the object along the ZMap Z axis from ZMap origin. For a height based on the object base plane, use E3DObjectExtractor::SetReferenceHeightRange. | |
| const eVision::EFloatRange & | GetReferenceHeightRange () const |
| The extraction object reference height range in metric units. Reference height is the dimension of the object along the ZMap Z axis from ZMap origin. For a height based on the object base plane, use E3DObjectExtractor::SetReferenceHeightRange. | |
| void | SetAspectRatioRange (const eVision::EFloatRange &arRange) |
| The extraction 2D aspect ratio range. The aspect ratio is the smallest dimension divided by the largest dimension, its value is always between 0 and 1. The smaller the ratio, the more elongated the object is. A value of 1 means a perfectly square object (length=width). | |
| const eVision::EFloatRange & | GetAspectRatioRange () const |
| The extraction 2D aspect ratio range. The aspect ratio is the smallest dimension divided by the largest dimension, its value is always between 0 and 1. The smaller the ratio, the more elongated the object is. A value of 1 means a perfectly square object (length=width). | |
| void | SetOrientationRange (const eVision::EFloatRange &orientationRange) |
| The allowed angle range of the oriented 2D rectangle region. This is the angle of the longest axis (the length of the object), in counter clockwise direction, from the horizontal axis. Valid values are between -90 and +90 degrees (or -Pi/2 and Pi/2 if angle unit is radians). | |
| const eVision::EFloatRange & | GetOrientationRange () const |
| The allowed angle range of the oriented 2D rectangle region. This is the angle of the longest axis (the length of the object), in counter clockwise direction, from the horizontal axis. Valid values are between -90 and +90 degrees (or -Pi/2 and Pi/2 if angle unit is radians). | |
| void | SetLocalTiltRange (const eVision::EFloatRange &tiltRange) |
| The allowed angle range of the object local tilt. This is the angle between the base plane and the object plane. A value of 0 means that the object top surface is parallel to its base. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians). | |
| const eVision::EFloatRange & | GetLocalTiltRange () const |
| The allowed angle range of the object local tilt. This is the angle between the base plane and the object plane. A value of 0 means that the object top surface is parallel to its base. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians). | |
| void | SetReferenceTiltRange (const eVision::EFloatRange &tiltRange) |
| The allowed angle range of the object reference tilt. This is the angle between the object plane and the ZMap Z Axis. A value of 0 means that the object top surface is parallel to the ZMap XY plane. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians). | |
| const eVision::EFloatRange & | GetReferenceTiltRange () const |
| The allowed angle range of the object reference tilt. This is the angle between the object plane and the ZMap Z Axis. A value of 0 means that the object top surface is parallel to the ZMap XY plane. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians). | |
| void | SetAreaRange (const eVision::EFloatRange &areaRange) |
| The allowed area range for the objects. Area is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the area is in mm2. | |
| const eVision::EFloatRange & | GetAreaRange () const |
| The allowed area range for the objects. Area is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the area is in mm2. | |
| void | SetVolumeRange (const eVision::EFloatRange &volumeRange) |
| The allowed volume range for the objects. Volume is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the volume is in mm3. | |
| const eVision::EFloatRange & | GetVolumeRange () const |
| The allowed volume range for the objects. Volume is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the volume is in mm3. | |
| void | SetOverlappedObject (bool state) |
| Enable or disable the extraction of overlapped objects. | |
| bool | GetOverlappedObject () const |
| Enable or disable the extraction of overlapped objects. | |
| void | SetOverlappedAreaRatio (float ratio) |
| Set or Get the object area ratio applicable when the overlapped mode is enabled. The area ratio defines the minimum area difference between 2 extracted objects that overlap. E.g with a value of 4, the top object must have an area at least 4 times smaller than the bottom object (or the bottom object must have an area at least 4 times bigger than the top object). | |
| float | GetOverlappedAreaRatio () const |
| Set or Get the object area ratio applicable when the overlapped mode is enabled. The area ratio defines the minimum area difference between 2 extracted objects that overlap. E.g with a value of 4, the top object must have an area at least 4 times smaller than the bottom object (or the bottom object must have an area at least 4 times bigger than the top object). | |
| void | SetOverlappedHeightDifference (float difference) |
| Set or Get the object height difference applicable when the overlapped mode is enabled. That value defines the minimum height difference between 2 overlapped objects. | |
| float | GetOverlappedHeightDifference () const |
| Set or Get the object height difference applicable when the overlapped mode is enabled. That value defines the minimum height difference between 2 overlapped objects. | |
| void | SetExtractionSensitivity (float sensitivity) |
| Set or Get the extraction sensitivity. The sensitivity ranges from 0 (minimum sensitivity) to 1 (maximum sensitivity). With high sensitivity, the library tries to extract object that are mixed with their surrounding. Low sensitivity values tend to ignore faint objects. The default sensitivity value is 0.6. | |
| float | GetExtractionSensitivity () const |
| Set or Get the extraction sensitivity. The sensitivity ranges from 0 (minimum sensitivity) to 1 (maximum sensitivity). With high sensitivity, the library tries to extract object that are mixed with their surrounding. Low sensitivity values tend to ignore faint objects. The default sensitivity value is 0.6. | |
| void | SetContourReinforce (bool state) |
| When contour reinforcement is enable, a filter is applied to the input image to detect and enhance the frontiers between objects. That option is interesting when objects to extract are in contact. The default state is false (OFF). | |
| bool | GetContourReinforce () const |
| When contour reinforcement is enable, a filter is applied to the input image to detect and enhance the frontiers between objects. That option is interesting when objects to extract are in contact. The default state is false (OFF). | |
| int | Extract (const eVision::Easy3D::EZMap8 &zMap) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap8 &zMap, eVision::ERegion ®ion) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap16 &zMap) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap16 &zMap, eVision::ERegion ®ion) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap32f &zMap) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap32f &zMap, eVision::ERegion ®ion) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap *zMap) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| int | Extract (const eVision::Easy3D::EZMap *zMap, eVision::ERegion ®ion) |
| Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects. | |
| std::vector< eVision::Easy3D::E3DObject > | GetObjects () const |
| Returns the list of extracted objects. The objects are sorted from smallest area to largest area. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, eVision::Easy3D::E3DObjectFeature feature) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (HDC graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (HDC graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (HDC graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (HDC graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color, float zoomX) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (HDC graphicContext, eVision::Easy3D::E3DObjectFeature feature, const eVision::ERGBColor &color) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | Draw (HDC graphicContext, eVision::Easy3D::E3DObjectFeature feature) const |
| Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect. | |
| void | AddToMesh (eVision::Easy3D::E3DObjectFeature feature, eVision::Easy3D::EMesh &mesh) const |
| For all extracted objects, adds a 3D representation (in the form of a list of triangles) of the given feature to the given mesh. If the feature is not defined for the E3DObject, this method has no effect. | |
| eVision::ERegion | GetObjectsMask () const |
| Gets the ERegion composed of all the objects ZMap pixels. | |
| eVision::ERegion | GetBackgroundMask () const |
| Gets the ERegion composed of background ZMap pixels (where there is not object). | |
| E3DObjectExtractor (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
E3DObjectExtractor is used to extract 3D objects from a ZMap.
License(s): Easy3DObject
| eVision::Easy3D::E3DObjectExtractor::E3DObjectExtractor | ( | ) |
Constructs an E3DObjectExtractor with default (invalid) values.
| eVision::Easy3D::E3DObjectExtractor::E3DObjectExtractor | ( | const eVision::Easy3D::E3DObjectExtractor & | other | ) |
Copy constructor for E3DObjectExtractor.
| other | The other E3DObjectExtractor that we will copy into this one. |
|
virtual | ||||||||||||
| eVision::Easy3D::E3DObjectExtractor::E3DObjectExtractor | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::Easy3D::E3DObjectExtractor::AddToMesh | ( | eVision::Easy3D::E3DObjectFeature | feature, |
| eVision::Easy3D::EMesh & | mesh ) const |
For all extracted objects, adds a 3D representation (in the form of a list of triangles) of the given feature to the given mesh. If the feature is not defined for the E3DObject, this method has no effect.
| feature | The feature to draw, only 3D features are supported. |
| mesh | The mesh to add the graphics for. |
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
Drawing is done in the device context associated to the desired window.
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
Drawing is done in the device context associated to the desired window.
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
Drawing is done in the device context associated to the desired window.
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
Drawing is done in the device context associated to the desired window.
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), 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. |
Drawing is done in the device context associated to the desired window.
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), 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. |
Drawing is done in the device context associated to the desired window.
| void eVision::Easy3D::E3DObjectExtractor::Draw | ( | HDC | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
Drawing is done in the device context associated to the desired window.
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::Easy3D::E3DObjectExtractor::Draw | ( | HDC | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
Drawing is done in the device context associated to the desired window.
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::Easy3D::E3DObjectExtractor::Draw | ( | HDC | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
Drawing is done in the device context associated to the desired window.
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::Easy3D::E3DObjectExtractor::Draw | ( | HDC | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming. |
Drawing is done in the device context associated to the desired window.
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::Easy3D::E3DObjectExtractor::Draw | ( | HDC | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), 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. |
Drawing is done in the device context associated to the desired window.
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::Easy3D::E3DObjectExtractor::Draw | ( | HDC | graphicContext, |
| eVision::Easy3D::E3DObjectFeature | feature, | ||
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the specified feature of all extracted objects in the given graphic context. If the feature is not defined for the E3DObject, this method has no effect.
| graphicContext | Graphic context on which to draw. |
| feature | The feature to draw. |
| color | The color in which to draw the feature (optional). |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| zoomY | Vertical zooming factor. If set to 0 (default), 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. |
Drawing is done in the device context associated to the desired window.
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.
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap * | zMap | ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap * | zMap, |
| eVision::ERegion & | region ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| region | The region of interest, only pixels inside the given region are considered for object extraction. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap16 & | zMap | ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap16 & | zMap, |
| eVision::ERegion & | region ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| region | The region of interest, only pixels inside the given region are considered for object extraction. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap32f & | zMap | ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap32f & | zMap, |
| eVision::ERegion & | region ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| region | The region of interest, only pixels inside the given region are considered for object extraction. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap8 & | zMap | ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| int eVision::Easy3D::E3DObjectExtractor::Extract | ( | const eVision::Easy3D::EZMap8 & | zMap, |
| eVision::ERegion & | region ) |
Processes the ZMap and extracts a list of 3D objects matching the criteria. Returns the number of extracted objects.
| zMap | The source ZMap. |
| region | The region of interest, only pixels inside the given region are considered for object extraction. |
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetAreaRange | ( | ) | const |
The allowed area range for the objects. Area is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the area is in mm2.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetAspectRatioRange | ( | ) | const |
The extraction 2D aspect ratio range. The aspect ratio is the smallest dimension divided by the largest dimension, its value is always between 0 and 1. The smaller the ratio, the more elongated the object is. A value of 1 means a perfectly square object (length=width).
| eVision::ERegion eVision::Easy3D::E3DObjectExtractor::GetBackgroundMask | ( | ) | const |
Gets the ERegion composed of background ZMap pixels (where there is not object).
| bool eVision::Easy3D::E3DObjectExtractor::GetComputeFeature | ( | eVision::Easy3D::E3DObjectFeature | feature | ) | const |
Returns true or false depending if the feature should be computed by the extractor.
| feature | The feature that is computed or not. |
| bool eVision::Easy3D::E3DObjectExtractor::GetContourReinforce | ( | ) | const |
When contour reinforcement is enable, a filter is applied to the input image to detect and enhance the frontiers between objects. That option is interesting when objects to extract are in contact. The default state is false (OFF).
| float eVision::Easy3D::E3DObjectExtractor::GetExtractionSensitivity | ( | ) | const |
Set or Get the extraction sensitivity. The sensitivity ranges from 0 (minimum sensitivity) to 1 (maximum sensitivity). With high sensitivity, the library tries to extract object that are mixed with their surrounding. Low sensitivity values tend to ignore faint objects. The default sensitivity value is 0.6.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetLengthRange | ( | ) | const |
The extraction object length range in metric units. Length is the largest dimension of the object, expressed the ZMap coordinate system.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetLocalHeightRange | ( | ) | const |
The extraction object local height range in metric units. Local height is the dimension of the object along the normal of the base plane. For a height based on the ZMap origin, use E3DObjectExtractor::SetLocalHeightRange.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetLocalTiltRange | ( | ) | const |
The allowed angle range of the object local tilt. This is the angle between the base plane and the object plane. A value of 0 means that the object top surface is parallel to its base. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians).
| std::vector< eVision::Easy3D::E3DObject > eVision::Easy3D::E3DObjectExtractor::GetObjects | ( | ) | const |
Returns the list of extracted objects. The objects are sorted from smallest area to largest area.
| eVision::ERegion eVision::Easy3D::E3DObjectExtractor::GetObjectsMask | ( | ) | const |
Gets the ERegion composed of all the objects ZMap pixels.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetOrientationRange | ( | ) | const |
The allowed angle range of the oriented 2D rectangle region. This is the angle of the longest axis (the length of the object), in counter clockwise direction, from the horizontal axis. Valid values are between -90 and +90 degrees (or -Pi/2 and Pi/2 if angle unit is radians).
| float eVision::Easy3D::E3DObjectExtractor::GetOverlappedAreaRatio | ( | ) | const |
Set or Get the object area ratio applicable when the overlapped mode is enabled. The area ratio defines the minimum area difference between 2 extracted objects that overlap. E.g with a value of 4, the top object must have an area at least 4 times smaller than the bottom object (or the bottom object must have an area at least 4 times bigger than the top object).
| float eVision::Easy3D::E3DObjectExtractor::GetOverlappedHeightDifference | ( | ) | const |
Set or Get the object height difference applicable when the overlapped mode is enabled. That value defines the minimum height difference between 2 overlapped objects.
| bool eVision::Easy3D::E3DObjectExtractor::GetOverlappedObject | ( | ) | const |
Enable or disable the extraction of overlapped objects.
See E3DObjectExtractor::SetOverlappedAreaRatio and E3DObjectExtractor::SetOverlappedHeightDifference
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetReferenceHeightRange | ( | ) | const |
The extraction object reference height range in metric units. Reference height is the dimension of the object along the ZMap Z axis from ZMap origin. For a height based on the object base plane, use E3DObjectExtractor::SetReferenceHeightRange.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetReferenceTiltRange | ( | ) | const |
The allowed angle range of the object reference tilt. This is the angle between the object plane and the ZMap Z Axis. A value of 0 means that the object top surface is parallel to the ZMap XY plane. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians).
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetVolumeRange | ( | ) | const |
The allowed volume range for the objects. Volume is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the volume is in mm3.
| const eVision::EFloatRange & eVision::Easy3D::E3DObjectExtractor::GetWidthRange | ( | ) | const |
The extraction object width range in metric units. Width is the smallest dimension of the object, expressed the ZMap coordinate system.
| void eVision::Easy3D::E3DObjectExtractor::Load | ( | const std::string & | path | ) |
Load the E3DObjectExtractor. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::Easy3D::E3DObjectExtractor::Load | ( | eVision::ESerializer * | serializer | ) |
Load the E3DObjectExtractor. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| eVision::Easy3D::E3DObjectExtractor & eVision::Easy3D::E3DObjectExtractor::operator= | ( | const eVision::Easy3D::E3DObjectExtractor & | other | ) |
Assignment operator.
| other | The other E3DObjectExtractor that we will copy into this one. |
| bool eVision::Easy3D::E3DObjectExtractor::operator== | ( | const eVision::Easy3D::E3DObjectExtractor & | other | ) | const |
Comparison operator.
| other | The other object. |
| void eVision::Easy3D::E3DObjectExtractor::Save | ( | const std::string & | path | ) |
Save the E3DObjectExtractor. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::Easy3D::E3DObjectExtractor::Save | ( | eVision::ESerializer * | serializer | ) |
Save the E3DObjectExtractor. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| void eVision::Easy3D::E3DObjectExtractor::SetAllComputeFeatures | ( | ) |
Enables all features to be computed by the extractor.
| void eVision::Easy3D::E3DObjectExtractor::SetAreaRange | ( | const eVision::EFloatRange & | areaRange | ) |
The allowed area range for the objects. Area is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the area is in mm2.
| areaRange | The object area range. |
| void eVision::Easy3D::E3DObjectExtractor::SetAspectRatioRange | ( | const eVision::EFloatRange & | arRange | ) |
The extraction 2D aspect ratio range. The aspect ratio is the smallest dimension divided by the largest dimension, its value is always between 0 and 1. The smaller the ratio, the more elongated the object is. A value of 1 means a perfectly square object (length=width).
| arRange | The object aspect ratio range in [0,1]. |
| void eVision::Easy3D::E3DObjectExtractor::SetComputeFeature | ( | eVision::Easy3D::E3DObjectFeature | feature, |
| bool | enable ) |
Sets true if the feature should computed by the extractor, false otherwise.
| feature | A feature from E3DObjectFeature. |
| enable | A bool to choose whether to enable or disable a feature. |
| void eVision::Easy3D::E3DObjectExtractor::SetContourReinforce | ( | bool | state | ) |
When contour reinforcement is enable, a filter is applied to the input image to detect and enhance the frontiers between objects. That option is interesting when objects to extract are in contact. The default state is false (OFF).
| state | The state of the contour reinforcement filter. |
| void eVision::Easy3D::E3DObjectExtractor::SetExtractionSensitivity | ( | float | sensitivity | ) |
Set or Get the extraction sensitivity. The sensitivity ranges from 0 (minimum sensitivity) to 1 (maximum sensitivity). With high sensitivity, the library tries to extract object that are mixed with their surrounding. Low sensitivity values tend to ignore faint objects. The default sensitivity value is 0.6.
| sensitivity | The object extraction sensitivity. |
| void eVision::Easy3D::E3DObjectExtractor::SetLengthRange | ( | const eVision::EFloatRange & | lengthRange | ) |
The extraction object length range in metric units. Length is the largest dimension of the object, expressed the ZMap coordinate system.
| lengthRange | The object length range in metric units. |
| void eVision::Easy3D::E3DObjectExtractor::SetLocalHeightRange | ( | const eVision::EFloatRange & | localHeightRange | ) |
The extraction object local height range in metric units. Local height is the dimension of the object along the normal of the base plane. For a height based on the ZMap origin, use E3DObjectExtractor::SetLocalHeightRange.
| localHeightRange | The object local height range in metric units. |
| void eVision::Easy3D::E3DObjectExtractor::SetLocalTiltRange | ( | const eVision::EFloatRange & | tiltRange | ) |
The allowed angle range of the object local tilt. This is the angle between the base plane and the object plane. A value of 0 means that the object top surface is parallel to its base. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians).
| tiltRange | The object local tilt range. |
| void eVision::Easy3D::E3DObjectExtractor::SetOrientationRange | ( | const eVision::EFloatRange & | orientationRange | ) |
The allowed angle range of the oriented 2D rectangle region. This is the angle of the longest axis (the length of the object), in counter clockwise direction, from the horizontal axis. Valid values are between -90 and +90 degrees (or -Pi/2 and Pi/2 if angle unit is radians).
| orientationRange | The object orientation range. |
| void eVision::Easy3D::E3DObjectExtractor::SetOverlappedAreaRatio | ( | float | ratio | ) |
Set or Get the object area ratio applicable when the overlapped mode is enabled. The area ratio defines the minimum area difference between 2 extracted objects that overlap. E.g with a value of 4, the top object must have an area at least 4 times smaller than the bottom object (or the bottom object must have an area at least 4 times bigger than the top object).
| ratio | The ratio of the areas of 2 overlapped objects, must be greater than 1. |
| void eVision::Easy3D::E3DObjectExtractor::SetOverlappedHeightDifference | ( | float | difference | ) |
Set or Get the object height difference applicable when the overlapped mode is enabled. That value defines the minimum height difference between 2 overlapped objects.
| difference | The height difference of 2 overlapped objects, must be greater than 0. |
| void eVision::Easy3D::E3DObjectExtractor::SetOverlappedObject | ( | bool | state | ) |
Enable or disable the extraction of overlapped objects.
| state | The status of the overlapped extraction. |
See E3DObjectExtractor::SetOverlappedAreaRatio and E3DObjectExtractor::SetOverlappedHeightDifference
| void eVision::Easy3D::E3DObjectExtractor::SetReferenceHeightRange | ( | const eVision::EFloatRange & | referenceHeightRange | ) |
The extraction object reference height range in metric units. Reference height is the dimension of the object along the ZMap Z axis from ZMap origin. For a height based on the object base plane, use E3DObjectExtractor::SetReferenceHeightRange.
| referenceHeightRange | The object reference height range in metric units. |
| void eVision::Easy3D::E3DObjectExtractor::SetReferenceTiltRange | ( | const eVision::EFloatRange & | tiltRange | ) |
The allowed angle range of the object reference tilt. This is the angle between the object plane and the ZMap Z Axis. A value of 0 means that the object top surface is parallel to the ZMap XY plane. Valid values are between 0 and +90 degrees (or 0 and Pi/2 if angle unit is radians).
| tiltRange | The object reference tilt range. |
| void eVision::Easy3D::E3DObjectExtractor::SetVolumeRange | ( | const eVision::EFloatRange & | volumeRange | ) |
The allowed volume range for the objects. Volume is expressed in the metric coordinate system. E.g, if the ZMap space is in mm, the volume is in mm3.
| volumeRange | The object volume range. |
| void eVision::Easy3D::E3DObjectExtractor::SetWidthRange | ( | const eVision::EFloatRange & | widthRange | ) |
The extraction object width range in metric units. Width is the smallest dimension of the object, expressed the ZMap coordinate system.
| widthRange | The object width range in metric units. |
| void eVision::Easy3D::E3DObjectExtractor::UnsetAllComputeFeatures | ( | ) |
Disables all features to be computed by the extractor.
| CppWrapperInternal::WrappedClass eVision::Easy3D::E3DObjectExtractor::wrappedClass_ |