Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How does CV_CHAIN_APPROX_SIMPLE work?

From the documentation of Imgproc.findContours :

CV_CHAIN_APPROX_SIMPLE compresses horizontal, vertical, and diagonal segments and leaves only their end points. For example, an up-right rectangular contour is encoded with 4 points.

How does this work exactly? Does this use the Douglas-Peucker algorithm?