discretization
I want to discretize a contour which was drawn manually in an image. could anyone help me to code this.
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: 811 times
Last updated: Feb 01 '13
How do I draw irregular contours of MSER regions
MSER Sample in OpenCV 2.4.2 on Visual Studio 2012
Using Open CV with a Network IP Camera
shape context implementation in opencv
How to Expand contour similar dilatation of contour?
locate the circle in the image..
Getting a point from a contour opencv android