Polarity Property
Syntax
CWIMAQEdgeReportItem.Polarity
Data Type
You can use the following constants with this data type:
- cwimaqEdgePolarityDarkToDark—Dark to dark. The leading edge has dark-to-light polarity, and the trailing edge has dark-to-light polarity.
- cwimaqEdgePolarityDarkToLight—Dark to light. The leading edge has a dark-to-light polarity, and the trailing edge has a light-to-dark polarity.
- cwimaqEdgePolarityLightToDark—Light to dark. The leading edge has a light-to-dark polarity, and the trailing edge has a dark-to-light polarity.
- cwimaqEdgePolarityLightToLight—Light to light. The leading edge has a light-to-dark polarity, and the trailing edge has a light-to-dark polarity.
- cwimaqEdgePolarityNone—None. Polarity is ignored.
Purpose
Polarity of the edge.
Remarks
Only two types of the CWIMAQEdgePolarities are returned by CWIMAQVision.FindEdges2:
- cwimaqEdgePolarityDarkToLight indicates a rising edge.
- cwimaqEdgePolarityLightToDark indicates a falling edge.