RejectOnEdge Property

Applies To
Vision Objects: Blob, Contour, Correlation, DefectFinder, Geometric

Description
Determines if an object is rejected if found on the edge of the search window.

Usage

VGet  Sequence.Object.RejectOnEdge, var
VSet  Sequence.Object.RejectOnEdge, 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
Boolean variable that will contain the value of the property
value
Boolean value or expression for the new value of the property.

Values

  • 0 - False: Do not reject the object if found on edge of search window.
  • -1 - True: Reject the object if found on edge of search window.

Default: False

Remarks
When searching for objects that can fall outside the search window, setting RejectOnEdge to “True” will prevent these objects from being found. For example, if you are trying to locate the center of a blob, and it falls partially outside the search window will not report the correct center of mass. Therefore, you should use RejectOnEdge to reject the result.

See Also
Blob Object, Contour Object, Correlation Object, FoundOnEdge Result, Geometric Object