CogBeadInspectResult GetCaliperBeadCoverage Method Cognex VisionPro 9.8
Returns the coverage ratio measured by the caliper at the given index.

Namespace: Cognex.VisionPro.EdgeInspect
Assembly: Cognex.VisionPro.EdgeInspect (in Cognex.VisionPro.EdgeInspect.dll) Version: 75.1.0.0
Syntax

public double GetCaliperBeadCoverage(
	int index
)

Parameters

index
Type: System Int32
The index of the caliper along the bead path.

Return Value

Type: Double
The coverage ratio measured by the indexed caliper.
Exceptions

ExceptionCondition
IndexOutOfRangeException The given index is less than zero. Or it is equal to, or greater than, NumCalipers
Remarks

The bead coverage is a ratio of the number of bead pixels found at runtime to the average number of bead pixels found at train time. A "bead pixel" is any pixel between the two bead edges that has the same polarity (dark or light) as the bead itself. Often, all of the pixels between the two bead edges are bead pixels, but there can sometimes be holes in the bead.

The average number of bead pixels is computed at train time for each caliper. This value is computed by averaging the number of bead pixels from neighboring calipers. The number of calipers to average is specified by the SmoothingFactor train property.

If the user disables both CoverageMinEnabled and CoverageMaxEnabled, the bead coverage will not be measured at run-time and GetCaliperBeadCoverage(Int32), CoverageMin, CoverageMax, and CoverageAvg will all be reported as zero.

Even if an edge of the bead is missing, or missing and then filled, GetCaliperBeadCoverage(Int32) will be calculated and reported conventionally.

See Also