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

Represents a single instance of the pattern in the search field, as returned by the EasyFind or EasyMatch finding process. More...

Inheritance diagram for eVision.EFoundPattern:
Collaboration diagram for eVision.EFoundPattern:

Public Member Functions

 EFoundPattern ()
 Constructs a EFoundPattern object.
 EFoundPattern (eVision.EFoundPattern other)
 Constructs a EFoundPattern object.
eVision.ERegion ToRegion ()
 Creates an ERegion from the EFoundPattern. If an ERegion was used to learn the pattern (see EFoundPattern.HasRegion), returns the learned region transformed to the position of the found pattern. Otherwise, return an ERegion representing all the pixels which are within the bounding box of the found pattern.
eVision.EFrame ToFrame (bool useAngle, eVision.EFrameScaling frameScaling)
 Creates an EFrame from the EFoundPattern.
eVision.EFrame ToFrame (bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame frame)
 Creates an EFrame from the EFoundPattern.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX, float zoomY)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, float zoomX)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame, float zoomX)
 Draws the found pattern.
void Draw (eVision.EDrawAdapter graphicContext, eVision.EFrame frame)
 Draws the found pattern.
void Draw (IntPtr graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void Draw (IntPtr graphicContext, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void Draw (IntPtr graphicContext, float zoomX, float zoomY)
 Draws the found pattern.
void Draw (IntPtr graphicContext, float zoomX)
 Draws the found pattern.
void Draw (IntPtr graphicContext)
 Draws the found pattern.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the found pattern.
void Draw (IntPtr graphicContext, eVision.ERGBColor color, float zoomX)
 Draws the found pattern.
void Draw (IntPtr graphicContext, eVision.ERGBColor color)
 Draws the found pattern.
void DrawWithCurrentPen (IntPtr graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void DrawWithCurrentPen (IntPtr graphicContext, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void DrawWithCurrentPen (IntPtr graphicContext, float zoomX, float zoomY)
 Draws the found pattern.
void DrawWithCurrentPen (IntPtr graphicContext, float zoomX)
 Draws the found pattern.
void DrawWithCurrentPen (IntPtr graphicContext)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, float zoomX, float zoomY)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, float zoomX)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color, float zoomX)
 Draws the found pattern.
void Draw (System.Drawing.Graphics graphicContext, eVision.ERGBColor color)
 Draws the found pattern.

Properties

eVision.EPoint Center [get]
 Reference point of the instance.
float Angle [get]
 Angle of the found instance, in clockwise direction and in the current angle unit.
float Scale [get]
 Scaling factor of the found pattern, in units (not percent).
float ScaleX [get]
 Horizontal Scaling factor of the found pattern, in units (not percent).
float ScaleY [get]
 Vertical Scaling factor of the found pattern, in units (not percent).
float Score [get]
 Matching score of the found pattern, in units (not percent).
float AreaRatio [get]
 When the EFoundPattern was computed from an EMatcher: Ratio between the found pattern area inside the search ROI/Region and its complete area. When the EFoundPattern was computed from an EPatternFinder: returns 1.0.
uint LearntPatternIndex [get]
 Returns the index of the pattern learnt by EPatternFinder.LearnPatterns or EMatcher.LearnPatterns corresponding to this EFoundPattern.EFoundPattern or 0 if a single pattern was learnt.
bool DrawBoundingBox [get, set]
 Flag indicating if the EFoundPattern.Draw method must draw the bounding box of the FoundPattern.
bool DrawCenter [get, set]
 Flag indicating if the EFoundPattern.Draw method must draw the center of the FoundPattern.
bool DrawFeaturePoints [get, set]
 Flag indicating if the EFoundPattern.Draw method must draw the feature points of the EFoundPattern.EFoundPattern object.
eVision.EDrawRegion DrawRegion [get, set]
 Flag indicating if the EFoundPattern.Draw method must draw the region of the EFoundPattern object (region that was used during Learn), its contour or neither. If no region was used during learning, setting this to EDrawRegion.EDrawRegion_DrawContour or EDrawRegion.EDrawRegion_Draw will throw an exception. See EFoundPattern.HasRegion to check if a region was used during learning.
bool HasRegion [get]
 Indicates whether there is an ERegion associated with this EFoundPattern, i.e. whether an ERegion was used during the learning of the pattern. See EFoundPattern.DrawRegion to draw the region.
bool HasFeaturePoints [get]
 Indicates whether there are feature points within this EFoundPattern. See EFoundPattern.DrawFeaturePoints to draw the feature points.
eVision.EQuadrangle Quadrangle [get]
 Returns the corners of the bounding box of the found pattern.

Detailed Description

Represents a single instance of the pattern in the search field, as returned by the EasyFind or EasyMatch finding process.

EPatternFinder.Find and EMatcher.Match return a collection of instances of this class. An EFoundPattern object represents one found instance, with all the needed information about it.

License(s): EasyFind or EasyMatch

Constructor & Destructor Documentation

◆ EFoundPattern() [1/2]

eVision.EFoundPattern.EFoundPattern ( )

Constructs a EFoundPattern object.

◆ EFoundPattern() [2/2]

eVision.EFoundPattern.EFoundPattern ( eVision.EFoundPattern other)

Constructs a EFoundPattern object.

Parameters
otherEFoundPattern object to be copied

Member Function Documentation

◆ Draw() [1/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext)

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [2/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
eVision.EFrame frame )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the pattern.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [3/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
eVision.EFrame frame,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the pattern.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [4/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the pattern.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [5/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the pattern.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [6/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
frameFrame associated with the pattern.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [7/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [8/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [9/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [10/30]

void eVision.EFoundPattern.Draw ( eVision.EDrawAdapter graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

◆ Draw() [11/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext)

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [12/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
eVision.ERGBColor color )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [13/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [14/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [15/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [16/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [17/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [18/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [19/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [20/30]

void eVision.EFoundPattern.Draw ( IntPtr graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [21/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext)

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [22/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [23/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [24/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [25/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [26/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [27/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [28/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [29/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [30/30]

void eVision.EFoundPattern.Draw ( System.Drawing.Graphics graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [1/5]

void eVision.EFoundPattern.DrawWithCurrentPen ( IntPtr graphicContext)

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [2/5]

void eVision.EFoundPattern.DrawWithCurrentPen ( IntPtr graphicContext,
float zoomX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [3/5]

void eVision.EFoundPattern.DrawWithCurrentPen ( IntPtr graphicContext,
float zoomX,
float zoomY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [4/5]

void eVision.EFoundPattern.DrawWithCurrentPen ( IntPtr graphicContext,
float zoomX,
float zoomY,
float panX )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [5/5]

void eVision.EFoundPattern.DrawWithCurrentPen ( IntPtr graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the found pattern.

Parameters
graphicContextHandle to the device context of the destination window.
zoomXHorizontal zooming factor.
zoomYVertical zooming factor. If set to 0, the horizontal zooming factor will be used for isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

This method draws different features of the EFoundPattern, according to the value of properties EFoundPattern.DrawFeaturePoints, EFoundPattern.DrawCenter, EFoundPattern.DrawBoundingBox and EFoundPattern.DrawRegion. The zoomX, zoomY, panX and panY parameters can be used to scale and/or translate the drawing operations.

Deprecated
Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ ToFrame() [1/2]

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

Creates an EFrame from the EFoundPattern.

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.EFoundPattern.ToFrame ( bool useAngle,
eVision.EFrameScaling frameScaling,
eVision.EFrame frame )

Creates an EFrame from the EFoundPattern.

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

◆ ToRegion()

eVision.ERegion eVision.EFoundPattern.ToRegion ( )

Creates an ERegion from the EFoundPattern. If an ERegion was used to learn the pattern (see EFoundPattern.HasRegion), returns the learned region transformed to the position of the found pattern. Otherwise, return an ERegion representing all the pixels which are within the bounding box of the found pattern.

Property Documentation

◆ Angle

float eVision.EFoundPattern.Angle
get

Angle of the found instance, in clockwise direction and in the current angle unit.

This returned value is always comprised in the range [- a half turn, + a half turn].

◆ AreaRatio

float eVision.EFoundPattern.AreaRatio
get

When the EFoundPattern was computed from an EMatcher: Ratio between the found pattern area inside the search ROI/Region and its complete area. When the EFoundPattern was computed from an EPatternFinder: returns 1.0.

◆ Center

eVision.EPoint eVision.EFoundPattern.Center
get

Reference point of the instance.

By default, this is its center. If the property EPatternFinder.Pivot has been changed in the EPatternFinder, the point returns the pivot_ in the instance.

◆ DrawBoundingBox

bool eVision.EFoundPattern.DrawBoundingBox
getset

Flag indicating if the EFoundPattern.Draw method must draw the bounding box of the FoundPattern.

The default value is true.

◆ DrawCenter

bool eVision.EFoundPattern.DrawCenter
getset

Flag indicating if the EFoundPattern.Draw method must draw the center of the FoundPattern.

The default value is true.

◆ DrawFeaturePoints

bool eVision.EFoundPattern.DrawFeaturePoints
getset

Flag indicating if the EFoundPattern.Draw method must draw the feature points of the EFoundPattern.EFoundPattern object.

When the EFoundPattern was computed from an EMatcher, there are no feature points to draw and setting this to true will throw an Exception.

When the EFoundPattern was computed from an EPatternFinder in which:

The default value is false.

◆ DrawRegion

eVision.EDrawRegion eVision.EFoundPattern.DrawRegion
getset

Flag indicating if the EFoundPattern.Draw method must draw the region of the EFoundPattern object (region that was used during Learn), its contour or neither. If no region was used during learning, setting this to EDrawRegion.EDrawRegion_DrawContour or EDrawRegion.EDrawRegion_Draw will throw an exception. See EFoundPattern.HasRegion to check if a region was used during learning.

The default value is EDrawRegion.EDrawRegion_NoDraw.

◆ HasFeaturePoints

bool eVision.EFoundPattern.HasFeaturePoints
get

Indicates whether there are feature points within this EFoundPattern. See EFoundPattern.DrawFeaturePoints to draw the feature points.

◆ HasRegion

bool eVision.EFoundPattern.HasRegion
get

Indicates whether there is an ERegion associated with this EFoundPattern, i.e. whether an ERegion was used during the learning of the pattern. See EFoundPattern.DrawRegion to draw the region.

◆ LearntPatternIndex

uint eVision.EFoundPattern.LearntPatternIndex
get

Returns the index of the pattern learnt by EPatternFinder.LearnPatterns or EMatcher.LearnPatterns corresponding to this EFoundPattern.EFoundPattern or 0 if a single pattern was learnt.

◆ Quadrangle

eVision.EQuadrangle eVision.EFoundPattern.Quadrangle
get

Returns the corners of the bounding box of the found pattern.

◆ Scale

float eVision.EFoundPattern.Scale
get

Scaling factor of the found pattern, in units (not percent).

Querying this will throw an Exception if EFoundPattern.ScaleX != EFoundPattern.ScaleY.

◆ ScaleX

float eVision.EFoundPattern.ScaleX
get

Horizontal Scaling factor of the found pattern, in units (not percent).

EPatternFinder does not support anisotropic scaling. In that case, this will return the same result as EFoundPattern.Scale.

◆ ScaleY

float eVision.EFoundPattern.ScaleY
get

Vertical Scaling factor of the found pattern, in units (not percent).

EPatternFinder does not support anisotropic scaling. In that case, this will return the same result as EFoundPattern.Scale.

◆ Score

float eVision.EFoundPattern.Score
get

Matching score of the found pattern, in units (not percent).

The matching score range is [-1.0..1.0].