discretization
I want to discretize a contour which was drawn manually in an image. could anyone help me to code this.
In the first, preprocessing your image & extract contour then discretize the contour by approxPolyDP() function.
There nothing continuous in image so anything drawn in it is already discrete.
If you need to find polygon for this drawn contour you can use findContours function. Note that last parameter is method that may be used for simplification of extracted contour, so you can control discretization level.
Or if you already has the polygon and only want to simplify it you can use approxPolyDP function.
Asked: 2013-01-31 21:52:12 -0600
Seen: 833 times
Last updated: Feb 01 '13