1 | initial version |
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.