SizeToFind Property
Applies To
Vision Objects: ArcInspector, Blob, Contour, DefectFinder, LineInspector
Description
Selects which size of blobs to find.
Usage
VGet Sequence.Object.SizeToFind, var
VSet Sequence.Object.SizeToFind, 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
- 0 - Any
- Vision constant: VISION_SIZETOFIND_ANY
- Find blobs or defects of any size.
- 1 - Largest
- Vision constant: VISION_SIZETOFIND_LARGEST
- Find the largest blobs or defects.
- 2 - Smallest
- Vision constant: VISION_SIZETOFIND_SMALLEST
- Find the smallest blobs or defects.
Default: 1 - Largest
Remarks
Use the SizeToFind property to find the largest or smallest blobs or defects in a search area. When a blob object searches for blobs in an image, it finds several candidates; sometimes many more than the desired number. SizeToFind can filter the results so that you get the largest or smallest blobs.
See Also
ArcInspector Object, Blob Object, Contour Object, DefectFinder Object, LineInspector Object, Sort Property