eVision .NET API
Loading...
Searching...
No Matches
eVision.ECodedElement Class Reference

This class encapsulates either an object or a hole in an object, in a coded image. More...

Inheritance diagram for eVision.ECodedElement:
Collaboration diagram for eVision.ECodedElement:

Public Member Functions

 ECodedElement (eVision.ECodedElement other)
 Copy constructor.
eVision.ECodedElement GetHole (uint index)
 Returns a specified hole in the object.
eVision.ERegion ToRegion ()
 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)
 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, eVision.EFrame inputFrame)
 Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia.
double GetMoment (uint p, uint q)
 Computes the raw, two-dimensional moment of order (p,q).
float GetNormalizedCentralMoment (uint p, uint q)
 Computes the scale-invariant, central, two-dimensional moment of order (p,q).
float GetCentralMoment (uint p, uint q)
 Computes the central, two-dimensional moment of order (p,q).
eVision.ERotatedBoundingBox ComputeFeretBox (float angle)
 Computes the Feret box at a specific orientation.
void ComputeConvexHull (eVision.EPathVector result)
 Computes the convex hull of the coded element.
eVision.EBW8 ComputePixelMin (eVision.EROIBW8 image)
 Computes the minimum gray level of the pixels of a given image over the coded element.
eVision.EBW8 ComputePixelMax (eVision.EROIBW8 image)
 Computes the maximum gray level of the pixels of a given image over the coded element.
float ComputePixelGrayAverage (eVision.EROIBW8 image)
 Computes the average gray-level value of the pixels of a given image over the coded element.
float ComputePixelGrayDeviation (eVision.EROIBW8 image)
 Computes the standard deviation of the gray-level values of a given image over the coded element.
double ComputePixelGrayVariance (eVision.EROIBW8 image)
 Computes the variance of the gray-level values of a given image over the coded element.
eVision.EPoint ComputeWeightedGravityCenter (eVision.EROIBW8 image)
 Computes the gravity center of a given image over the coded element.
void RenderMask (eVision.EROIBW8 destination, int offsetX, int offsetY)
 Creates a Flexible Mask from the coded element.
void RenderMask (eVision.EROIBW8 destination)
 Creates a Flexible Mask from the coded element.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, float zoomX)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX)
 Draw the ECodedElement.
void Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame)
 Draw the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY, float panX)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, float zoomX)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX)
 Draw a given feature of the ECodedElement.
void DrawFeature (eVision.EDrawAdapter drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, float zoomX, float zoomY, float panX)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, float zoomX, float zoomY)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, float zoomX)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX)
 Draw a given feature of the ECodedElement.
void DrawFeretBox (eVision.EDrawAdapter drawAdapter, float feretAngle, eVision.EFrame frame)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, float zoomX, float zoomY, float panX)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, float zoomX, float zoomY)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, float zoomX)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX)
 Draw a given feature of the ECodedElement.
void DrawWeightedGravityCenter (eVision.EDrawAdapter drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame)
 Draw a given feature of the ECodedElement.

Properties

uint HoleCount [get]
 Returns the number of holes in the object.
eVision.ECodedElement[] Holes [get]
 Returns all holes for the given object.
uint ParentObjectIndex [get]
 Returns the index of the parent object of the hole.
eVision.EFrame Frame [get, set]
 Sets the frame in which the region was defined.
eVision.EObjectRunsIterator RunsIterator [get]
 Returns an iterator to the runs of the coded element.
bool IsHole [get]
 Tests whether the coded element is an object, a hole or a coded element.
bool IsObject [get]
 Tests whether the coded element is an object, a hole or a coded element.
bool IsCodedElement [get]
 Tests whether the coded element is an object, a hole or a coded element.
uint ElementIndex [get]
 Returns the index of the coded element.
uint LayerIndex [get]
 Returns the index of the layer in the coded image to which the coded element belongs.
uint RunCount [get]
 Returns the number of runs inside the coded element.
uint Area [get]
 Returns the number of pixels inside the coded element.
uint LargestRun [get]
 Returns the length of the largest run inside the coded element.
float GravityCenterX [get]
 Returns the abscissa of the gravity center of the coded element.
float GravityCenterY [get]
 Returns the ordinate of the gravity center of the coded element.
eVision.EPoint GravityCenter [get]
 Returns the gravity center of the coded element.
int LeftLimit [get]
 Returns the lowest (integer) X-coordinate of all the pixels of the coded element.
int TopLimit [get]
 Returns the lowest (integer) Y-coordinate of all the pixels of the coded element.
int RightLimit [get]
 Returns the highest (integer) X-coordinate of all the pixels of the coded element.
int BottomLimit [get]
 Returns the highest (integer) Y-coordinate of all the pixels of the coded element.
float BoundingBoxCenterX [get]
 Returns the abscissa of the center of the bounding box of the coded element.
float BoundingBoxCenterY [get]
 Returns the ordinate of the center of the bounding box of the coded element.
eVision.EPoint BoundingBoxCenter [get]
 Returns the coordinates of the center of the bounding box of the coded element.
float BoundingBoxWidth [get]
 Returns the width of the bounding box (Feret diameter at 0 degrees).
float BoundingBoxHeight [get]
 Returns the height of the bounding box (Feret diameter at 90 degrees).
float EllipseWidth [get]
 Returns the length of the long axis of the ellipse of inertia.
float EllipseHeight [get]
 Returns the length of the short axis of the ellipse of inertia.
float EllipseAngle [get]
 Returns the angle of the ellipse of inertia.
float Eccentricity [get]
 Returns the eccentricity of the ellipse of inertia.
float FeretBox22CenterX [get]
 Returns the abscissa of the center of the Feret box oriented at 22.5 degrees.
float FeretBox22CenterY [get]
 Returns the ordinate of the center of the Feret box oriented at 22.5 degrees.
eVision.EPoint FeretBox22Center [get]
 Returns the coordinates of the center of the Feret box oriented at 22.5 degrees.
float FeretBox22Width [get]
 Returns the width of the Feret box oriented at 22.5 degrees (Feret diameter at 22.5 degrees).
float FeretBox22Height [get]
 Returns the height of the Feret box oriented at 22.5 degrees (Feret diameter at 112.5 degrees).
float FeretBox45CenterX [get]
 Returns the abscissa of the center of the Feret box oriented at 45 degrees.
float FeretBox45CenterY [get]
 Returns the ordinate of the center of the Feret box oriented at 45 degrees.
eVision.EPoint FeretBox45Center [get]
 Returns the coordinates of the center of the Feret box oriented at 45 degrees.
float FeretBox45Width [get]
 Returns the width of the Feret box oriented at 45 degrees (Feret diameter at 45 degrees).
float FeretBox45Height [get]
 Returns the height of the Feret box oriented at 45 degrees (Feret diameter at 135 degrees).
float FeretBox68CenterX [get]
 Returns the abscissa of the center of the Feret box oriented at 67.5 degrees.
float FeretBox68CenterY [get]
 Returns the ordinate of the center of the Feret box oriented at 67.5 degrees.
eVision.EPoint FeretBox68Center [get]
 Returns the coordinates of the center of the Feret box oriented at 67.5 degrees.
float FeretBox68Width [get]
 Returns the width of the Feret box oriented at 67.5 degrees (Feret diameter at 67.5 degrees).
float FeretBox68Height [get]
 Returns the height of the Feret box oriented at 67.5 degrees (Feret diameter at 157.5 degrees).
float MinimumEnclosingRectangleCenterX [get]
 Returns the abscissa of the center of the Minimum-Area Enclosing Rectangle.
float MinimumEnclosingRectangleCenterY [get]
 Returns the ordinate of the center of the Minimum-Area Enclosing Rectangle.
eVision.EPoint MinimumEnclosingRectangleCenter [get]
 Returns the coordinates of the center of the Minimum-Area Enclosing Rectangle.
float MinimumEnclosingRectangleWidth [get]
 Returns the width of the Minimum-Area Enclosing Rectangle.
float MinimumEnclosingRectangleHeight [get]
 Returns the height of the Minimum-Area Enclosing Rectangle.
float MinimumEnclosingRectangleAngle [get]
 Returns the angle of the Minimum-Area Enclosing Rectangle.
eVision.ERotatedBoundingBox MinimumEnclosingRectangle [get]
 Returns the Minimum-Area Enclosing Rectangle.
eVision.ERotatedBoundingBox BoundingBox [get]
 Returns the bounding box of the coded element (Feret box at orientation 0 degrees).
eVision.ERotatedBoundingBox FeretBox22Box [get]
 Returns the Feret box at orientation 22.5 degrees.
eVision.ERotatedBoundingBox FeretBox45Box [get]
 Returns the Feret box at orientation 45 degrees.
eVision.ERotatedBoundingBox FeretBox68Box [get]
 Returns the Feret box at orientation 67.5 degrees.
float SigmaX [get]
 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 SigmaY [get]
 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 SigmaXY [get]
 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 SigmaXX [get]
 Returns the first centered principal moment of inertia.
float SigmaYY [get]
 Returns the second centered principal moment of inertia.
int ContourX [get]
 Returns the abscissa of the starting point of the countour of the coded element.
int ContourY [get]
 Returns the ordinate of the starting point of the countour of the coded element.
eVision.EPoint Contour [get]
 Returns the coordinates of the starting point of the countour of the coded element.
eVision.EPathVector ContourPath [get]
 Returns the contour path.
eVision.EPathVector ConvexHull [get]
 Gets the convex hull of the coded element.

Detailed Description

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

Constructor & Destructor Documentation

◆ ECodedElement()

eVision.ECodedElement.ECodedElement ( eVision.ECodedElement other)

Copy constructor.

Parameters
otherOther ECodedElement to copy

Member Function Documentation

◆ ComputeConvexHull()

void eVision.ECodedElement.ComputeConvexHull ( eVision.EPathVector result)

Computes the convex hull of the coded element.

Parameters
resultThe output vector where to store the convex hull.

◆ ComputeFeretBox()

eVision.ERotatedBoundingBox eVision.ECodedElement.ComputeFeretBox ( float angle)

Computes the Feret box at a specific orientation.

Parameters
angleThe 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:

◆ ComputePixelGrayAverage()

float eVision.ECodedElement.ComputePixelGrayAverage ( eVision.EROIBW8 image)

Computes the average gray-level value of the pixels of a given image over the coded element.

Parameters
imageThe input image.

◆ ComputePixelGrayDeviation()

float eVision.ECodedElement.ComputePixelGrayDeviation ( eVision.EROIBW8 image)

Computes the standard deviation of the gray-level values of a given image over the coded element.

Parameters
imageThe input image.

◆ ComputePixelGrayVariance()

double eVision.ECodedElement.ComputePixelGrayVariance ( eVision.EROIBW8 image)

Computes the variance of the gray-level values of a given image over the coded element.

Parameters
imageThe input image.

◆ ComputePixelMax()

eVision.EBW8 eVision.ECodedElement.ComputePixelMax ( eVision.EROIBW8 image)

Computes the maximum gray level of the pixels of a given image over the coded element.

Parameters
imageThe input image.

◆ ComputePixelMin()

eVision.EBW8 eVision.ECodedElement.ComputePixelMin ( eVision.EROIBW8 image)

Computes the minimum gray level of the pixels of a given image over the coded element.

Parameters
imageThe input image.

◆ ComputeWeightedGravityCenter()

eVision.EPoint eVision.ECodedElement.ComputeWeightedGravityCenter ( eVision.EROIBW8 image)

Computes the gravity center of a given image over the coded element.

Parameters
imageThe input image.

◆ Draw() [1/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter)

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.

◆ Draw() [2/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
frameFrame of reference used to compute the coded image.

◆ Draw() [3/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [4/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [5/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [6/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [7/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [8/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [9/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [10/10]

void eVision.ECodedElement.Draw ( eVision.EDrawAdapter drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draw the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawFeature() [1/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.

Call the methods ECodedElement.DrawFeretBox and ECodedElement.DrawWeightedGravityCenter to draw the features EDrawableFeature.EDrawableFeature_FeretBox and EDrawableFeature.EDrawableFeature_WeightedGravityCenter.

◆ DrawFeature() [2/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
frameFrame 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.

◆ DrawFeature() [3/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame,
float zoomX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
frameFrame of reference used to compute the coded image.
zoomXHorizontal 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.

◆ DrawFeature() [4/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical 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.

◆ DrawFeature() [5/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal 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.

◆ DrawFeature() [6/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical 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.

◆ DrawFeature() [7/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies 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.

◆ DrawFeature() [8/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
float zoomX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
zoomXHorizontal 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.

◆ DrawFeature() [9/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
float zoomX,
float zoomY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical 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.

◆ DrawFeature() [10/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal 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.

◆ DrawFeature() [11/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical 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.

◆ DrawFeature() [12/12]

void eVision.ECodedElement.DrawFeature ( eVision.EDrawAdapter drawAdapter,
eVision.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
featureThe feature of interest.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies 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.

◆ DrawFeretBox() [1/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.

◆ DrawFeretBox() [2/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
eVision.EFrame frame )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
frameFrame of reference used to compute the coded image.

◆ DrawFeretBox() [3/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawFeretBox() [4/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawFeretBox() [5/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawFeretBox() [6/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawFeretBox() [7/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false.

◆ DrawFeretBox() [8/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
float zoomX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawFeretBox() [9/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
float zoomX,
float zoomY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawFeretBox() [10/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawFeretBox() [11/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawFeretBox() [12/12]

void eVision.ECodedElement.DrawFeretBox ( eVision.EDrawAdapter drawAdapter,
float feretAngle,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
feretAngleThe angle of the bounding box.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not the diagonals of the ellipses and of the rectangles are to be drawn. Defaults to false.

◆ DrawWeightedGravityCenter() [1/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.

◆ DrawWeightedGravityCenter() [2/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
frameFrame of reference used to compute the coded image.

◆ DrawWeightedGravityCenter() [3/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame,
float zoomX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawWeightedGravityCenter() [4/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawWeightedGravityCenter() [5/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawWeightedGravityCenter() [6/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
frameFrame of reference used to compute the coded image.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawWeightedGravityCenter() [7/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
float zoomX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawWeightedGravityCenter() [8/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
float zoomX,
float zoomY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawWeightedGravityCenter() [9/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawWeightedGravityCenter() [10/10]

void eVision.ECodedElement.DrawWeightedGravityCenter ( eVision.EDrawAdapter drawAdapter,
eVision.EROIBW8 image,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.
imageThe image to compute the weights for the gravity center.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ GetCentralMoment()

float eVision.ECodedElement.GetCentralMoment ( uint p,
uint q )

Computes the central, two-dimensional moment of order (p,q).

Parameters
pOrder of the moment along the X-axis.
qOrder of the moment along the Y-axis.

\(\mu_{pq} = \sum_{x} \sum_{y} (x - \bar{x})^p(y - \bar{y})^q I(x,y)\)

◆ GetHole()

eVision.ECodedElement eVision.ECodedElement.GetHole ( uint index)

Returns a specified hole in the object.

Parameters
indexThe index of the hole of interest.

◆ GetMoment()

double eVision.ECodedElement.GetMoment ( uint p,
uint q )

Computes the raw, two-dimensional moment of order (p,q).

Parameters
pOrder of the moment along the X-axis.
qOrder of the moment along the Y-axis.

\(M_{pq} = \sum_x \sum_y x^p y^q I(x,y)\)

◆ GetNormalizedCentralMoment()

float eVision.ECodedElement.GetNormalizedCentralMoment ( uint p,
uint q )

Computes the scale-invariant, central, two-dimensional moment of order (p,q).

Parameters
pOrder of the moment along the X-axis.
qOrder of the moment along the Y-axis.

\(\eta_{pq} = \frac{\mu_{pq}} {\mu_{00}^{\left(1 + \frac{p+q}{2}\right)}}\)

◆ RenderMask() [1/2]

void eVision.ECodedElement.RenderMask ( eVision.EROIBW8 destination)

Creates a Flexible Mask from the coded element.

Parameters
destinationThe 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.

◆ RenderMask() [2/2]

void eVision.ECodedElement.RenderMask ( eVision.EROIBW8 destination,
int offsetX,
int offsetY )

Creates a Flexible Mask from the coded element.

Parameters
destinationThe image in which the generated mask will be stored.
offsetXThe 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).
offsetYThe 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.

◆ ToFrame() [1/2]

eVision.EFrame eVision.ECodedElement.ToFrame ( bool useAngle,
eVision.EFrameScaling frameScaling )

Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia.

Parameters
useAngleWhether to use the angle of the EFoundPattern in the frame.
frameScalingHow to handle the scale of the frame.

◆ ToFrame() [2/2]

eVision.EFrame eVision.ECodedElement.ToFrame ( bool useAngle,
eVision.EFrameScaling frameScaling,
eVision.EFrame inputFrame )

Creates an EFrame from the ECodedElement. The parameters of the frame are determined by the ellipse of inertia.

Parameters
useAngleWhether to use the angle of the EFoundPattern in the frame.
frameScalingHow to handle the scale of the frame.
inputFrameParent frame. Used when the ECodedElement was read using a frame.

◆ ToRegion()

eVision.ERegion eVision.ECodedElement.ToRegion ( )

Creates an ERegion from the ECodedElement. The ERegion represents all the pixels which are within the bounding box of the Pattern.

Property Documentation

◆ Area

uint eVision.ECodedElement.Area
get

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.

◆ BottomLimit

int eVision.ECodedElement.BottomLimit
get

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 \)

◆ BoundingBox

eVision.ERotatedBoundingBox eVision.ECodedElement.BoundingBox
get

Returns the bounding box of the coded element (Feret box at orientation 0 degrees).

◆ BoundingBoxCenter

eVision.EPoint eVision.ECodedElement.BoundingBoxCenter
get

Returns the coordinates of the center of the bounding box of the coded element.

◆ BoundingBoxCenterX

float eVision.ECodedElement.BoundingBoxCenterX
get

Returns the abscissa of the center of the bounding box of the coded element.

◆ BoundingBoxCenterY

float eVision.ECodedElement.BoundingBoxCenterY
get

Returns the ordinate of the center of the bounding box of the coded element.

◆ BoundingBoxHeight

float eVision.ECodedElement.BoundingBoxHeight
get

Returns the height of the bounding box (Feret diameter at 90 degrees).

◆ BoundingBoxWidth

float eVision.ECodedElement.BoundingBoxWidth
get

Returns the width of the bounding box (Feret diameter at 0 degrees).

◆ Contour

eVision.EPoint eVision.ECodedElement.Contour
get

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.

◆ ContourPath

eVision.EPathVector eVision.ECodedElement.ContourPath
get

Returns the contour path.

The contour paths is computed using EContourMode_ClockwiseAlwaysClosed.

◆ ContourX

int eVision.ECodedElement.ContourX
get

Returns the abscissa of the starting point of the countour of the coded element.

◆ ContourY

int eVision.ECodedElement.ContourY
get

Returns the ordinate of the starting point of the countour of the coded element.

◆ ConvexHull

eVision.EPathVector eVision.ECodedElement.ConvexHull
get

Gets the convex hull of the coded element.

◆ Eccentricity

float eVision.ECodedElement.Eccentricity
get

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.

◆ ElementIndex

uint eVision.ECodedElement.ElementIndex
get

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.

◆ EllipseAngle

float eVision.ECodedElement.EllipseAngle
get

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.

◆ EllipseHeight

float eVision.ECodedElement.EllipseHeight
get

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.

◆ EllipseWidth

float eVision.ECodedElement.EllipseWidth
get

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.

◆ FeretBox22Box

eVision.ERotatedBoundingBox eVision.ECodedElement.FeretBox22Box
get

Returns the Feret box at orientation 22.5 degrees.

◆ FeretBox22Center

eVision.EPoint eVision.ECodedElement.FeretBox22Center
get

Returns the coordinates of the center of the Feret box oriented at 22.5 degrees.

◆ FeretBox22CenterX

float eVision.ECodedElement.FeretBox22CenterX
get

Returns the abscissa of the center of the Feret box oriented at 22.5 degrees.

◆ FeretBox22CenterY

float eVision.ECodedElement.FeretBox22CenterY
get

Returns the ordinate of the center of the Feret box oriented at 22.5 degrees.

◆ FeretBox22Height

float eVision.ECodedElement.FeretBox22Height
get

Returns the height of the Feret box oriented at 22.5 degrees (Feret diameter at 112.5 degrees).

◆ FeretBox22Width

float eVision.ECodedElement.FeretBox22Width
get

Returns the width of the Feret box oriented at 22.5 degrees (Feret diameter at 22.5 degrees).

◆ FeretBox45Box

eVision.ERotatedBoundingBox eVision.ECodedElement.FeretBox45Box
get

Returns the Feret box at orientation 45 degrees.

◆ FeretBox45Center

eVision.EPoint eVision.ECodedElement.FeretBox45Center
get

Returns the coordinates of the center of the Feret box oriented at 45 degrees.

◆ FeretBox45CenterX

float eVision.ECodedElement.FeretBox45CenterX
get

Returns the abscissa of the center of the Feret box oriented at 45 degrees.

◆ FeretBox45CenterY

float eVision.ECodedElement.FeretBox45CenterY
get

Returns the ordinate of the center of the Feret box oriented at 45 degrees.

◆ FeretBox45Height

float eVision.ECodedElement.FeretBox45Height
get

Returns the height of the Feret box oriented at 45 degrees (Feret diameter at 135 degrees).

◆ FeretBox45Width

float eVision.ECodedElement.FeretBox45Width
get

Returns the width of the Feret box oriented at 45 degrees (Feret diameter at 45 degrees).

◆ FeretBox68Box

eVision.ERotatedBoundingBox eVision.ECodedElement.FeretBox68Box
get

Returns the Feret box at orientation 67.5 degrees.

◆ FeretBox68Center

eVision.EPoint eVision.ECodedElement.FeretBox68Center
get

Returns the coordinates of the center of the Feret box oriented at 67.5 degrees.

◆ FeretBox68CenterX

float eVision.ECodedElement.FeretBox68CenterX
get

Returns the abscissa of the center of the Feret box oriented at 67.5 degrees.

◆ FeretBox68CenterY

float eVision.ECodedElement.FeretBox68CenterY
get

Returns the ordinate of the center of the Feret box oriented at 67.5 degrees.

◆ FeretBox68Height

float eVision.ECodedElement.FeretBox68Height
get

Returns the height of the Feret box oriented at 67.5 degrees (Feret diameter at 157.5 degrees).

◆ FeretBox68Width

float eVision.ECodedElement.FeretBox68Width
get

Returns the width of the Feret box oriented at 67.5 degrees (Feret diameter at 67.5 degrees).

◆ Frame

eVision.EFrame eVision.ECodedElement.Frame
getset

Sets the frame in which the region was defined.

◆ GravityCenter

eVision.EPoint eVision.ECodedElement.GravityCenter
get

Returns the gravity center of the coded element.

◆ GravityCenterX

float eVision.ECodedElement.GravityCenterX
get

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}\]

◆ GravityCenterY

float eVision.ECodedElement.GravityCenterY
get

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}\]

◆ HoleCount

uint eVision.ECodedElement.HoleCount
get

Returns the number of holes in the object.

◆ Holes

eVision.ECodedElement [] eVision.ECodedElement.Holes
get

Returns all holes for the given object.

◆ IsCodedElement

bool eVision.ECodedElement.IsCodedElement
get

Tests whether the coded element is an object, a hole or a coded element.

◆ IsHole

bool eVision.ECodedElement.IsHole
get

Tests whether the coded element is an object, a hole or a coded element.

◆ IsObject

bool eVision.ECodedElement.IsObject
get

Tests whether the coded element is an object, a hole or a coded element.

◆ LargestRun

uint eVision.ECodedElement.LargestRun
get

Returns the length of the largest run inside the coded element.

◆ LayerIndex

uint eVision.ECodedElement.LayerIndex
get

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.

◆ LeftLimit

int eVision.ECodedElement.LeftLimit
get

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 \)

◆ MinimumEnclosingRectangle

eVision.ERotatedBoundingBox eVision.ECodedElement.MinimumEnclosingRectangle
get

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.

◆ MinimumEnclosingRectangleAngle

float eVision.ECodedElement.MinimumEnclosingRectangleAngle
get

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[.

◆ MinimumEnclosingRectangleCenter

eVision.EPoint eVision.ECodedElement.MinimumEnclosingRectangleCenter
get

Returns the coordinates of the center of the Minimum-Area Enclosing Rectangle.

◆ MinimumEnclosingRectangleCenterX

float eVision.ECodedElement.MinimumEnclosingRectangleCenterX
get

Returns the abscissa of the center of the Minimum-Area Enclosing Rectangle.

◆ MinimumEnclosingRectangleCenterY

float eVision.ECodedElement.MinimumEnclosingRectangleCenterY
get

Returns the ordinate of the center of the Minimum-Area Enclosing Rectangle.

◆ MinimumEnclosingRectangleHeight

float eVision.ECodedElement.MinimumEnclosingRectangleHeight
get

Returns the height of the Minimum-Area Enclosing Rectangle.

◆ MinimumEnclosingRectangleWidth

float eVision.ECodedElement.MinimumEnclosingRectangleWidth
get

Returns the width of the Minimum-Area Enclosing Rectangle.

◆ ParentObjectIndex

uint eVision.ECodedElement.ParentObjectIndex
get

Returns the index of the parent object of the hole.

◆ RightLimit

int eVision.ECodedElement.RightLimit
get

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 \)

◆ RunCount

uint eVision.ECodedElement.RunCount
get

Returns the number of runs inside the coded element.

◆ RunsIterator

eVision.EObjectRunsIterator eVision.ECodedElement.RunsIterator
get

Returns an iterator to the runs of the coded element.

◆ SigmaX

float eVision.ECodedElement.SigmaX
get

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.

◆ SigmaXX

float eVision.ECodedElement.SigmaXX
get

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.

◆ SigmaXY

float eVision.ECodedElement.SigmaXY
get

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.

◆ SigmaY

float eVision.ECodedElement.SigmaY
get

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.

◆ SigmaYY

float eVision.ECodedElement.SigmaYY
get

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.

◆ TopLimit

int eVision.ECodedElement.TopLimit
get

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 \)