eVision Python API
Loading...
Searching...
No Matches
eVision.ESamplePath Class Reference

The class represents a sample path (eVision.ELine on which we sample the pixel values to find the strong edge-crossings). More...

Public Member Functions

None __init__ (self, eVision.ELine line)
 Constructs a eVision.ESamplePath.
None __init__ (self, eVision.EPoint center, float pathLength, float pathAngle)
 Constructs a eVision.ESamplePath.
None __init__ (self, eVision.EPoint center, float pathLength)
 Constructs a eVision.ESamplePath.
None __init__ (self, eVision.EPoint center)
 Constructs a eVision.ESamplePath.
None __init__ (self)
 Constructs a eVision.ESamplePath.
None __init__ (self, eVision.ESamplePath other)
 Constructs a eVision.ESamplePath.
None CopyParametersTo (self, eVision.ESamplePath other)
 Copy the parameter to the other object.
bool IsEqual (self, eVision.ESamplePath other)
 Compares this object with the other object.
eVision.EPoint GetMeasuredPoint (self, int index)
 Coordinates of a sample point, measured along this sample path.
eVision.EPoint GetMeasuredPoint (self)
 Coordinates of a sample point, measured along this sample path.
eVision.EPeak GetMeasuredPeak (self, int index)
 Returns information pertaining to the default derivative peak, along one of the sample paths of the gauge.
eVision.EPeak GetMeasuredPeak (self)
 Returns information pertaining to the default derivative peak, along one of the sample paths of the gauge.
None Plot (self, eVision.EDrawAdapter|None graphicContext, eVision.EPlotItem plotItems, eVision.EPlotDecorationOptions opts, float width, float height, float originX, float originY)
 Draws the profile of the sample paths of the gauge, as defined by eVision.EPlotItem.
None Plot (self, eVision.EDrawAdapter|None graphicContext, eVision.EPlotItem plotItems, eVision.EPlotDecorationOptions opts, float width, float height, float originX)
 Draws the profile of the sample paths of the gauge, as defined by eVision.EPlotItem.
None Plot (self, eVision.EDrawAdapter|None graphicContext, eVision.EPlotItem plotItems, eVision.EPlotDecorationOptions opts, float width, float height)
 Draws the profile of the sample paths of the gauge, as defined by eVision.EPlotItem.
None Measure (self, eVision.EROIBW8 pSrc, eVision.EFrame frame)
 Measure the peaks in the image, potentially applying normalization.
None Measure (self, eVision.EROIBW8 pSrc)
 Measure the peaks in the image, potentially applying normalization.
None Measure (self, eVision.EROIBW8 pSrc, eVision.ERegion region, eVision.EFrame frame)
 Measure the peaks in the image, potentially applying normalization.
None Measure (self, eVision.EROIBW8 pSrc, eVision.ERegion region)
 Measure the peaks in the image, potentially applying normalization.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EPoint org, eVision.EPoint end, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EPoint org, eVision.EPoint end, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EPoint org, eVision.EPoint end, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EPoint org, eVision.EPoint end, eVision.EFrame frame, float zoomX)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawTransition (self, eVision.EDrawAdapter|None graphicContext, eVision.EPoint org, eVision.EPoint end, eVision.EFrame frame)
 Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.
None DrawPath (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the sample path represented by the object.
None DrawPath (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the sample path represented by the object.
None DrawPath (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the sample path represented by the object.
None DrawPath (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the sample path represented by the object.
None DrawPath (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draws the sample path represented by the object.
eVision.ELine SamplePath (self)
 Line along which the edge-crossing points are measured.
 SamplePath (self, eVision.ELine value)
 Line along which the edge-crossing points are measured.
eVision.EPoint Center (self)
 Center of the sample path.
 Center (self, eVision.EPoint value)
 Center of the sample path.
float Length (self)
 Length of the path along which measure.
 Length (self, float value)
 Length of the path along which measure.
float Angle (self)
 Angle of the path along which we measure.
 Angle (self, float value)
 Angle of the path along which we measure.
float Tolerance (self)
 Tolerance (half-length of the path).
 Tolerance (self, float value)
 Tolerance (half-length of the path).
float ToleranceAngle (self)
 Alias for eVision.ESamplePath.Angle.
 ToleranceAngle (self, float value)
 Alias for eVision.ESamplePath.Angle.
bool HVConstraint (self)
 Status of the restriction on the orientation of the sample path.
 HVConstraint (self, bool value)
 Status of the restriction on the orientation of the sample path.
int Thickness (self)
 Number of parallel segments used to extract the data profile.
 Thickness (self, int value)
 Number of parallel segments used to extract the data profile.
int Smoothing (self)
 Number of pixels used for the low-pass filtering operation.
 Smoothing (self, int value)
 Number of pixels used for the low-pass filtering operation.
eVision.ETransitionType TransitionType (self)
 Transition type to measure.
 TransitionType (self, eVision.ETransitionType value)
 Transition type to measure.
eVision.ETransitionChoice TransitionChoice (self)
 Transition choice used to select the sample point corresponding to eVision.ESamplePath.TransitionIndex.
 TransitionChoice (self, eVision.ETransitionChoice value)
 Transition choice used to select the sample point corresponding to eVision.ESamplePath.TransitionIndex.
int TransitionIndex (self)
 The sample point to select as default.
 TransitionIndex (self, int value)
 The sample point to select as default.
int Threshold (self)
 Threshold level used to delimit significant peaks in the data profile.
 Threshold (self, int value)
 Threshold level used to delimit significant peaks in the data profile.
int MinAmplitude (self)
 Offset added to the Threshold when a peak is to be detected.
 MinAmplitude (self, int value)
 Offset added to the Threshold when a peak is to be detected.
int MinArea (self)
 Minimum area value.
 MinArea (self, int value)
 Minimum area value.
bool TransitionRectangularSamplingArea (self)
 Flag indicating whether the sampling area remains a rectangle when rotated, instead of becoming a parallelogram.
 TransitionRectangularSamplingArea (self, bool value)
 Flag indicating whether the sampling area remains a rectangle when rotated, instead of becoming a parallelogram.
int NumMeasuredPoints (self)
 Number of edge-crossing points along the sample path.
list[eVision._eVision.EPoint] MeasuredPoints (self)
 Coordinates of all edge-crossing points, measured along the sample path of a gauge.
list[eVision._eVision.EPeak] MeasuredPeaks (self)
 Returns information pertaining to the derivative peaks associated with all the edge-crossing point, such as their area, amplitude, start, length and center.
int DefaultPointIndex (self)
 The default edge-crossing point measured, chosen according to the transition choice parameter.
bool Valid (self)
 Flag indicating if at least one valid transition has been found.

Static Public Member Functions

eVision.EPen GetDrawingPen (eVision.EPlotItem plotItem)
 Gets a standard drawing pen for the specified plot item.

Detailed Description

The class represents a sample path (eVision.ELine on which we sample the pixel values to find the strong edge-crossings).

The sample path can be directly specified as a eVision.ELine object though eVision.ESamplePath.SamplePath or through eVision.ESamplePath.Center, eVision.ESamplePath.Length and eVision.ESamplePath.Angle.

The measurement of the sample path is done with eVision.ESamplePath.Measure. It will find eVision.ESamplePath.NumMeasuredPoints whose positions can be accessed with eVision.ESamplePath.GetMeasuredPoint or eVision.ESamplePath.MeasuredPoints. The characteristics of the edge-crossing can be accessed with eVision.ESamplePath.GetMeasuredPeak or eVision.ESamplePath.MeasuredPeaks.

The profile and derivatives of the sample path can be plotted with eVision.ESamplePath.Plot.

Remarks:

License(s): EasyGauge

Constructor & Destructor Documentation

◆ __init__() [1/6]

None eVision.ESamplePath.__init__ ( self,
eVision.ELine line )

Constructs a eVision.ESamplePath.

Parameters
lineLine segment representing the sample path

◆ __init__() [2/6]

None eVision.ESamplePath.__init__ ( self,
eVision.EPoint center,
float pathLength,
float pathAngle )

Constructs a eVision.ESamplePath.

Parameters
centerCenter of the sample path
pathLengthLength of the sample path
pathAngleAngle of the sample path

◆ __init__() [3/6]

None eVision.ESamplePath.__init__ ( self,
eVision.EPoint center,
float pathLength )

Constructs a eVision.ESamplePath.

Parameters
centerCenter of the sample path
pathLengthLength of the sample path

◆ __init__() [4/6]

None eVision.ESamplePath.__init__ ( self,
eVision.EPoint center )

Constructs a eVision.ESamplePath.

Parameters
centerCenter of the sample path

◆ __init__() [5/6]

None eVision.ESamplePath.__init__ ( self)

Constructs a eVision.ESamplePath.

◆ __init__() [6/6]

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

Constructs a eVision.ESamplePath.

Parameters
otherOther eVision.ESamplePath object to copy from.

Member Function Documentation

◆ Angle() [1/2]

float eVision.ESamplePath.Angle ( self)

Angle of the path along which we measure.

◆ Angle() [2/2]

eVision.ESamplePath.Angle ( self,
float value )

Angle of the path along which we measure.

◆ Center() [1/2]

eVision.EPoint eVision.ESamplePath.Center ( self)

Center of the sample path.

◆ Center() [2/2]

eVision.ESamplePath.Center ( self,
eVision.EPoint value )

Center of the sample path.

◆ CopyParametersTo()

None eVision.ESamplePath.CopyParametersTo ( self,
eVision.ESamplePath other )

Copy the parameter to the other object.

Parameters
otherObject to copy the parameters to.

◆ DefaultPointIndex()

int eVision.ESamplePath.DefaultPointIndex ( self)

The default edge-crossing point measured, chosen according to the transition choice parameter.

◆ DrawPath() [1/5]

None eVision.ESamplePath.DrawPath ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame )

Draws the sample path represented by the object.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the gauge is located.

◆ DrawPath() [2/5]

None eVision.ESamplePath.DrawPath ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the sample path represented by the object.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the gauge is located.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ DrawPath() [3/5]

None eVision.ESamplePath.DrawPath ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the sample path represented by the object.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the gauge is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ DrawPath() [4/5]

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

Draws the sample path represented by the object.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the gauge is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ DrawPath() [5/5]

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

Draws the sample path represented by the object.

Parameters
drawAdapterHandle of the device context on which to draw.
frameFrame of reference in which the gauge is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ DrawTransition() [1/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
frameFrame of reference in which the path is located.

◆ DrawTransition() [2/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ DrawTransition() [3/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ DrawTransition() [4/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ DrawTransition() [5/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ DrawTransition() [6/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPoint org,
eVision.EPoint end,
eVision.EFrame frame )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
orgOrigin point used to specify the drawing position.
endEnd point used to specify the drawing position.
frameFrame of reference in which the path is located.

◆ DrawTransition() [7/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPoint org,
eVision.EPoint end,
eVision.EFrame frame,
float zoomX )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
orgOrigin point used to specify the drawing position.
endEnd point used to specify the drawing position.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ DrawTransition() [8/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPoint org,
eVision.EPoint end,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
orgOrigin point used to specify the drawing position.
endEnd point used to specify the drawing position.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ DrawTransition() [9/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPoint org,
eVision.EPoint end,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
orgOrigin point used to specify the drawing position.
endEnd point used to specify the drawing position.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

◆ DrawTransition() [10/10]

None eVision.ESamplePath.DrawTransition ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPoint org,
eVision.EPoint end,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the transition symbol between the points org and end if specified or between the origin and end of the eVision.ESamplePath.SamplePath.

Parameters
graphicContextHandle of the device context on which to draw.
orgOrigin point used to specify the drawing position.
endEnd point used to specify the drawing position.
frameFrame of reference in which the path is located.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

◆ GetDrawingPen()

eVision.EPen eVision.ESamplePath.GetDrawingPen ( eVision.EPlotItem plotItem)
static

Gets a standard drawing pen for the specified plot item.

Parameters
plotItemPlot item for which to get a standard pen.

◆ GetMeasuredPeak() [1/2]

eVision.EPeak eVision.ESamplePath.GetMeasuredPeak ( self)

Returns information pertaining to the default derivative peak, along one of the sample paths of the gauge.

Remarks:

If index is left unchanged from its default value (i.e. ~0 = 0xFFFFFFFF), the default edge-crossing point is inspected. This default point is chosen according to the transition choice parameter that is managed by the eVision.ESamplePath.TransitionChoice property.

If you want to query more than 10 points, using eVision.ESamplePath.MeasuredPeaks should be faster.

◆ GetMeasuredPeak() [2/2]

eVision.EPeak eVision.ESamplePath.GetMeasuredPeak ( self,
int index )

Returns information pertaining to the default derivative peak, along one of the sample paths of the gauge.

Remarks:

If index is left unchanged from its default value (i.e. ~0 = 0xFFFFFFFF), the default edge-crossing point is inspected. This default point is chosen according to the transition choice parameter that is managed by the eVision.ESamplePath.TransitionChoice property.

If you want to query more than 10 points, using eVision.ESamplePath.MeasuredPeaks should be faster.

Parameters
indexIndex of the edge-crossing point along the probed line segment, between 0 and eVision.ESamplePath.NumMeasuredPoints (excluded).

◆ GetMeasuredPoint() [1/2]

eVision.EPoint eVision.ESamplePath.GetMeasuredPoint ( self)

Coordinates of a sample point, measured along this sample path.

Remarks:

These coordinates pertain to the World space.

If index is left unchanged from its default value (i.e. ~0 = 0xFFFFFFFF), the default edge-crossing point is inspected. This default point is chosen according to the transition choice parameter that is managed by the eVision.ESamplePath.TransitionChoice property.

If you want to query more than 10 points, using eVision.ESamplePath.MeasuredPoints should be faster.

◆ GetMeasuredPoint() [2/2]

eVision.EPoint eVision.ESamplePath.GetMeasuredPoint ( self,
int index )

Coordinates of a sample point, measured along this sample path.

Remarks:

These coordinates pertain to the World space.

If index is left unchanged from its default value (i.e. ~0 = 0xFFFFFFFF), the default edge-crossing point is inspected. This default point is chosen according to the transition choice parameter that is managed by the eVision.ESamplePath.TransitionChoice property.

If you want to query more than 10 points, using eVision.ESamplePath.MeasuredPoints should be faster.

Parameters
indexIndex of the edge-crossing point along the probed line segment, between 0 and eVision.ESamplePath.NumMeasuredPoints (excluded).

◆ HVConstraint() [1/2]

bool eVision.ESamplePath.HVConstraint ( self)

Status of the restriction on the orientation of the sample path.

◆ HVConstraint() [2/2]

eVision.ESamplePath.HVConstraint ( self,
bool value )

Status of the restriction on the orientation of the sample path.

◆ IsEqual()

bool eVision.ESamplePath.IsEqual ( self,
eVision.ESamplePath other )

Compares this object with the other object.

Note that the class only compares its parameters and not the computations dependent variables.

Parameters
otherOther eVision.ESamplePath object.

◆ Length() [1/2]

float eVision.ESamplePath.Length ( self)

Length of the path along which measure.

◆ Length() [2/2]

eVision.ESamplePath.Length ( self,
float value )

Length of the path along which measure.

◆ Measure() [1/4]

None eVision.ESamplePath.Measure ( self,
eVision.EROIBW8 pSrc )

Measure the peaks in the image, potentially applying normalization.

Parameters
pSrcImage.

◆ Measure() [2/4]

None eVision.ESamplePath.Measure ( self,
eVision.EROIBW8 pSrc,
eVision.EFrame frame )

Measure the peaks in the image, potentially applying normalization.

Parameters
pSrcImage.
frameFrame of reference in which the path is located.

◆ Measure() [3/4]

None eVision.ESamplePath.Measure ( self,
eVision.EROIBW8 pSrc,
eVision.ERegion region )

Measure the peaks in the image, potentially applying normalization.

Parameters
pSrcImage.
regioneVision.ERegion associated with the image.

◆ Measure() [4/4]

None eVision.ESamplePath.Measure ( self,
eVision.EROIBW8 pSrc,
eVision.ERegion region,
eVision.EFrame frame )

Measure the peaks in the image, potentially applying normalization.

Parameters
pSrcImage.
regioneVision.ERegion associated with the image.
frameFrame of reference in which the path is located.

◆ MeasuredPeaks()

list[eVision._eVision.EPeak] eVision.ESamplePath.MeasuredPeaks ( self)

Returns information pertaining to the derivative peaks associated with all the edge-crossing point, such as their area, amplitude, start, length and center.

Remarks:

If you want to query less than 10 peaks, using eVision.ESamplePath.GetMeasuredPeak should be faster.

◆ MeasuredPoints()

list[eVision._eVision.EPoint] eVision.ESamplePath.MeasuredPoints ( self)

Coordinates of all edge-crossing points, measured along the sample path of a gauge.

Remarks:

These coordinates pertain to the World space.

If you want to query less than 10 points, using eVision.ESamplePath.GetMeasuredPoint should be faster.

◆ MinAmplitude() [1/2]

int eVision.ESamplePath.MinAmplitude ( self)

Offset added to the Threshold when a peak is to be detected.

◆ MinAmplitude() [2/2]

eVision.ESamplePath.MinAmplitude ( self,
int value )

Offset added to the Threshold when a peak is to be detected.

◆ MinArea() [1/2]

int eVision.ESamplePath.MinArea ( self)

Minimum area value.

Remarks:

A transition is detected if its derivative peak reaches Threshold + MinAmplitude value, and then declared valid if the area between the peak curve and the horizontal at level Threshold reaches the MinArea value.

◆ MinArea() [2/2]

eVision.ESamplePath.MinArea ( self,
int value )

Minimum area value.

Remarks:

A transition is detected if its derivative peak reaches Threshold + MinAmplitude value, and then declared valid if the area between the peak curve and the horizontal at level Threshold reaches the MinArea value.

◆ NumMeasuredPoints()

int eVision.ESamplePath.NumMeasuredPoints ( self)

Number of edge-crossing points along the sample path.

◆ Plot() [1/3]

None eVision.ESamplePath.Plot ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPlotItem plotItems,
eVision.EPlotDecorationOptions opts,
float width,
float height )

Draws the profile of the sample paths of the gauge, as defined by eVision.EPlotItem.

Remarks:

The data will be plotted with the current pen of the eVision.EDrawAdapter. If there is no pen set, then the following color will be used:

Parameters
graphicContextHandle of the device context on which to draw.
plotItemsBoolean combination of eVision.EPlotItem members, that indicates which items must be displayed.
optsOptions to control the drawing of the plot decorations (axes, ticks, etc.).
widthWidth of the plot.
heightHeight of the plot.

◆ Plot() [2/3]

None eVision.ESamplePath.Plot ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPlotItem plotItems,
eVision.EPlotDecorationOptions opts,
float width,
float height,
float originX )

Draws the profile of the sample paths of the gauge, as defined by eVision.EPlotItem.

Remarks:

The data will be plotted with the current pen of the eVision.EDrawAdapter. If there is no pen set, then the following color will be used:

Parameters
graphicContextHandle of the device context on which to draw.
plotItemsBoolean combination of eVision.EPlotItem members, that indicates which items must be displayed.
optsOptions to control the drawing of the plot decorations (axes, ticks, etc.).
widthWidth of the plot.
heightHeight of the plot.
originXOrigin point coordinates of the plot along the X axis.

◆ Plot() [3/3]

None eVision.ESamplePath.Plot ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EPlotItem plotItems,
eVision.EPlotDecorationOptions opts,
float width,
float height,
float originX,
float originY )

Draws the profile of the sample paths of the gauge, as defined by eVision.EPlotItem.

Remarks:

The data will be plotted with the current pen of the eVision.EDrawAdapter. If there is no pen set, then the following color will be used:

Parameters
graphicContextHandle of the device context on which to draw.
plotItemsBoolean combination of eVision.EPlotItem members, that indicates which items must be displayed.
optsOptions to control the drawing of the plot decorations (axes, ticks, etc.).
widthWidth of the plot.
heightHeight of the plot.
originXOrigin point coordinates of the plot along the X axis.
originYOrigin point coordinates of the plot along the Y axis.

◆ SamplePath() [1/2]

eVision.ELine eVision.ESamplePath.SamplePath ( self)

Line along which the edge-crossing points are measured.

◆ SamplePath() [2/2]

eVision.ESamplePath.SamplePath ( self,
eVision.ELine value )

Line along which the edge-crossing points are measured.

◆ Smoothing() [1/2]

int eVision.ESamplePath.Smoothing ( self)

Number of pixels used for the low-pass filtering operation.

Remarks:

To reduce the effect of noise, the profile data can be low-pass filtered along the point location gauge direction.

◆ Smoothing() [2/2]

eVision.ESamplePath.Smoothing ( self,
int value )

Number of pixels used for the low-pass filtering operation.

Remarks:

To reduce the effect of noise, the profile data can be low-pass filtered along the point location gauge direction.

◆ Thickness() [1/2]

int eVision.ESamplePath.Thickness ( self)

Number of parallel segments used to extract the data profile.

Remarks:

To reduce the effect of noise and/or strengthen a transition, several parallel profiles can be accumulated.

◆ Thickness() [2/2]

eVision.ESamplePath.Thickness ( self,
int value )

Number of parallel segments used to extract the data profile.

Remarks:

To reduce the effect of noise and/or strengthen a transition, several parallel profiles can be accumulated.

◆ Threshold() [1/2]

int eVision.ESamplePath.Threshold ( self)

Threshold level used to delimit significant peaks in the data profile.

◆ Threshold() [2/2]

eVision.ESamplePath.Threshold ( self,
int value )

Threshold level used to delimit significant peaks in the data profile.

◆ Tolerance() [1/2]

float eVision.ESamplePath.Tolerance ( self)

Tolerance (half-length of the path).

◆ Tolerance() [2/2]

eVision.ESamplePath.Tolerance ( self,
float value )

Tolerance (half-length of the path).

◆ ToleranceAngle() [1/2]

float eVision.ESamplePath.ToleranceAngle ( self)

◆ ToleranceAngle() [2/2]

eVision.ESamplePath.ToleranceAngle ( self,
float value )

◆ TransitionChoice() [1/2]

eVision.ETransitionChoice eVision.ESamplePath.TransitionChoice ( self)

Transition choice used to select the sample point corresponding to eVision.ESamplePath.TransitionIndex.

◆ TransitionChoice() [2/2]

eVision.ESamplePath.TransitionChoice ( self,
eVision.ETransitionChoice value )

Transition choice used to select the sample point corresponding to eVision.ESamplePath.TransitionIndex.

◆ TransitionIndex() [1/2]

int eVision.ESamplePath.TransitionIndex ( self)

The sample point to select as default.

◆ TransitionIndex() [2/2]

eVision.ESamplePath.TransitionIndex ( self,
int value )

The sample point to select as default.

◆ TransitionRectangularSamplingArea() [1/2]

bool eVision.ESamplePath.TransitionRectangularSamplingArea ( self)

Flag indicating whether the sampling area remains a rectangle when rotated, instead of becoming a parallelogram.

◆ TransitionRectangularSamplingArea() [2/2]

eVision.ESamplePath.TransitionRectangularSamplingArea ( self,
bool value )

Flag indicating whether the sampling area remains a rectangle when rotated, instead of becoming a parallelogram.

◆ TransitionType() [1/2]

eVision.ETransitionType eVision.ESamplePath.TransitionType ( self)

Transition type to measure.

◆ TransitionType() [2/2]

eVision.ESamplePath.TransitionType ( self,
eVision.ETransitionType value )

Transition type to measure.

◆ Valid()

bool eVision.ESamplePath.Valid ( self)

Flag indicating if at least one valid transition has been found.