eVision Python 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...

Public Member Functions

None __init__ (self, eVision.ECodedElement other)
 Copy constructor.
eVision.ECodedElement GetHole (self, int index)
 Returns a specified hole in the object.
eVision.ERegion ToRegion (self)
 Creates an ERegion from the eVision.ECodedElement.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling)
 Creates an eVision.EFrame from the eVision.ECodedElement.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame inputFrame)
 Creates an eVision.EFrame from the eVision.ECodedElement.
bool IsHole (self)
 Tests whether the coded element is an object, a hole or a coded element.
bool IsObject (self)
 Tests whether the coded element is an object, a hole or a coded element.
bool IsCodedElement (self)
 Tests whether the coded element is an object, a hole or a coded element.
float GetMoment (self, int p, int q)
 Computes the raw, two-dimensional moment of order (p,q).
float GetNormalizedCentralMoment (self, int p, int q)
 Computes the scale-invariant, central, two-dimensional moment of order (p,q).
float GetCentralMoment (self, int p, int q)
 Computes the central, two-dimensional moment of order (p,q).
eVision.ERotatedBoundingBox ComputeFeretBox (self, float angle)
 Computes the Feret box at a specific orientation.
None ComputeConvexHull (self, eVision.EPathVector result)
 Computes the convex hull of the coded element.
eVision.EBW8 ComputePixelMin (self, eVision.EROIBW8 image)
 Computes the minimum gray level of the pixels of a given image over the coded element.
eVision.EBW8 ComputePixelMax (self, eVision.EROIBW8 image)
 Computes the maximum gray level of the pixels of a given image over the coded element.
float ComputePixelGrayAverage (self, eVision.EROIBW8 image)
 Computes the average gray-level value of the pixels of a given image over the coded element.
float ComputePixelGrayDeviation (self, eVision.EROIBW8 image)
 Computes the standard deviation of the gray-level values of a given image over the coded element.
float ComputePixelGrayVariance (self, eVision.EROIBW8 image)
 Computes the variance of the gray-level values of a given image over the coded element.
eVision.EPoint ComputeWeightedGravityCenter (self, eVision.EROIBW8 image)
 Computes the gravity center of a given image over the coded element.
None RenderMask (self, eVision.EROIBW8 destination, int offsetX, int offsetY)
 Creates a Flexible Mask from the coded element.
None RenderMask (self, eVision.EROIBW8 destination)
 Creates a Flexible Mask from the coded element.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draw the eVision.ECodedElement.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draw the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY, float panX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, float zoomX, float zoomY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, float zoomX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame, float zoomX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeature (self, eVision.EDrawAdapter|None drawAdapter, eVision.EDrawableFeature feature, eVision.EFrame frame)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, float zoomX, float zoomY, float panX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, float zoomX, float zoomY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, float zoomX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, eVision.EFrame frame, float zoomX)
 Draw a given feature of the eVision.ECodedElement.
None DrawFeretBox (self, eVision.EDrawAdapter|None drawAdapter, float feretAngle, eVision.EFrame frame)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, float zoomX, float zoomY, float panX)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, float zoomX, float zoomY)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, float zoomX)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX, float zoomY)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame, float zoomX)
 Draw a given feature of the eVision.ECodedElement.
None DrawWeightedGravityCenter (self, eVision.EDrawAdapter|None drawAdapter, eVision.EROIBW8 image, eVision.EFrame frame)
 Draw a given feature of the eVision.ECodedElement.

Properties

 HoleCount = property(_HoleCount__getter, None)
 Returns the number of holes in the object.
 Holes = property(_Holes__getter, None)
 Returns all holes for the given object.
 ParentObjectIndex = property(_ParentObjectIndex__getter, None)
 Returns the index of the parent object of the hole.
 Frame = property(_Frame__getter, _Frame__setter)
 Sets the frame in which the region was defined.
 RunsIterator = property(_RunsIterator__getter, None)
 Returns an iterator to the runs of the coded element.
 ElementIndex = property(_ElementIndex__getter, None)
 Returns the index of the coded element.
 LayerIndex = property(_LayerIndex__getter, None)
 Returns the index of the layer in the coded image to which the coded element belongs.
 RunCount = property(_RunCount__getter, None)
 Returns the number of runs inside the coded element.
 Area = property(_Area__getter, None)
 Returns the number of pixels inside the coded element.
 LargestRun = property(_LargestRun__getter, None)
 Returns the length of the largest run inside the coded element.
 GravityCenterX = property(_GravityCenterX__getter, None)
 Returns the abscissa of the gravity center of the coded element.
 GravityCenterY = property(_GravityCenterY__getter, None)
 Returns the ordinate of the gravity center of the coded element.
 GravityCenter = property(_GravityCenter__getter, None)
 Returns the gravity center of the coded element.
 LeftLimit = property(_LeftLimit__getter, None)
 Returns the lowest (integer) X-coordinate of all the pixels of the coded element.
 TopLimit = property(_TopLimit__getter, None)
 Returns the lowest (integer) Y-coordinate of all the pixels of the coded element.
 RightLimit = property(_RightLimit__getter, None)
 Returns the highest (integer) X-coordinate of all the pixels of the coded element.
 BottomLimit = property(_BottomLimit__getter, None)
 Returns the highest (integer) Y-coordinate of all the pixels of the coded element.
 BoundingBoxCenterX = property(_BoundingBoxCenterX__getter, None)
 Returns the abscissa of the center of the bounding box of the coded element.
 BoundingBoxCenterY = property(_BoundingBoxCenterY__getter, None)
 Returns the ordinate of the center of the bounding box of the coded element.
 BoundingBoxCenter = property(_BoundingBoxCenter__getter, None)
 Returns the coordinates of the center of the bounding box of the coded element.
 BoundingBoxWidth = property(_BoundingBoxWidth__getter, None)
 Returns the width of the bounding box (Feret diameter at 0 degrees).
 BoundingBoxHeight = property(_BoundingBoxHeight__getter, None)
 Returns the height of the bounding box (Feret diameter at 90 degrees).
 EllipseWidth = property(_EllipseWidth__getter, None)
 Returns the length of the long axis of the ellipse of inertia.
 EllipseHeight = property(_EllipseHeight__getter, None)
 Returns the length of the short axis of the ellipse of inertia.
 EllipseAngle = property(_EllipseAngle__getter, None)
 Returns the angle of the ellipse of inertia.
 Eccentricity = property(_Eccentricity__getter, None)
 Returns the eccentricity of the ellipse of inertia.
 FeretBox22CenterX = property(_FeretBox22CenterX__getter, None)
 Returns the abscissa of the center of the Feret box oriented at 22.5 degrees.
 FeretBox22CenterY = property(_FeretBox22CenterY__getter, None)
 Returns the ordinate of the center of the Feret box oriented at 22.5 degrees.
 FeretBox22Center = property(_FeretBox22Center__getter, None)
 Returns the coordinates of the center of the Feret box oriented at 22.5 degrees.
 FeretBox22Width = property(_FeretBox22Width__getter, None)
 Returns the width of the Feret box oriented at 22.5 degrees (Feret diameter at 22.5 degrees).
 FeretBox22Height = property(_FeretBox22Height__getter, None)
 Returns the height of the Feret box oriented at 22.5 degrees (Feret diameter at 112.5 degrees).
 FeretBox45CenterX = property(_FeretBox45CenterX__getter, None)
 Returns the abscissa of the center of the Feret box oriented at 45 degrees.
 FeretBox45CenterY = property(_FeretBox45CenterY__getter, None)
 Returns the ordinate of the center of the Feret box oriented at 45 degrees.
 FeretBox45Center = property(_FeretBox45Center__getter, None)
 Returns the coordinates of the center of the Feret box oriented at 45 degrees.
 FeretBox45Width = property(_FeretBox45Width__getter, None)
 Returns the width of the Feret box oriented at 45 degrees (Feret diameter at 45 degrees).
 FeretBox45Height = property(_FeretBox45Height__getter, None)
 Returns the height of the Feret box oriented at 45 degrees (Feret diameter at 135 degrees).
 FeretBox68CenterX = property(_FeretBox68CenterX__getter, None)
 Returns the abscissa of the center of the Feret box oriented at 67.5 degrees.
 FeretBox68CenterY = property(_FeretBox68CenterY__getter, None)
 Returns the ordinate of the center of the Feret box oriented at 67.5 degrees.
 FeretBox68Center = property(_FeretBox68Center__getter, None)
 Returns the coordinates of the center of the Feret box oriented at 67.5 degrees.
 FeretBox68Width = property(_FeretBox68Width__getter, None)
 Returns the width of the Feret box oriented at 67.5 degrees (Feret diameter at 67.5 degrees).
 FeretBox68Height = property(_FeretBox68Height__getter, None)
 Returns the height of the Feret box oriented at 67.5 degrees (Feret diameter at 157.5 degrees).
 MinimumEnclosingRectangleCenterX = property(_MinimumEnclosingRectangleCenterX__getter, None)
 Returns the abscissa of the center of the Minimum-Area Enclosing Rectangle.
 MinimumEnclosingRectangleCenterY = property(_MinimumEnclosingRectangleCenterY__getter, None)
 Returns the ordinate of the center of the Minimum-Area Enclosing Rectangle.
 MinimumEnclosingRectangleCenter = property(_MinimumEnclosingRectangleCenter__getter, None)
 Returns the coordinates of the center of the Minimum-Area Enclosing Rectangle.
 MinimumEnclosingRectangleWidth = property(_MinimumEnclosingRectangleWidth__getter, None)
 Returns the width of the Minimum-Area Enclosing Rectangle.
 MinimumEnclosingRectangleHeight = property(_MinimumEnclosingRectangleHeight__getter, None)
 Returns the height of the Minimum-Area Enclosing Rectangle.
 MinimumEnclosingRectangleAngle = property(_MinimumEnclosingRectangleAngle__getter, None)
 Returns the angle of the Minimum-Area Enclosing Rectangle.
 MinimumEnclosingRectangle = property(_MinimumEnclosingRectangle__getter, None)
 Returns the Minimum-Area Enclosing Rectangle.
 BoundingBox = property(_BoundingBox__getter, None)
 Returns the bounding box of the coded element (Feret box at orientation 0 degrees).
 FeretBox22Box = property(_FeretBox22Box__getter, None)
 Returns the Feret box at orientation 22.5 degrees.
 FeretBox45Box = property(_FeretBox45Box__getter, None)
 Returns the Feret box at orientation 45 degrees.
 FeretBox68Box = property(_FeretBox68Box__getter, None)
 Returns the Feret box at orientation 67.5 degrees.
 SigmaX = property(_SigmaX__getter, None)
 Returns the centered moment of inertia around X.
 SigmaY = property(_SigmaY__getter, None)
 Returns the centered moment of inertia around Y.
 SigmaXY = property(_SigmaXY__getter, None)
 Returns the centered product of inertia.
 SigmaXX = property(_SigmaXX__getter, None)
 Returns the first centered principal moment of inertia.
 SigmaYY = property(_SigmaYY__getter, None)
 Returns the second centered principal moment of inertia.
 ContourX = property(_ContourX__getter, None)
 Returns the abscissa of the starting point of the countour of the coded element.
 ContourY = property(_ContourY__getter, None)
 Returns the ordinate of the starting point of the countour of the coded element.
 Contour = property(_Contour__getter, None)
 Returns the coordinates of the starting point of the countour of the coded element.
 ContourPath = property(_ContourPath__getter, None)
 Returns the contour path.
 ConvexHull = property(_ConvexHull__getter, None)
 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.

Remarks:

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

◆ __init__()

None eVision.ECodedElement.__init__ ( self,
eVision.ECodedElement other )

Copy constructor.

Parameters
otherOther eVision.ECodedElement to copy

Member Function Documentation

◆ ComputeConvexHull()

None eVision.ECodedElement.ComputeConvexHull ( self,
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 ( self,
float angle )

Computes the Feret box at a specific orientation.

Remarks:

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:

Parameters
angleThe orientation of interest (in the current angle units).

◆ ComputePixelGrayAverage()

float eVision.ECodedElement.ComputePixelGrayAverage ( self,
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 ( self,
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()

float eVision.ECodedElement.ComputePixelGrayVariance ( self,
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 ( self,
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 ( self,
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 ( self,
eVision.EROIBW8 image )

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

Parameters
imageThe input image.

◆ Draw() [1/10]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter )

Draw the eVision.ECodedElement.

Parameters
drawAdapterGraphic context on which to draw.

◆ Draw() [2/10]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame )

Draw the eVision.ECodedElement.

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

◆ Draw() [3/10]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX )

Draw the eVision.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]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw the eVision.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]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draw the eVision.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]

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

Draw the eVision.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]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX )

Draw the eVision.ECodedElement.

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

◆ Draw() [8/10]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY )

Draw the eVision.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]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX )

Draw the eVision.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]

None eVision.ECodedElement.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draw the eVision.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]

None eVision.ECodedElement.DrawFeature ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EDrawableFeature feature )

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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

◆ DrawFeature() [2/12]

None eVision.ECodedElement.DrawFeature ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame )

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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

◆ DrawFeature() [3/12]

None eVision.ECodedElement.DrawFeature ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EDrawableFeature feature,
eVision.EFrame frame,
float zoomX )

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [4/12]

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

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [5/12]

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

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [6/12]

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

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [7/12]

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

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [8/12]

None eVision.ECodedElement.DrawFeature ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EDrawableFeature feature,
float zoomX )

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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

◆ DrawFeature() [9/12]

None eVision.ECodedElement.DrawFeature ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EDrawableFeature feature,
float zoomX,
float zoomY )

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [10/12]

None eVision.ECodedElement.DrawFeature ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EDrawableFeature feature,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [11/12]

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

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeature() [12/12]

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

Draw a given feature of the eVision.ECodedElement.

Remarks:

Call the methods eVision.ECodedElement.DrawFeretBox and eVision.ECodedElement.DrawWeightedGravityCenter to draw the features eVision.EDrawableFeature.FeretBox and eVision.EDrawableFeature.WeightedGravityCenter.

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.

◆ DrawFeretBox() [1/12]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle )

Draw a given feature of the eVision.ECodedElement.

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

◆ DrawFeretBox() [2/12]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
eVision.EFrame frame )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
float zoomX )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
float zoomX,
float zoomY )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawFeretBox ( self,
eVision.EDrawAdapter | None drawAdapter,
float feretAngle,
float zoomX,
float zoomY,
float panX,
float panY )

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawWeightedGravityCenter ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EROIBW8 image )

Draw a given feature of the eVision.ECodedElement.

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

◆ DrawWeightedGravityCenter() [2/10]

None eVision.ECodedElement.DrawWeightedGravityCenter ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawWeightedGravityCenter ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EROIBW8 image,
eVision.EFrame frame,
float zoomX )

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawWeightedGravityCenter ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EROIBW8 image,
float zoomX )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawWeightedGravityCenter ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EROIBW8 image,
float zoomX,
float zoomY )

Draw a given feature of the eVision.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]

None eVision.ECodedElement.DrawWeightedGravityCenter ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EROIBW8 image,
float zoomX,
float zoomY,
float panX )

Draw a given feature of the eVision.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]

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

Draw a given feature of the eVision.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 ( self,
int p,
int q )

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

Remarks:

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

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

◆ GetHole()

eVision.ECodedElement eVision.ECodedElement.GetHole ( self,
int index )

Returns a specified hole in the object.

Parameters
indexThe index of the hole of interest.

◆ GetMoment()

float eVision.ECodedElement.GetMoment ( self,
int p,
int q )

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

Remarks:

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

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

◆ GetNormalizedCentralMoment()

float eVision.ECodedElement.GetNormalizedCentralMoment ( self,
int p,
int q )

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

Remarks:

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

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

◆ IsCodedElement()

bool eVision.ECodedElement.IsCodedElement ( self)

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

◆ IsHole()

bool eVision.ECodedElement.IsHole ( self)

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

◆ IsObject()

bool eVision.ECodedElement.IsObject ( self)

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

◆ RenderMask() [1/2]

None eVision.ECodedElement.RenderMask ( self,
eVision.EROIBW8 destination )

Creates a Flexible Mask from the coded element.

Remarks:

The size of the result image will not be changed: It must be properly sized beforehand.

Parameters
destinationThe image in which the generated mask will be stored.

◆ RenderMask() [2/2]

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

Creates a Flexible Mask from the coded element.

Remarks:

The size of the result image will not be changed: It must be properly sized beforehand.

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

◆ ToFrame() [1/2]

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

Creates an eVision.EFrame from the eVision.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 ( self,
bool useAngle,
eVision.EFrameScaling frameScaling,
eVision.EFrame inputFrame )

Creates an eVision.EFrame from the eVision.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 eVision.ECodedElement was read using a frame.

◆ ToRegion()

eVision.ERegion eVision.ECodedElement.ToRegion ( self)

Creates an ERegion from the eVision.ECodedElement.

The ERegion represents all the pixels which are within the bounding box of the Pattern.

Property Documentation

◆ Area

eVision.ECodedElement.Area = property(_Area__getter, None)
static

Returns the number of pixels inside the coded element.

Remarks:

Equivalently, the area corresponds to the sum of the length of the runs of the coded element.

◆ BottomLimit

eVision.ECodedElement.BottomLimit = property(_BottomLimit__getter, None)
static

Returns the highest (integer) Y-coordinate of all the pixels of the coded element.

Remarks:

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.ECodedElement.BoundingBox = property(_BoundingBox__getter, None)
static

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

◆ BoundingBoxCenter

eVision.ECodedElement.BoundingBoxCenter = property(_BoundingBoxCenter__getter, None)
static

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

◆ BoundingBoxCenterX

eVision.ECodedElement.BoundingBoxCenterX = property(_BoundingBoxCenterX__getter, None)
static

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

◆ BoundingBoxCenterY

eVision.ECodedElement.BoundingBoxCenterY = property(_BoundingBoxCenterY__getter, None)
static

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

◆ BoundingBoxHeight

eVision.ECodedElement.BoundingBoxHeight = property(_BoundingBoxHeight__getter, None)
static

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

◆ BoundingBoxWidth

eVision.ECodedElement.BoundingBoxWidth = property(_BoundingBoxWidth__getter, None)
static

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

◆ Contour

eVision.ECodedElement.Contour = property(_Contour__getter, None)
static

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

Remarks:

More precisely, the leftmost pixel over the topmost row of the coded element is taken into consideration.

◆ ContourPath

eVision.ECodedElement.ContourPath = property(_ContourPath__getter, None)
static

Returns the contour path.

The contour paths is computed using EContourMode_ClockwiseAlwaysClosed.

◆ ContourX

eVision.ECodedElement.ContourX = property(_ContourX__getter, None)
static

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

◆ ContourY

eVision.ECodedElement.ContourY = property(_ContourY__getter, None)
static

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

◆ ConvexHull

eVision.ECodedElement.ConvexHull = property(_ConvexHull__getter, None)
static

Gets the convex hull of the coded element.

◆ Eccentricity

eVision.ECodedElement.Eccentricity = property(_Eccentricity__getter, None)
static

Returns the eccentricity of the ellipse of inertia.

Remarks:

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

eVision.ECodedElement.ElementIndex = property(_ElementIndex__getter, None)
static

Returns the index of the coded element.

Remarks:

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

eVision.ECodedElement.EllipseAngle = property(_EllipseAngle__getter, None)
static

Returns the angle of the ellipse of inertia.

Remarks:

The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element.

◆ EllipseHeight

eVision.ECodedElement.EllipseHeight = property(_EllipseHeight__getter, None)
static

Returns the length of the short axis of the ellipse of inertia.

Remarks:

The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element.

◆ EllipseWidth

eVision.ECodedElement.EllipseWidth = property(_EllipseWidth__getter, None)
static

Returns the length of the long axis of the ellipse of inertia.

Remarks:

The ellipse of inertia is defined as the ellipse that has the same second order moments as the original coded element.

◆ FeretBox22Box

eVision.ECodedElement.FeretBox22Box = property(_FeretBox22Box__getter, None)
static

Returns the Feret box at orientation 22.5 degrees.

◆ FeretBox22Center

eVision.ECodedElement.FeretBox22Center = property(_FeretBox22Center__getter, None)
static

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

◆ FeretBox22CenterX

eVision.ECodedElement.FeretBox22CenterX = property(_FeretBox22CenterX__getter, None)
static

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

◆ FeretBox22CenterY

eVision.ECodedElement.FeretBox22CenterY = property(_FeretBox22CenterY__getter, None)
static

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

◆ FeretBox22Height

eVision.ECodedElement.FeretBox22Height = property(_FeretBox22Height__getter, None)
static

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

◆ FeretBox22Width

eVision.ECodedElement.FeretBox22Width = property(_FeretBox22Width__getter, None)
static

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

◆ FeretBox45Box

eVision.ECodedElement.FeretBox45Box = property(_FeretBox45Box__getter, None)
static

Returns the Feret box at orientation 45 degrees.

◆ FeretBox45Center

eVision.ECodedElement.FeretBox45Center = property(_FeretBox45Center__getter, None)
static

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

◆ FeretBox45CenterX

eVision.ECodedElement.FeretBox45CenterX = property(_FeretBox45CenterX__getter, None)
static

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

◆ FeretBox45CenterY

eVision.ECodedElement.FeretBox45CenterY = property(_FeretBox45CenterY__getter, None)
static

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

◆ FeretBox45Height

eVision.ECodedElement.FeretBox45Height = property(_FeretBox45Height__getter, None)
static

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

◆ FeretBox45Width

eVision.ECodedElement.FeretBox45Width = property(_FeretBox45Width__getter, None)
static

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

◆ FeretBox68Box

eVision.ECodedElement.FeretBox68Box = property(_FeretBox68Box__getter, None)
static

Returns the Feret box at orientation 67.5 degrees.

◆ FeretBox68Center

eVision.ECodedElement.FeretBox68Center = property(_FeretBox68Center__getter, None)
static

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

◆ FeretBox68CenterX

eVision.ECodedElement.FeretBox68CenterX = property(_FeretBox68CenterX__getter, None)
static

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

◆ FeretBox68CenterY

eVision.ECodedElement.FeretBox68CenterY = property(_FeretBox68CenterY__getter, None)
static

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

◆ FeretBox68Height

eVision.ECodedElement.FeretBox68Height = property(_FeretBox68Height__getter, None)
static

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

◆ FeretBox68Width

eVision.ECodedElement.FeretBox68Width = property(_FeretBox68Width__getter, None)
static

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

◆ Frame

eVision.ECodedElement.Frame = property(_Frame__getter, _Frame__setter)
static

Sets the frame in which the region was defined.

◆ GravityCenter

eVision.ECodedElement.GravityCenter = property(_GravityCenter__getter, None)
static

Returns the gravity center of the coded element.

◆ GravityCenterX

eVision.ECodedElement.GravityCenterX = property(_GravityCenterX__getter, None)
static

Returns the abscissa of the gravity center of the coded element.

Remarks:

For a coded element \(E\), this value is defined as:

\[\frac{\sum_{(x,y)\in E} x}{\sum_{(x,y)\in E} 1}\]

◆ GravityCenterY

eVision.ECodedElement.GravityCenterY = property(_GravityCenterY__getter, None)
static

Returns the ordinate of the gravity center of the coded element.

Remarks:

For a coded element \(E\), this value is defined as:

\[\frac{\sum_{(x,y)\in E} y}{\sum_{(x,y)\in E} 1}\]

◆ HoleCount

eVision.ECodedElement.HoleCount = property(_HoleCount__getter, None)
static

Returns the number of holes in the object.

◆ Holes

eVision.ECodedElement.Holes = property(_Holes__getter, None)
static

Returns all holes for the given object.

◆ LargestRun

eVision.ECodedElement.LargestRun = property(_LargestRun__getter, None)
static

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

◆ LayerIndex

eVision.ECodedElement.LayerIndex = property(_LayerIndex__getter, None)
static

Returns the index of the layer in the coded image to which the coded element belongs.

Remarks:

If the coded element is a hole, its layer index is defined as that of its parent object.

◆ LeftLimit

eVision.ECodedElement.LeftLimit = property(_LeftLimit__getter, None)
static

Returns the lowest (integer) X-coordinate of all the pixels of the coded element.

Remarks:

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.ECodedElement.MinimumEnclosingRectangle = property(_MinimumEnclosingRectangle__getter, None)
static

Returns the Minimum-Area Enclosing Rectangle.

Remarks:

The Minimum-Area Enclosing Rectangle is defined as the Feret box with the minimum surface among all the possible orientations.

◆ MinimumEnclosingRectangleAngle

eVision.ECodedElement.MinimumEnclosingRectangleAngle = property(_MinimumEnclosingRectangleAngle__getter, None)
static

Returns the angle of the Minimum-Area Enclosing Rectangle.

Remarks:

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.ECodedElement.MinimumEnclosingRectangleCenter = property(_MinimumEnclosingRectangleCenter__getter, None)
static

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

◆ MinimumEnclosingRectangleCenterX

eVision.ECodedElement.MinimumEnclosingRectangleCenterX = property(_MinimumEnclosingRectangleCenterX__getter, None)
static

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

◆ MinimumEnclosingRectangleCenterY

eVision.ECodedElement.MinimumEnclosingRectangleCenterY = property(_MinimumEnclosingRectangleCenterY__getter, None)
static

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

◆ MinimumEnclosingRectangleHeight

eVision.ECodedElement.MinimumEnclosingRectangleHeight = property(_MinimumEnclosingRectangleHeight__getter, None)
static

Returns the height of the Minimum-Area Enclosing Rectangle.

◆ MinimumEnclosingRectangleWidth

eVision.ECodedElement.MinimumEnclosingRectangleWidth = property(_MinimumEnclosingRectangleWidth__getter, None)
static

Returns the width of the Minimum-Area Enclosing Rectangle.

◆ ParentObjectIndex

eVision.ECodedElement.ParentObjectIndex = property(_ParentObjectIndex__getter, None)
static

Returns the index of the parent object of the hole.

◆ RightLimit

eVision.ECodedElement.RightLimit = property(_RightLimit__getter, None)
static

Returns the highest (integer) X-coordinate of all the pixels of the coded element.

Remarks:

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

eVision.ECodedElement.RunCount = property(_RunCount__getter, None)
static

Returns the number of runs inside the coded element.

◆ RunsIterator

eVision.ECodedElement.RunsIterator = property(_RunsIterator__getter, None)
static

Returns an iterator to the runs of the coded element.

◆ SigmaX

eVision.ECodedElement.SigmaX = property(_SigmaX__getter, None)
static

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

eVision.ECodedElement.SigmaXX = property(_SigmaXX__getter, None)
static

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

eVision.ECodedElement.SigmaXY = property(_SigmaXY__getter, None)
static

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

eVision.ECodedElement.SigmaY = property(_SigmaY__getter, None)
static

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

eVision.ECodedElement.SigmaYY = property(_SigmaYY__getter, None)
static

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

eVision.ECodedElement.TopLimit = property(_TopLimit__getter, None)
static

Returns the lowest (integer) Y-coordinate of all the pixels of the coded element.

Remarks:

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