MATLAB File Help: cv.approxPolyDP | Index |
Approximates a polygonal curve(s) with the specified precision
approxCurve = cv.approxPolyDP(curve)
approxCurve = cv.approxPolyDP(curve, 'OptionName', optionValue, ...)
{[x,y], ...}
).
Supports integer (int32
) and floating point (single
) classes.The functions cv.approxPolyDP approximate a curve or a polygon with another curve/polygon with less vertices so that the distance between them is less or equal to the specified precision. It uses the Douglas-Peucker algorithm http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm.