Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvPointPolygonTest

cvPointPolygonTest


Module: OpenCV

Performs point-in-contour test.

Name Type Description
Input value
inContour Path Input contour.
Input value
inPt Point2D Point tested against the contour.
Input value
inMeasureDist Bool If true, the function estimates the signed distance from the point to the nearest contour edge. Otherwise, the function only checks if the point is inside a contour or not.
Output value
outValue Real

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Input contour must not be empty in cvPointPolygonTest.

Complexity Level

This filter is available on Basic Complexity Level.