This class encapsulates either an object or a hole in an object, in a coded image. More...
#include <eVision/EasyObject/EasyObject2/ECodedElement.h>
Public Member Functions | |
| ECodedElement (const eVision::ECodedElement &other) | |
| Copy constructor. | |
| virtual | ~ECodedElement () throw () |
| eVision::ECodedElement & | operator= (const eVision::ECodedElement &other) |
| Assignment operator. | |
| bool | operator== (const eVision::ECodedElement &other) const |
| Comparison Operator. | |
| uint32_t | GetHoleCount () const |
| Returns the number of holes in the object. | |
| eVision::ECodedElement | GetHole (uint32_t index) const |
| Returns a specified hole in the object. | |
| std::vector< eVision::ECodedElement > | GetHoles () const |
| Returns all holes for the given object. | |
| unsigned int | GetParentObjectIndex () const |
| Returns the index of the parent object of the hole. | |
| void | SetFrame (const eVision::EFrame &frame) |
| Sets the frame in which the region was defined. | |
| const eVision::EFrame & | GetFrame () const |
| Sets the frame in which the region was defined. | |
| eVision::ERegion | ToRegion () const |
| Creates an ERegion from the ECodedElement. The ERegion represents all the pixels which are within the bounding box of the Pattern. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling) const |
| Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling, const eVision::EFrame &inputFrame) const |
| Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia. | |
| const eVision::EObjectRunsIterator & | GetRunsIterator () const |
| Returns an iterator to the runs of the coded element. | |
| bool | IsHole () const |
| Tests whether the coded element is an object, a hole or a coded element. | |
| bool | IsObject () const |
| Tests whether the coded element is an object, a hole or a coded element. | |
| bool | IsCodedElement () const |
| Tests whether the coded element is an object, a hole or a coded element. | |
| unsigned int | GetElementIndex () const |
| Returns the index of the coded element. | |
| unsigned int | GetLayerIndex () const |
| Returns the index of the layer in the coded image to which the coded element belongs. | |
| unsigned int | GetRunCount () const |
| Returns the number of runs inside the coded element. | |
| unsigned int | GetArea () const |
| Returns the number of pixels inside the coded element. | |
| unsigned int | GetLargestRun () const |
| Returns the length of the largest run inside the coded element. | |
| float | GetGravityCenterX () const |
| Returns the abscissa of the gravity center of the coded element. | |
| float | GetGravityCenterY () const |
| Returns the ordinate of the gravity center of the coded element. | |
| eVision::EPoint | GetGravityCenter () const |
| Returns the gravity center of the coded element. | |
| int | GetLeftLimit () const |
| Returns the lowest (integer) X-coordinate of all the pixels of the coded element. | |
| int | GetTopLimit () const |
| Returns the lowest (integer) Y-coordinate of all the pixels of the coded element. | |
| int | GetRightLimit () const |
| Returns the highest (integer) X-coordinate of all the pixels of the coded element. | |
| int | GetBottomLimit () const |
| Returns the highest (integer) Y-coordinate of all the pixels of the coded element. | |
| float | GetBoundingBoxCenterX () const |
| Returns the abscissa of the center of the bounding box of the coded element. | |
| float | GetBoundingBoxCenterY () const |
| Returns the ordinate of the center of the bounding box of the coded element. | |
| eVision::EPoint | GetBoundingBoxCenter () const |
| Returns the coordinates of the center of the bounding box of the coded element. | |
| float | GetBoundingBoxWidth () const |
| Returns the width of the bounding box (Feret diameter at 0 degrees). | |
| float | GetBoundingBoxHeight () const |
| Returns the height of the bounding box (Feret diameter at 90 degrees). | |
| double | GetMoment (unsigned int p, unsigned int q) const |
| Computes the raw, two-dimensional moment of order (p,q). | |
| float | GetNormalizedCentralMoment (unsigned int p, unsigned int q) const |
| Computes the scale-invariant, central, two-dimensional moment of order (p,q). | |
| float | GetCentralMoment (unsigned int p, unsigned int q) const |
| Computes the central, two-dimensional moment of order (p,q). | |
| float | GetEllipseWidth () const |
| Returns the length of the long axis of the ellipse of inertia. | |
| float | GetEllipseHeight () const |
| Returns the length of the short axis of the ellipse of inertia. | |
| float | GetEllipseAngle () const |
| Returns the angle of the ellipse of inertia. | |
| float | GetEccentricity () const |
| Returns the eccentricity of the ellipse of inertia. | |
| float | GetFeretBox22CenterX () const |
| Returns the abscissa of the center of the Feret box oriented at 22.5 degrees. | |
| float | GetFeretBox22CenterY () const |
| Returns the ordinate of the center of the Feret box oriented at 22.5 degrees. | |
| eVision::EPoint | GetFeretBox22Center () const |
| Returns the coordinates of the center of the Feret box oriented at 22.5 degrees. | |
| float | GetFeretBox22Width () const |
| Returns the width of the Feret box oriented at 22.5 degrees (Feret diameter at 22.5 degrees). | |
| float | GetFeretBox22Height () const |
| Returns the height of the Feret box oriented at 22.5 degrees (Feret diameter at 112.5 degrees). | |
| float | GetFeretBox45CenterX () const |
| Returns the abscissa of the center of the Feret box oriented at 45 degrees. | |
| float | GetFeretBox45CenterY () const |
| Returns the ordinate of the center of the Feret box oriented at 45 degrees. | |
| eVision::EPoint | GetFeretBox45Center () const |
| Returns the coordinates of the center of the Feret box oriented at 45 degrees. | |
| float | GetFeretBox45Width () const |
| Returns the width of the Feret box oriented at 45 degrees (Feret diameter at 45 degrees). | |
| float | GetFeretBox45Height () const |
| Returns the height of the Feret box oriented at 45 degrees (Feret diameter at 135 degrees). | |
| float | GetFeretBox68CenterX () const |
| Returns the abscissa of the center of the Feret box oriented at 67.5 degrees. | |
| float | GetFeretBox68CenterY () const |
| Returns the ordinate of the center of the Feret box oriented at 67.5 degrees. | |
| eVision::EPoint | GetFeretBox68Center () const |
| Returns the coordinates of the center of the Feret box oriented at 67.5 degrees. | |
| float | GetFeretBox68Width () const |
| Returns the width of the Feret box oriented at 67.5 degrees (Feret diameter at 67.5 degrees). | |
| float | GetFeretBox68Height () const |
| Returns the height of the Feret box oriented at 67.5 degrees (Feret diameter at 157.5 degrees). | |
| float | GetMinimumEnclosingRectangleCenterX () const |
| Returns the abscissa of the center of the Minimum-Area Enclosing Rectangle. | |
| float | GetMinimumEnclosingRectangleCenterY () const |
| Returns the ordinate of the center of the Minimum-Area Enclosing Rectangle. | |
| eVision::EPoint | GetMinimumEnclosingRectangleCenter () const |
| Returns the coordinates of the center of the Minimum-Area Enclosing Rectangle. | |
| float | GetMinimumEnclosingRectangleWidth () const |
| Returns the width of the Minimum-Area Enclosing Rectangle. | |
| float | GetMinimumEnclosingRectangleHeight () const |
| Returns the height of the Minimum-Area Enclosing Rectangle. | |
| float | GetMinimumEnclosingRectangleAngle () const |
| Returns the angle of the Minimum-Area Enclosing Rectangle. | |
| eVision::ERotatedBoundingBox | GetMinimumEnclosingRectangle () const |
| Returns the Minimum-Area Enclosing Rectangle. | |
| eVision::ERotatedBoundingBox | GetBoundingBox () const |
| Returns the bounding box of the coded element (Feret box at orientation 0 degrees). | |
| eVision::ERotatedBoundingBox | GetFeretBox22Box () const |
| Returns the Feret box at orientation 22.5 degrees. | |
| eVision::ERotatedBoundingBox | GetFeretBox45Box () const |
| Returns the Feret box at orientation 45 degrees. | |
| eVision::ERotatedBoundingBox | GetFeretBox68Box () const |
| Returns the Feret box at orientation 67.5 degrees. | |
| eVision::ERotatedBoundingBox | ComputeFeretBox (float angle) const |
| Computes the Feret box at a specific orientation. | |
| float | GetSigmaX () const |
| Returns the centered moment of inertia around X. This is equal to the average squared Y-deviation (variance on Y). It can be expressed in terms of central moment as CentralMoment(0, 2) / Area. | |
| float | GetSigmaY () const |
| Returns the centered moment of inertia around Y. This is equal to the average squared X-deviation (variance on X). It can be expressed in terms of central moment as CentralMoment(2, 0) / Area. | |
| float | GetSigmaXY () const |
| Returns the centered product of inertia. The is equal to the covariance of the X and Y pixel coordinates. It can be expressed in terms of central moment as CentralMoment(1, 1) / Area. | |
| float | GetSigmaXX () const |
| Returns the first centered principal moment of inertia. | |
| float | GetSigmaYY () const |
| Returns the second centered principal moment of inertia. | |
| int | GetContourX () const |
| Returns the abscissa of the starting point of the countour of the coded element. | |
| int | GetContourY () const |
| Returns the ordinate of the starting point of the countour of the coded element. | |
| eVision::EPoint | GetContour () const |
| Returns the coordinates of the starting point of the countour of the coded element. | |
| eVision::EPathVector | GetContourPath () const |
| Returns the contour path. | |
| const eVision::EPathVector & | GetConvexHull () const |
| Gets the convex hull of the coded element. | |
| void | ComputeConvexHull (eVision::EPathVector &result) const |
| Computes the convex hull of the coded element. | |
| eVision::EBW8 | ComputePixelMin (const eVision::EROIBW8 &image) const |
| Computes the minimum gray level of the pixels of a given image over the coded element. | |
| eVision::EBW8 | ComputePixelMax (const eVision::EROIBW8 &image) const |
| Computes the maximum gray level of the pixels of a given image over the coded element. | |
| float | ComputePixelGrayAverage (const eVision::EROIBW8 &image) const |
| Computes the average gray-level value of the pixels of a given image over the coded element. | |
| float | ComputePixelGrayDeviation (const eVision::EROIBW8 &image) const |
| Computes the standard deviation of the gray-level values of a given image over the coded element. | |
| double | ComputePixelGrayVariance (const eVision::EROIBW8 &image) const |
| Computes the variance of the gray-level values of a given image over the coded element. | |
| eVision::EPoint | ComputeWeightedGravityCenter (const eVision::EROIBW8 &image) const |
| Computes the gravity center of a given image over the coded element. | |
| void | RenderMask (eVision::EROIBW8 &destination, int offsetX, int offsetY) const |
| Creates a Flexible Mask from the coded element. | |
| void | RenderMask (eVision::EROIBW8 &destination) const |
| Creates a Flexible Mask from the coded element. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draw the ECodedElement. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draw the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, float zoomX, float zoomY, float panX, float panY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, float zoomX, float zoomY, float panX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, float zoomX, float zoomY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, float zoomX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, const eVision::EFrame &frame, float zoomX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeature (eVision::EDrawAdapter *drawAdapter, eVision::EDrawableFeature feature, const eVision::EFrame &frame) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, float zoomX, float zoomY, float panX, float panY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, float zoomX, float zoomY, float panX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, float zoomX, float zoomY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, float zoomX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, const eVision::EFrame &frame, float zoomX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawFeretBox (eVision::EDrawAdapter *drawAdapter, float feretAngle, const eVision::EFrame &frame) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, float zoomX, float zoomY, float panX, float panY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, float zoomX, float zoomY, float panX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, float zoomX, float zoomY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, float zoomX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, const eVision::EFrame &frame, float zoomX) const |
| Draw a given feature of the ECodedElement. | |
| void | DrawWeightedGravityCenter (eVision::EDrawAdapter *drawAdapter, const eVision::EROIBW8 &image, const eVision::EFrame &frame) const |
| Draw a given feature of the ECodedElement. | |
| ECodedElement (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
This class encapsulates either an object or a hole in an object, in a coded image.
This abstract class provides a large set of methods applicable to a particular coded element. The set includes methods to get the features of a coded element, to draw coded elements, and to render flexible masks.
License(s): EasyObject
| eVision::ECodedElement::ECodedElement | ( | const eVision::ECodedElement & | other | ) |
Copy constructor.
| other | Other ECodedElement to copy |
|
virtual | ||||||||||||
| eVision::ECodedElement::ECodedElement | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::ECodedElement::ComputeConvexHull | ( | eVision::EPathVector & | result | ) | const |
Computes the convex hull of the coded element.
| result | The output vector where to store the convex hull. |
| eVision::ERotatedBoundingBox eVision::ECodedElement::ComputeFeretBox | ( | float | angle | ) | const |
Computes the Feret box at a specific orientation.
| angle | The orientation of interest (in the current angle units). |
The angle of the Feret box is the angle made between the X-axis and the width side of the box as shown in the image below:
| float eVision::ECodedElement::ComputePixelGrayAverage | ( | const eVision::EROIBW8 & | image | ) | const |
Computes the average gray-level value of the pixels of a given image over the coded element.
| image | The input image. |
| float eVision::ECodedElement::ComputePixelGrayDeviation | ( | const eVision::EROIBW8 & | image | ) | const |
Computes the standard deviation of the gray-level values of a given image over the coded element.
| image | The input image. |
| double eVision::ECodedElement::ComputePixelGrayVariance | ( | const eVision::EROIBW8 & | image | ) | const |
Computes the variance of the gray-level values of a given image over the coded element.
| image | The input image. |
| eVision::EBW8 eVision::ECodedElement::ComputePixelMax | ( | const eVision::EROIBW8 & | image | ) | const |
Computes the maximum gray level of the pixels of a given image over the coded element.
| image | The input image. |
| eVision::EBW8 eVision::ECodedElement::ComputePixelMin | ( | const eVision::EROIBW8 & | image | ) | const |
Computes the minimum gray level of the pixels of a given image over the coded element.
| image | The input image. |
| eVision::EPoint eVision::ECodedElement::ComputeWeightedGravityCenter | ( | const eVision::EROIBW8 & | image | ) | const |
Computes the gravity center of a given image over the coded element.
| image | The input image. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter | ) | const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| frame | Frame of reference used to compute the coded image. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| frame | Frame of reference used to compute the coded image. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| 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. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| 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. |
| void eVision::ECodedElement::Draw | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| 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. |
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| const eVision::EFrame & | frame ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| frame | Frame of reference used to compute the coded image. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| frame | Frame of reference used to compute the coded image. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| drawDiagonals | Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| float | zoomX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| 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. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| 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. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| 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. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeature | ( | eVision::EDrawAdapter * | drawAdapter, |
| eVision::EDrawableFeature | feature, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feature | The feature of interest. |
| 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. |
| drawDiagonals | Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false. |
Call the methods ECodedElement::DrawFeretBox and ECodedElement::DrawWeightedGravityCenter to draw the features EDrawableFeature::EDrawableFeature_FeretBox and EDrawableFeature::EDrawableFeature_WeightedGravityCenter.
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| const eVision::EFrame & | frame ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| frame | Frame of reference used to compute the coded image. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| frame | Frame of reference used to compute the coded image. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| drawDiagonals | Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| float | zoomX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| 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. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| 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. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| 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. |
| void eVision::ECodedElement::DrawFeretBox | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | feretAngle, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| feretAngle | The angle of the bounding box. |
| 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. |
| drawDiagonals | Specifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| const eVision::EFrame & | frame ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| frame | Frame of reference used to compute the coded image. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| frame | Frame of reference used to compute the coded image. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| frame | Frame of reference used to compute the coded image. |
| 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. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| float | zoomX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| 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. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| 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. |
| void eVision::ECodedElement::DrawWeightedGravityCenter | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EROIBW8 & | image, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draw a given feature of the ECodedElement.
| drawAdapter | Graphic context on which to draw. |
| image | The image to compute the weights for the gravity center. |
| 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. |
| unsigned int eVision::ECodedElement::GetArea | ( | ) | const |
Returns the number of pixels inside the coded element.
Equivalently, the area corresponds to the sum of the length of the runs of the coded element.
| int eVision::ECodedElement::GetBottomLimit | ( | ) | const |
Returns the highest (integer) Y-coordinate of all the pixels of the coded element.
For a coded element \(E\), this value is defined as: \(\left\lceil \max \left\{ y \mid (\exists x) (x,y) \in E \right\} \right\rceil \)
| eVision::ERotatedBoundingBox eVision::ECodedElement::GetBoundingBox | ( | ) | const |
Returns the bounding box of the coded element (Feret box at orientation 0 degrees).
| eVision::EPoint eVision::ECodedElement::GetBoundingBoxCenter | ( | ) | const |
Returns the coordinates of the center of the bounding box of the coded element.
| float eVision::ECodedElement::GetBoundingBoxCenterX | ( | ) | const |
Returns the abscissa of the center of the bounding box of the coded element.
| float eVision::ECodedElement::GetBoundingBoxCenterY | ( | ) | const |
Returns the ordinate of the center of the bounding box of the coded element.
| float eVision::ECodedElement::GetBoundingBoxHeight | ( | ) | const |
Returns the height of the bounding box (Feret diameter at 90 degrees).
| float eVision::ECodedElement::GetBoundingBoxWidth | ( | ) | const |
Returns the width of the bounding box (Feret diameter at 0 degrees).
| float eVision::ECodedElement::GetCentralMoment | ( | unsigned int | p, |
| unsigned int | q ) const |
Computes the central, two-dimensional moment of order (p,q).
| p | Order of the moment along the X-axis. |
| q | Order of the moment along the Y-axis. |
\(\mu_{pq} = \sum_{x} \sum_{y} (x - \bar{x})^p(y - \bar{y})^q I(x,y)\)
| eVision::EPoint eVision::ECodedElement::GetContour | ( | ) | const |
Returns the coordinates of the starting point of the countour of the coded element.
More precisely, the leftmost pixel over the topmost row of the coded element is taken into consideration.
| eVision::EPathVector eVision::ECodedElement::GetContourPath | ( | ) | const |
Returns the contour path.
The contour paths is computed using EContourMode_ClockwiseAlwaysClosed.
| int eVision::ECodedElement::GetContourX | ( | ) | const |
Returns the abscissa of the starting point of the countour of the coded element.
| int eVision::ECodedElement::GetContourY | ( | ) | const |
Returns the ordinate of the starting point of the countour of the coded element.
| const eVision::EPathVector & eVision::ECodedElement::GetConvexHull | ( | ) | const |
Gets the convex hull of the coded element.
| float eVision::ECodedElement::GetEccentricity | ( | ) | const |
Returns the eccentricity of the ellipse of inertia.
The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element. The eccentricity is zero for circular objects and one for a line-shaped objects.
| unsigned int eVision::ECodedElement::GetElementIndex | ( | ) | const |
Returns the index of the coded element.
If the coded element is an object, its index is relative to the layer to which it belongs. If the coded element is a hole, its index is relative to its parent object.
| float eVision::ECodedElement::GetEllipseAngle | ( | ) | const |
Returns the angle of the ellipse of inertia.
The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element.
| float eVision::ECodedElement::GetEllipseHeight | ( | ) | const |
Returns the length of the short axis of the ellipse of inertia.
The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element.
| float eVision::ECodedElement::GetEllipseWidth | ( | ) | const |
Returns the length of the long axis of the ellipse of inertia.
The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element.
| eVision::ERotatedBoundingBox eVision::ECodedElement::GetFeretBox22Box | ( | ) | const |
Returns the Feret box at orientation 22.5 degrees.
| eVision::EPoint eVision::ECodedElement::GetFeretBox22Center | ( | ) | const |
Returns the coordinates of the center of the Feret box oriented at 22.5 degrees.
| float eVision::ECodedElement::GetFeretBox22CenterX | ( | ) | const |
Returns the abscissa of the center of the Feret box oriented at 22.5 degrees.
| float eVision::ECodedElement::GetFeretBox22CenterY | ( | ) | const |
Returns the ordinate of the center of the Feret box oriented at 22.5 degrees.
| float eVision::ECodedElement::GetFeretBox22Height | ( | ) | const |
Returns the height of the Feret box oriented at 22.5 degrees (Feret diameter at 112.5 degrees).
| float eVision::ECodedElement::GetFeretBox22Width | ( | ) | const |
Returns the width of the Feret box oriented at 22.5 degrees (Feret diameter at 22.5 degrees).
| eVision::ERotatedBoundingBox eVision::ECodedElement::GetFeretBox45Box | ( | ) | const |
Returns the Feret box at orientation 45 degrees.
| eVision::EPoint eVision::ECodedElement::GetFeretBox45Center | ( | ) | const |
Returns the coordinates of the center of the Feret box oriented at 45 degrees.
| float eVision::ECodedElement::GetFeretBox45CenterX | ( | ) | const |
Returns the abscissa of the center of the Feret box oriented at 45 degrees.
| float eVision::ECodedElement::GetFeretBox45CenterY | ( | ) | const |
Returns the ordinate of the center of the Feret box oriented at 45 degrees.
| float eVision::ECodedElement::GetFeretBox45Height | ( | ) | const |
Returns the height of the Feret box oriented at 45 degrees (Feret diameter at 135 degrees).
| float eVision::ECodedElement::GetFeretBox45Width | ( | ) | const |
Returns the width of the Feret box oriented at 45 degrees (Feret diameter at 45 degrees).
| eVision::ERotatedBoundingBox eVision::ECodedElement::GetFeretBox68Box | ( | ) | const |
Returns the Feret box at orientation 67.5 degrees.
| eVision::EPoint eVision::ECodedElement::GetFeretBox68Center | ( | ) | const |
Returns the coordinates of the center of the Feret box oriented at 67.5 degrees.
| float eVision::ECodedElement::GetFeretBox68CenterX | ( | ) | const |
Returns the abscissa of the center of the Feret box oriented at 67.5 degrees.
| float eVision::ECodedElement::GetFeretBox68CenterY | ( | ) | const |
Returns the ordinate of the center of the Feret box oriented at 67.5 degrees.
| float eVision::ECodedElement::GetFeretBox68Height | ( | ) | const |
Returns the height of the Feret box oriented at 67.5 degrees (Feret diameter at 157.5 degrees).
| float eVision::ECodedElement::GetFeretBox68Width | ( | ) | const |
Returns the width of the Feret box oriented at 67.5 degrees (Feret diameter at 67.5 degrees).
| const eVision::EFrame & eVision::ECodedElement::GetFrame | ( | ) | const |
Sets the frame in which the region was defined.
| eVision::EPoint eVision::ECodedElement::GetGravityCenter | ( | ) | const |
Returns the gravity center of the coded element.
| float eVision::ECodedElement::GetGravityCenterX | ( | ) | const |
Returns the abscissa of the gravity center of the coded element.
For a coded element \(E\), this value is defined as:
\[\frac{\sum_{(x,y)\in E} x}{\sum_{(x,y)\in E} 1}\]
| float eVision::ECodedElement::GetGravityCenterY | ( | ) | const |
Returns the ordinate of the gravity center of the coded element.
For a coded element \(E\), this value is defined as:
\[\frac{\sum_{(x,y)\in E} y}{\sum_{(x,y)\in E} 1}\]
| eVision::ECodedElement eVision::ECodedElement::GetHole | ( | uint32_t | index | ) | const |
Returns a specified hole in the object.
| index | The index of the hole of interest. |
| uint32_t eVision::ECodedElement::GetHoleCount | ( | ) | const |
Returns the number of holes in the object.
| std::vector< eVision::ECodedElement > eVision::ECodedElement::GetHoles | ( | ) | const |
Returns all holes for the given object.
| unsigned int eVision::ECodedElement::GetLargestRun | ( | ) | const |
Returns the length of the largest run inside the coded element.
| unsigned int eVision::ECodedElement::GetLayerIndex | ( | ) | const |
Returns the index of the layer in the coded image to which the coded element belongs.
If the coded element is a hole, its layer index is defined as that of its parent object.
| int eVision::ECodedElement::GetLeftLimit | ( | ) | const |
Returns the lowest (integer) X-coordinate of all the pixels of the coded element.
For a coded element \(E\), this value is defined as: \(\left\lfloor \min \left\{ x \mid (\exists y) (x,y) \in E \right\} \right\rfloor \)
| eVision::ERotatedBoundingBox eVision::ECodedElement::GetMinimumEnclosingRectangle | ( | ) | const |
Returns the Minimum-Area Enclosing Rectangle.
The Minimum-Area Enclosing Rectangle is defined as the Feret box with the minimum surface among all the possible orientations.
| float eVision::ECodedElement::GetMinimumEnclosingRectangleAngle | ( | ) | const |
Returns the angle of the Minimum-Area Enclosing Rectangle.
The angle is the angle between the width side of the rectangle and the horizontal. It always lies in the range [0 ; pi/2[.
| eVision::EPoint eVision::ECodedElement::GetMinimumEnclosingRectangleCenter | ( | ) | const |
Returns the coordinates of the center of the Minimum-Area Enclosing Rectangle.
| float eVision::ECodedElement::GetMinimumEnclosingRectangleCenterX | ( | ) | const |
Returns the abscissa of the center of the Minimum-Area Enclosing Rectangle.
| float eVision::ECodedElement::GetMinimumEnclosingRectangleCenterY | ( | ) | const |
Returns the ordinate of the center of the Minimum-Area Enclosing Rectangle.
| float eVision::ECodedElement::GetMinimumEnclosingRectangleHeight | ( | ) | const |
Returns the height of the Minimum-Area Enclosing Rectangle.
| float eVision::ECodedElement::GetMinimumEnclosingRectangleWidth | ( | ) | const |
Returns the width of the Minimum-Area Enclosing Rectangle.
| double eVision::ECodedElement::GetMoment | ( | unsigned int | p, |
| unsigned int | q ) const |
Computes the raw, two-dimensional moment of order (p,q).
| p | Order of the moment along the X-axis. |
| q | Order of the moment along the Y-axis. |
\(M_{pq} = \sum_x \sum_y x^p y^q I(x,y)\)
| float eVision::ECodedElement::GetNormalizedCentralMoment | ( | unsigned int | p, |
| unsigned int | q ) const |
Computes the scale-invariant, central, two-dimensional moment of order (p,q).
| p | Order of the moment along the X-axis. |
| q | Order of the moment along the Y-axis. |
\(\eta_{pq} = \frac{\mu_{pq}} {\mu_{00}^{\left(1 + \frac{p+q}{2}\right)}}\)
| unsigned int eVision::ECodedElement::GetParentObjectIndex | ( | ) | const |
Returns the index of the parent object of the hole.
| int eVision::ECodedElement::GetRightLimit | ( | ) | const |
Returns the highest (integer) X-coordinate of all the pixels of the coded element.
For a coded element \(E\), this value is defined as: \(\left\lceil \max \left\{ x \mid (\exists y) (x,y) \in E \right\} \right\rceil \)
| unsigned int eVision::ECodedElement::GetRunCount | ( | ) | const |
Returns the number of runs inside the coded element.
| const eVision::EObjectRunsIterator & eVision::ECodedElement::GetRunsIterator | ( | ) | const |
Returns an iterator to the runs of the coded element.
| float eVision::ECodedElement::GetSigmaX | ( | ) | const |
Returns the centered moment of inertia around X. This is equal to the average squared Y-deviation (variance on Y). It can be expressed in terms of central moment as CentralMoment(0, 2) / Area.
| float eVision::ECodedElement::GetSigmaXX | ( | ) | const |
Returns the first centered principal moment of inertia.
This is the moment of inertia around the first principal axis of the object. It is defined as the biggest eigenvalue of the inertia tensor.
| float eVision::ECodedElement::GetSigmaXY | ( | ) | const |
Returns the centered product of inertia. The is equal to the covariance of the X and Y pixel coordinates. It can be expressed in terms of central moment as CentralMoment(1, 1) / Area.
| float eVision::ECodedElement::GetSigmaY | ( | ) | const |
Returns the centered moment of inertia around Y. This is equal to the average squared X-deviation (variance on X). It can be expressed in terms of central moment as CentralMoment(2, 0) / Area.
| float eVision::ECodedElement::GetSigmaYY | ( | ) | const |
Returns the second centered principal moment of inertia.
This is the moment of inertia around the second principal axis of the object. It is defined as the smallest eigenvalue of the inertia tensor.
| int eVision::ECodedElement::GetTopLimit | ( | ) | const |
Returns the lowest (integer) Y-coordinate of all the pixels of the coded element.
For a coded element \(E\), this value is defined as: \(\left\lfloor \min \left\{ y \mid (\exists x) (x,y) \in E \right\} \right\rfloor \)
| bool eVision::ECodedElement::IsCodedElement | ( | ) | const |
Tests whether the coded element is an object, a hole or a coded element.
| bool eVision::ECodedElement::IsHole | ( | ) | const |
Tests whether the coded element is an object, a hole or a coded element.
| bool eVision::ECodedElement::IsObject | ( | ) | const |
Tests whether the coded element is an object, a hole or a coded element.
| eVision::ECodedElement & eVision::ECodedElement::operator= | ( | const eVision::ECodedElement & | other | ) |
Assignment operator.
| other | Other ECodedElement to assign to this object |
| bool eVision::ECodedElement::operator== | ( | const eVision::ECodedElement & | other | ) | const |
Comparison Operator.
| other | The other ECodedElement this one will be compared to. |
| void eVision::ECodedElement::RenderMask | ( | eVision::EROIBW8 & | destination | ) | const |
Creates a Flexible Mask from the coded element.
| destination | The image in which the generated mask will be stored. |
The size of the result image will not be changed: It must be properly sized beforehand.
| void eVision::ECodedElement::RenderMask | ( | eVision::EROIBW8 & | destination, |
| int | offsetX, | ||
| int | offsetY ) const |
Creates a Flexible Mask from the coded element.
| destination | The image in which the generated mask will be stored. |
| offsetX | The X-offset that must be applied to bring the zero X-coordinate in the coded image on the first column of the result image (defaults to zero). |
| offsetY | The Y-offset that must be applied to bring the zero Y-coordinate in the coded image on the first row of the result image (defaults to zero). |
The size of the result image will not be changed: It must be properly sized beforehand.
| void eVision::ECodedElement::SetFrame | ( | const eVision::EFrame & | frame | ) |
Sets the frame in which the region was defined.
| frame | Frame of reference in which the region was defined. |
| eVision::EFrame eVision::ECodedElement::ToFrame | ( | bool | useAngle, |
| eVision::EFrameScaling | frameScaling ) const |
Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia.
| useAngle | Whether to use the angle of the EFoundPattern in the frame. |
| frameScaling | How to handle the scale of the frame. |
| eVision::EFrame eVision::ECodedElement::ToFrame | ( | bool | useAngle, |
| eVision::EFrameScaling | frameScaling, | ||
| const eVision::EFrame & | inputFrame ) const |
Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia.
| useAngle | Whether to use the angle of the EFoundPattern in the frame. |
| frameScaling | How to handle the scale of the frame. |
| inputFrame | Parent frame. Used when the ECodedElement was read using a frame. |
| eVision::ERegion eVision::ECodedElement::ToRegion | ( | ) | const |
Creates an ERegion from the ECodedElement. The ERegion represents all the pixels which are within the bounding box of the Pattern.
| CppWrapperInternal::WrappedClass eVision::ECodedElement::wrappedClass_ |