SearchWidth Property

Applies To
Vision Objects: ArcFinder, ArcInspector, BoxFinder, Contour, CornerFinder, Edge, LineFinder, LineInspector

Description
The SearchWidth property specifies the width of the search for edge detection.

Usage

VGet  Sequence.Object.SearchWidth, var
VSet  Sequence.Object.SearchWidth, 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 2 to 99 pixels.

Default: 3

Remarks
Normally the Edge object will work fine with the default 3 pixel search width. However, for some applications you may want to increase the width of the edge search to help find an edge with some imperfections. By increasing the SearchWidth, the Edge object can gather more information to determine where the edge is. During processing, the 2-dimensional search window is transformed to a 1-dimension row of grayscale values. Edge filters are applied to this row of values to determine where the edge is. Using a wider search window helps ignore imperfections in the edge.

The figures below show an edge object with SearchWidth set to 3 on the left and SearchWidth set to 30 on the right. The edge object on the left finds the bump, where as the edge object on the right finds the correct edge because the wider search width will cause the projected search line to favor the true edge.

See Also
Edge Object, Score Result