Returns the segment closest to the given point.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Parameters
- x
- Type: System Double
X-coordinate of the specified point.
- y
- Type: System Double
Y-coordinate of the specified point.
Return Value
Type: CogGeneralContourSegmentIteratorThe returned nearest segment.
Exceptions
| Exception | Condition |
|---|---|
| CogShapeDegenerateContourException | The contour contains no segments. |
Remarks
Returns the segment closest to the point (x, y). The point is specified in the selected space of the contour.
See Also