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

Polygon gauge. More...

Inheritance diagram for eVision.EPolygonGauge:
Collaboration diagram for eVision.EPolygonGauge:

Public Member Functions

None __init__ (self)
 Constructs a eVision.EPolygonGauge.
None __init__ (self, eVision.EPolygonGauge other)
 Copy constructor.
None CopyTo (self, eVision.EPolygonGauge dest)
 Copies all the data of the current eVision.EPolygonGauge object into another eVision.EPolygonGauge object.
int GetNumSamples (self, int edgeIndex)
 Number of sample path of the specified edge of the nominal polygon.
eVision.EPolygon Measure (self, eVision.EROIBW8 sourceImage, eVision.EFrame frame)
 Performs the gauge measurement.
eVision.EPolygon Measure (self, eVision.EROIBW8 sourceImage)
 Performs the gauge measurement.
eVision.EPolygon Measure (self, eVision.EROIBW8 sourceImage, eVision.ERegion region, eVision.EFrame frame)
 Performs the gauge measurement.
eVision.EPolygon Measure (self, eVision.EROIBW8 sourceImage, eVision.ERegion region)
 Performs the gauge measurement.
Public Member Functions inherited from eVision.EBaseGauge
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, float zoomX, float zoomY, float panX, float panY)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, float zoomX, float zoomY, float panX)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, float zoomX, float zoomY)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, float zoomX)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, eVision.EFrame frame, float zoomX, float zoomY)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, eVision.EFrame frame, float zoomX)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EDrawingMode drawingMode, eVision.EFrame frame)
 Draws a graphical representation of a shape, as defined by eVision.EDrawingMode.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX, float zoomY, float panX)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX, float zoomY)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame)
 Checks if there is a handle under the cursor and returns the corresponding edition mode.
None Drag (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, float zoomX, float zoomY, float panX)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, float zoomX, float zoomY)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, float zoomX)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Moves a handle to a new position and updates the position parameters of the shape.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX)
 Moves a handle to a new position and updates the position parameters of the shape.
None Save (self, str path)
 Saves a gauge.The given eVision.ESerializer must have been created for writing.
None Save (self, eVision.ESerializer|None serializer)
 Saves a gauge.The given eVision.ESerializer must have been created for writing.
None Load (self, str path)
 Loads a gauge.The given eVision.ESerializer must have been created for reading.
None Load (self, eVision.ESerializer|None serializer)
 Loads a gauge.The given eVision.ESerializer must have been created for reading.
bool HasProperty (self, str aProperty)
 Returns whether a eVision.EBaseGauge has a property named aProperty.
str GetProperty (self, str aProperty)
 Gets the value of property aProperty.
None SetProperty (self, str aProperty, str aValue)
 Sets the value of property aProperty to aValue for this eVision.EBaseGauge.
None RemoveProperty (self, str aProperty)
 Removes the property name aProperty from the eVision.EBaseGauge.
bool HasValidPolarityProperty (self)
 Returns whether the eVision.EBaseGauge has a valid polarity property.
eVision.ESamplePoint GetSample (self, int index)
 Retrieves sampled points used during the model fitting operation.
bool HasSamples (self)
 Whether the samples are available or not.
int AddSkipRange (self, eVision.EIntegerRange range)
 Adds an item to the set of skip ranges and returns the index of the newly added range.
eVision.EIntegerRange GetSkipRange (self, int index)
 Allows to retrieve the start and end values of the skip range corresponding to the given index, if it is valid (i.e.
None RemoveSkipRange (self, int index)
 After a call to eVision.EBaseGauge.AddSkipRange, removes the skip range with the given index.
None RemoveAllSkipRanges (self)
 Removes all the skip ranges previously created by a call to eVision.EBaseGauge.AddSkipRange.
None MeasureWithoutFitting (self, eVision.EROIBW8 sourceImage, eVision.EFrame frame)
 Triggers the point location without line fitting operation.
None MeasureWithoutFitting (self, eVision.EROIBW8 sourceImage)
 Triggers the point location without line fitting operation.
None MeasureWithoutFitting (self, eVision.EROIBW8 sourceImage, eVision.ERegion region, eVision.EFrame frame)
 Triggers the point location without line fitting operation.
None MeasureWithoutFitting (self, eVision.EROIBW8 sourceImage, eVision.ERegion region)
 Triggers the point location without line fitting operation.
bool IsFound (self)
 Flag indicating whether a measured shape has been found.
eVision.ESamplePath MeasureSamplePath (self, eVision.EROIBW8 sourceImage, int pathIndex, eVision.EFrame frame)
 Measures the specified sample path.
eVision.ESamplePath MeasureSamplePath (self, eVision.EROIBW8 sourceImage, int pathIndex)
 Measures the specified sample path.
eVision.ESamplePath MeasureSamplePath (self, eVision.EROIBW8 sourceImage, int pathIndex, eVision.ERegion region, eVision.EFrame frame)
 Measures the specified sample path.
eVision.ESamplePath MeasureSamplePath (self, eVision.EROIBW8 sourceImage, int pathIndex, eVision.ERegion region)
 Measures the specified sample path.

Properties

 Type = property(_Type__getter, None)
 Shape type.
 Nominal = property(_Nominal__getter, _Nominal__setter)
 Nominal shape of the gauge.
 AvailableEditionModes = property(_AvailableEditionModes__getter, None)
 Returns all possible edition modes of the gauge.
 Tolerance = property(_Tolerance__getter, _Tolerance__setter)
 Half thickness of the model fitting gauge.
 HVConstraint = property(_HVConstraint__getter, _HVConstraint__setter)
 Status of the restriction on the orientation of the point location gauge or model fitting sample paths.
 TransitionType = property(_TransitionType__getter, _TransitionType__setter)
 Transition type.
 TransitionChoice = property(_TransitionChoice__getter, _TransitionChoice__setter)
 Transition choice.
 TransitionIndex = property(_TransitionIndex__getter, _TransitionIndex__setter)
 Index (from 0 on) of the transition to be retained when the transition choice parameter is set to eVision.ETransitionChoice.NthFromBegin or eVision.ETransitionChoice.NthFromEnd.
 Threshold = property(_Threshold__getter, _Threshold__setter)
 Threshold level used to delimit significant peaks in the data profile.
 MinAmplitude = property(_MinAmplitude__getter, _MinAmplitude__setter)
 Offset added to the Threshold when a peak is to be detected.
 MinArea = property(_MinArea__getter, _MinArea__setter)
 Minimum area value.
 Thickness = property(_Thickness__getter, _Thickness__setter)
 Number of parallel segments used to extract the data profile.
 Smoothing = property(_Smoothing__getter, _Smoothing__setter)
 Number of pixels used for the low-pass filtering operation.
 RectangularSamplingArea = property(_RectangularSamplingArea__getter, _RectangularSamplingArea__setter)
 Flag indicating whether the sampling area remains a rectangle when rotated, instead of becoming a parallelogram.
 NumSamples = property(_NumSamples__getter, None)
 Number of sampled points during the model fitting operation.
 Measured = property(_Measured__getter, None)
 Copy of the measured shape.
 MinNumFitSamples = property(_MinNumFitSamples__getter, _MinNumFitSamples__setter)
 Gets the minimum number of samples required for fitting the shape.
 Polygon = property(_Polygon__getter, _Polygon__setter)
 Nominal polygon according to a known eVision.EPolygon object.
 MeasurementMode = property(_MeasurementMode__getter, _MeasurementMode__setter)
 The polygon gauge measurement mode, in eVision.EPolygonMeasurementMode.
 EnableScaling = property(_EnableScaling__getter, _EnableScaling__setter)
 When using the eVision.EPolygonMeasurementMode.Global mode, if eVision.EPolygonGauge.EnableScaling is enabled then the best scale is evaluated.
 MeasuredPolygon = property(_MeasuredPolygon__getter, None)
 Returns the measured polygon (if found) or the nominal polygon otherwise.
 MeasuredScale = property(_MeasuredScale__getter, None)
 Scale of the eVision.EPolygonGauge.MeasuredPolygonTransformation (only available when the eVision.EPolygonGauge.MeasurementMode is eVision.EPolygonMeasurementMode.Global).
 MeasuredOffset = property(_MeasuredOffset__getter, None)
 Offset of the eVision.EPolygonGauge.MeasuredPolygonTransformation (only available when the eVision.EPolygonGauge.MeasurementMode is eVision.EPolygonMeasurementMode.Global).
 MeasuredAngle = property(_MeasuredAngle__getter, None)
 Angle of the eVision.EPolygonGauge.MeasuredPolygonTransformation (only available when the eVision.EPolygonGauge.MeasurementMode is eVision.EPolygonMeasurementMode.Global).
 MeasuredPolygonTransformation = property(_MeasuredPolygonTransformation__getter, None)
 The transformation applied to the nominal polygon to get the measured polygon (only available when the eVision.EPolygonGauge.MeasurementMode is eVision.EPolygonMeasurementMode.Global).
Properties inherited from eVision.EBaseGauge
 Type = property(_Type__getter, None)
 Shape type.
 Name = property(_Name__getter, _Name__setter)
 Name of the eVision.EBaseGauge object.
 Nominal = property(_Nominal__getter, _Nominal__setter)
 Nominal shape of the gauge.
 EditionMode = property(_EditionMode__getter, _EditionMode__setter)
 Graphical edition mode (default: eVision.EBaseGauge.AvailableEditionModes).
 AvailableEditionModes = property(_AvailableEditionModes__getter, None)
 Returns all possible edition modes of the gauge.
 Labeled = property(_Labeled__getter, _Labeled__setter)
 Whether to draw a label describing the gauge (default: no).
 Tolerance = property(_Tolerance__getter, _Tolerance__setter)
 Half thickness of the model fitting gauge.
 HVConstraint = property(_HVConstraint__getter, _HVConstraint__setter)
 Status of the restriction on the orientation of the point location gauge or model fitting sample paths.
 TransitionType = property(_TransitionType__getter, _TransitionType__setter)
 Transition type.
 TransitionChoice = property(_TransitionChoice__getter, _TransitionChoice__setter)
 Transition choice.
 TransitionIndex = property(_TransitionIndex__getter, _TransitionIndex__setter)
 Index (from 0 on) of the transition to be retained when the transition choice parameter is set to eVision.ETransitionChoice.NthFromBegin or eVision.ETransitionChoice.NthFromEnd.
 Threshold = property(_Threshold__getter, _Threshold__setter)
 Threshold level used to delimit significant peaks in the data profile.
 MinAmplitude = property(_MinAmplitude__getter, _MinAmplitude__setter)
 Offset added to the Threshold when a peak is to be detected.
 MinArea = property(_MinArea__getter, _MinArea__setter)
 Minimum area value.
 Thickness = property(_Thickness__getter, _Thickness__setter)
 Number of parallel segments used to extract the data profile.
 Smoothing = property(_Smoothing__getter, _Smoothing__setter)
 Number of pixels used for the low-pass filtering operation.
 RectangularSamplingArea = property(_RectangularSamplingArea__getter, _RectangularSamplingArea__setter)
 Flag indicating whether the sampling area remains a rectangle when rotated, instead of becoming a parallelogram.
 SamplingStep = property(_SamplingStep__getter, _SamplingStep__setter)
 Approximate distance between sampled points during a model fitting operation.
 NumSamples = property(_NumSamples__getter, None)
 Number of sampled points during the model fitting operation.
 FilteringThreshold = property(_FilteringThreshold__getter, _FilteringThreshold__setter)
 Relative filtering threshold, that is the fraction of the average distance between the sampled points and the fitted model above which a point is filtered out.
 NumFilteringPasses = property(_NumFilteringPasses__getter, _NumFilteringPasses__setter)
 Number of filtering passes for a model fitting operation.
 NumValidSamples = property(_NumValidSamples__getter, None)
 Number of valid sample points remaining after a model fitting operation.
 SamplePointIndex = property(_SamplePointIndex__getter, _SamplePointIndex__setter)
 Sampled.
 AverageDistance = property(_AverageDistance__getter, None)
 Average distance between the sampled points and the fitted model.
 MinNumFitSamples = property(_MinNumFitSamples__getter, _MinNumFitSamples__setter)
 Sets/Gets the minimum number of samples required for fitting the shape.
 NumSkipRanges = property(_NumSkipRanges__getter, None)
 Number of skip ranges in the gauge after a call to eVision.EBaseGauge.AddSkipRange.
 Measured = property(_Measured__getter, None)
 Copy of the measured shape.

Additional Inherited Members

Static Public Member Functions inherited from eVision.EBaseGauge
eVision.EBaseGauge|None Make (str path)
 Creates a gauge of the correct type.

Detailed Description

Polygon gauge.

Remarks:

License(s): EasyGauge

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.EPolygonGauge.__init__ ( self)

Constructs a eVision.EPolygonGauge.

◆ __init__() [2/2]

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

Copy constructor.

Parameters
otherOther eVision.EPolygonGauge

Member Function Documentation

◆ CopyTo()

None eVision.EPolygonGauge.CopyTo ( self,
eVision.EPolygonGauge dest )

Copies all the data of the current eVision.EPolygonGauge object into another eVision.EPolygonGauge object.

Parameters
desteVision.EPolygonGauge object in which the current eVision.EPolygonGauge object data have to be copied.

◆ GetNumSamples()

int eVision.EPolygonGauge.GetNumSamples ( self,
int edgeIndex )

Number of sample path of the specified edge of the nominal polygon.

Parameters
edgeIndexEdge index.

◆ Measure() [1/4]

eVision.EPolygon eVision.EPolygonGauge.Measure ( self,
eVision.EROIBW8 sourceImage )

Performs the gauge measurement.

Parameters
sourceImageSource image.

Reimplemented from eVision.EBaseGauge.

◆ Measure() [2/4]

eVision.EPolygon eVision.EPolygonGauge.Measure ( self,
eVision.EROIBW8 sourceImage,
eVision.EFrame frame )

Performs the gauge measurement.

Parameters
sourceImageSource image.
frameFrame of reference

Reimplemented from eVision.EBaseGauge.

◆ Measure() [3/4]

eVision.EPolygon eVision.EPolygonGauge.Measure ( self,
eVision.EROIBW8 sourceImage,
eVision.ERegion region )

Performs the gauge measurement.

Parameters
sourceImageSource image.
regionRegion to use with the source image.

Reimplemented from eVision.EBaseGauge.

◆ Measure() [4/4]

eVision.EPolygon eVision.EPolygonGauge.Measure ( self,
eVision.EROIBW8 sourceImage,
eVision.ERegion region,
eVision.EFrame frame )

Performs the gauge measurement.

Parameters
sourceImageSource image.
regionRegion to use with the source image.
frameFrame of reference

Reimplemented from eVision.EBaseGauge.

Property Documentation

◆ AvailableEditionModes

eVision.EPolygonGauge.AvailableEditionModes = property(_AvailableEditionModes__getter, None)
static

Returns all possible edition modes of the gauge.

◆ EnableScaling

eVision.EPolygonGauge.EnableScaling = property(_EnableScaling__getter, _EnableScaling__setter)
static

When using the eVision.EPolygonMeasurementMode.Global mode, if eVision.EPolygonGauge.EnableScaling is enabled then the best scale is evaluated.

◆ HVConstraint

eVision.EPolygonGauge.HVConstraint = property(_HVConstraint__getter, _HVConstraint__setter)
static

Status of the restriction on the orientation of the point location gauge or model fitting sample paths.

Remarks:

Sample paths are the point location gauges placed along the model to be fitted.

◆ Measured

eVision.EPolygonGauge.Measured = property(_Measured__getter, None)
static

Copy of the measured shape.

◆ MeasuredAngle

eVision.EPolygonGauge.MeasuredAngle = property(_MeasuredAngle__getter, None)
static

◆ MeasuredOffset

eVision.EPolygonGauge.MeasuredOffset = property(_MeasuredOffset__getter, None)
static

◆ MeasuredPolygon

eVision.EPolygonGauge.MeasuredPolygon = property(_MeasuredPolygon__getter, None)
static

Returns the measured polygon (if found) or the nominal polygon otherwise.

Remarks:

Use method eVision.EBaseGauge.IsFound to get the status of the measurement. eVision.EPolygonGauge.MeasuredPolygon returns a successful fitted polygon if eVision.EBaseGauge.IsFound is true, otherwise it returns the original (nominal) polygon.

◆ MeasuredPolygonTransformation

eVision.EPolygonGauge.MeasuredPolygonTransformation = property(_MeasuredPolygonTransformation__getter, None)
static

The transformation applied to the nominal polygon to get the measured polygon (only available when the eVision.EPolygonGauge.MeasurementMode is eVision.EPolygonMeasurementMode.Global).

◆ MeasuredScale

eVision.EPolygonGauge.MeasuredScale = property(_MeasuredScale__getter, None)
static

◆ MeasurementMode

eVision.EPolygonGauge.MeasurementMode = property(_MeasurementMode__getter, _MeasurementMode__setter)
static

The polygon gauge measurement mode, in eVision.EPolygonMeasurementMode.

The default mode is eVision.EPolygonMeasurementMode.Global.

◆ MinAmplitude

eVision.EPolygonGauge.MinAmplitude = property(_MinAmplitude__getter, _MinAmplitude__setter)
static

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

Remarks:

When analyzing a derivative profile, a peak is made up of consecutive pixel values above Threshold. To detect weak [strong] transitions, lower [raise] the Threshold value.

To avoid interference of noise, an additional parameter is provided. The MinAmplitude parameter is an offset added to Threshold when a peak is to be detected.

When the pixel values of the derivative profile do not reach Threshold + MinAmplitude, the peak is not taken into account. Anyway, when a peak is taken into account, all the pixels with values above Threshold are considered (for more accuracy). Setting the MinAmplitude value to 0 merely cancels its effect.

◆ MinArea

eVision.EPolygonGauge.MinArea = property(_MinArea__getter, _MinArea__setter)
static

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.

◆ MinNumFitSamples

eVision.EPolygonGauge.MinNumFitSamples = property(_MinNumFitSamples__getter, _MinNumFitSamples__setter)
static

Gets the minimum number of samples required for fitting the shape.

◆ Nominal

eVision.EPolygonGauge.Nominal = property(_Nominal__getter, _Nominal__setter)
static

Nominal shape of the gauge.

Remarks:

Note that the gauge stores a copy of the shape and returns a copy of the shape. The gauge applies its eVision.EBaseGauge.EditionMode to the shape.

◆ NumSamples

eVision.EPolygonGauge.NumSamples = property(_NumSamples__getter, None)
static

Number of sampled points during the model fitting operation.

Remarks:

Irrelevant in case of a point location operation.

After a model fitting operation, a number of points have been fitted along the model. Among them, some are not reliable because of their Area value. Among the remaining ones, some are filtered out (NumFilteringPasses, FilteringThreshold).

◆ Polygon

eVision.EPolygonGauge.Polygon = property(_Polygon__getter, _Polygon__setter)
static

Nominal polygon according to a known eVision.EPolygon object.

◆ RectangularSamplingArea

eVision.EPolygonGauge.RectangularSamplingArea = property(_RectangularSamplingArea__getter, _RectangularSamplingArea__setter)
static

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

Remarks:

By default, this flag is set to true: the sampling area always remains a rectangle. Setting this property is only useful when the thickness transition parameter is greater than 1. In fact, when thickness transition parameter is equal to 1, rectangle and parallelogram reduce to the same segment.

◆ Smoothing

eVision.EPolygonGauge.Smoothing = property(_Smoothing__getter, _Smoothing__setter)
static

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

eVision.EPolygonGauge.Thickness = property(_Thickness__getter, _Thickness__setter)
static

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

eVision.EPolygonGauge.Threshold = property(_Threshold__getter, _Threshold__setter)
static

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

Remarks:

When analyzing a derivative profile, a peak is made up of consecutive pixel values above Threshold. To detect weak [strong] transitions, lower [raise] the Threshold value.

To avoid interference of noise, an additional parameter is provided. The MinAmplitude parameter is an offset added to Threshold when a peak is to be detected.

When the pixel values of the derivative profile do not reach Threshold + MinAmplitude, the peak is not taken into account. Anyway, when a peak is taken into account, all the pixels with values above Threshold are considered (for more accuracy). Setting the MinAmplitude value to 0 merely cancels its effect.

◆ Tolerance

eVision.EPolygonGauge.Tolerance = property(_Tolerance__getter, _Tolerance__setter)
static

Half thickness of the model fitting gauge.

Remarks:

By default, the tolerance is 20 (2x10), which means 20 pixels when the field of view is not calibrated, and 20 physical units in case of a calibrated field of view.

The tolerance isn't taken into consideration for the point gauge.

◆ TransitionChoice

eVision.EPolygonGauge.TransitionChoice = property(_TransitionChoice__getter, _TransitionChoice__setter)
static

Transition choice.

Remarks:

Several peaks may be detected along a point location gauge. This parameter helps to select the desired transition.

In case of eVision.ETransitionChoice.NthFromBegin or eVision.ETransitionChoice.NthFromEnd transition choice, set eVision.EBaseGauge.TransitionIndex to specify the desired transition.

By default, the selected transition corresponds to the one with the largest amplitude (eVision.ETransitionChoice.LargestAmplitude).

◆ TransitionIndex

eVision.EPolygonGauge.TransitionIndex = property(_TransitionIndex__getter, _TransitionIndex__setter)
static

Index (from 0 on) of the transition to be retained when the transition choice parameter is set to eVision.ETransitionChoice.NthFromBegin or eVision.ETransitionChoice.NthFromEnd.

Remarks:

Several peaks may be detected along a point location gauge. This parameter helps to select the desired transition.

By default, the first transition is retained (the index value is 0).

◆ TransitionType

eVision.EPolygonGauge.TransitionType = property(_TransitionType__getter, _TransitionType__setter)
static

Transition type.

Remarks:

The type of transition tells whether it crosses increasing or decreasing gray-level values. This helps discriminate between nearby edges of an object.

By default, the searched transition type is indifferently a black to white or a white to black transition (eVision.ETransitionType.BwOrWb).

◆ Type

eVision.EPolygonGauge.Type = property(_Type__getter, None)
static

Shape type.