Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » OpenCV » Structural Analysis and Shape Descriptors » cvPointPolygonTest

cvPointPolygonTest


Module: OpenCV

Performs point-in-contour test.

Name Type Description
inContour Path Input contour.
inPt Point2D Point tested against the contour.
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.
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.