CogCaliper MaxResults Property Cognex VisionPro
Max number of results to find.

Namespace: Cognex.VisionPro.Caliper
Assembly: Cognex.VisionPro.Caliper (in Cognex.VisionPro.Caliper.dll) Version: 65.1.0.0
Syntax

public int MaxResults { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogCaliper Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The supplied value is less than 0.

Remarks

The maximum number of results to find. You can specify a value of 0 for this property if you only want to compute the projection and filtered images.

Default Value: 1

Examples

Imports Cognex.VisionPro
Imports Cognex.VisionPro.Caliper
Imports Cognex.VisionPro.ImageProcessing

' Working with a CogCaliperTool object
Dim myCaltool As New CogCaliperTool

' Allow the tool to locate and score two results 
myCaltool.RunParams.MaxResults = 2
using Cognex.VisionPro;
using Cognex.VisionPro.Caliper;
using Cognex.VisionPro.ImageProcessing;

// Working with a CogCaliperTool object
CogCaliperTool myCaltool = new CogCaliperTool();

// Allow the tool to locate and score two results 
myCaltool.RunParams.MaxResults = 2;
See Also