CogOCVMaxSearchParams PropertiesCognex VisionPro

The CogOCVMaxSearchParams type exposes the following members.

Properties

  NameDescription
Public propertyAcceptThreshold
This threshold is used to locate character shapes in the runtime image.
Public propertyChangedEventSuspended
If nonzero, indicates that the raising of the Changed event has been suspended. This value is incremented when SuspendChangedEvent is called and decremented when ResumeAndRaiseChangedEvent is called.
(Inherited from CogSerializableChangedEventBase.)
Public propertyContrastThreshold
The ContrastThreshold applies to individual characters, and in theory if the threshold is higher than the grey level contrast of a character in the run-time image, the character will not be found. When CogOCVMaxPattern.CharacterRegistration is set to Standard, the measure of contrast is exactly that used by CogPMAlignPattern. When CogOCVMaxPattern.CharacterRegistration is set to Correlation, the measure of contrast is an approximation of that used by CogPMAlignPattern: it is approximately the average edge contrast of the character.
Public propertyDeformationRate
The maximum deformation rate to be accommodated in flexible alignment of characters. Note that larger values may increase running time, and will make it easier for the tool to become confused between characters with similar appearance. For example, a U could be flexed into a V, or a 5 into an S, when allowing a sufficiently high deformation rate. Set this to the smallest value that works for your application's particular deformation. A value of 0 still allows some deformation.
Public propertyDOFEnable
The degrees of freedom (DOFs) to be searched. There are five degrees of freedom: Rotation, (uniform) Scale, ScaleX, ScaleY, and Shear. Any combination of these (including None) may be searched. If a particular DOF is enabled, the search will be performed between that DOF's LowerLimit and UpperLimit values, otherwise the search will be performed with that DOF's Nominal value.
Public propertyHasChanged (Inherited from CogSerializableChangedEventBase.)
Public propertyRefinement
The amount of refinement done on the transform that represents the deformation for a particular character. If None is selected, there may be small amounts of error in the deformation. If Coarse is selected, the transform will be refined to the limit of accuracy of the coarse grain limit used. If Stretch is selected, the transform will also be refined to resolve high-level inaccuracies (extreme warping of a character) that can occur in some applications. If Fine is selected, the transform will additionally be refined to the limit of accuracy of the fine grain limit used, which is probably more than is necessary for OCV in most cases, unless the character size in the image is very small. Less refinement means the tool runs faster.
Public propertyStateFlags
Returns the complete set of state flags supported on this object. The flags may be indexed by name as shown in the following C# code snippet: if (changedObject.StateFlags["Color"] & eventArgs.StateFlags) { ... }
(Inherited from CogSerializableChangedEventBase.)
Public propertyUncertaintyX
This is the uncertainty of the starting pose in the X dimension, in selected space coordinates. This value is used by both CogOCVMaxRunParams::KeySearchParams and CogOCVMaxRunParams::StartPoseSearchParams. This value is ignored in CogOCVMaxRunParams::ImageSearchParams.
Public propertyUncertaintyY
This is the uncertainty of the starting pose in the Y dimension, in selected space coordinates. This value is used by both CogOCVMaxRunParams::KeySearchParams and CogOCVMaxRunParams::StartPoseSearchParams. This value is ignored in CogOCVMaxRunParams::ImageSearchParams.
Public propertyXYOverlap
This is the amount of XY overlap above which two results are considered to be the same.
Top
See Also