Scoring functions used when edge mode is cogCaliperEdgeModePair.
Namespace: Cognex.VisionPro.CaliperAssembly: Cognex.VisionPro.Caliper (in Cognex.VisionPro.Caliper.dll) Version: 65.1.0.0
Syntax
Property Value
Type: CogCaliperScorersEvents
| Event Type | Reason |
|---|---|
| CogCaliper Changed | Fires when the value of this property changes. The following state flag may be affected: |
Remarks
An CogCaliperScorers collection containing all of the scoring functions used when EdgeMode is Pair.
Default Value: A collection containing a single CogCaliperScorerSizeDiffNorm.
Examples
Imports Cognex.VisionPro Imports Cognex.VisionPro.Caliper Imports Cognex.VisionPro.ImageProcessing ' Working with a CogCaliperTool object Dim myCaltool As New CogCaliperTool ' Create and initialize a two-edge scorer object Dim myScorer As New CogCaliperScorerSizeDiffNormAsym myScorer.SetXYParameters(-40.0#, -30.0#, -20.0#, 1.0#, 0.2, 40.0#, 30.0#, 20.0#, 1.0#, 0.2) ' Set it to be the only scorer for this caliper myCaltool.RunParams.TwoEdgeScorers.Clear() myCaltool.RunParams.TwoEdgeScorers.Add(myScorer)
using Cognex.VisionPro; using Cognex.VisionPro.Caliper; using Cognex.VisionPro.ImageProcessing; // Working with a CogCaliperTool object CogCaliperTool myCaltool = new CogCaliperTool(); // Create and initialize a two-edge scorer object CogCaliperScorerSizeDiffNormAsym myScorer = new CogCaliperScorerSizeDiffNormAsym(); myScorer.SetXYParameters(-40.0, -30.0, -20.0, 1.0, 0.2, 40.0, 30.0, 20.0, 1.0, 0.2); // Set it to be the only scorer for this caliper myCaltool.RunParams.TwoEdgeScorers.Clear(); myCaltool.RunParams.TwoEdgeScorers.Add(myScorer);
See Also