ContrastTarget Property
Applies To
Vision Objects: ArcFinder, ArcInspector, BoxFinder, Contour, CornerFinder, Edge, LineFinder, LineInspector
Description
Sets the desired contrast for the edge search.
Usage
VGet Sequence.Object.ContrastTarget, var
VSet Sequence.Object.ContrastTarget, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
Integer number from 0-255
Default: 0 (any contrast)
Remarks
ContrastTarget is the expected difference in grayscale values between an edge and its background. Use ContrastTarget to find weaker edges or edges at an angle. First, find the edge you want to search for and record the Contrast result value. You may have to temoparily change the Edge object position to find it. Next, set the ContrastTarget property to this value. Then set the ScoreWeightContrast to a higher value then ScoreWeightStrength. This tells the Edge object to look for an edge with the desired contrast and base the score on it.
See Also
Contrast Result, ContrastVariation Property, Edge Object, LineFinder Object, ArcFinder Object, ArcInspector Object, LineInspector Object, BoxFinder Object, Contour Object, CornerFinder Object