I'm trying to to write the program, that will plot region that satisifies system of inequalities.
I now have binary image with 0's and 1's.
Due to some specific implementation, I can't just draw region pixel by pixel.
Is there some algorithm, that can help to cover region by approximating rectangles/polygons?
Matrix looks like this: http://en.wikipedia.org/wiki/Connected-component_labeling#mediaviewer/File:Screenshot-Pixel_Region_(Figure_1).png
I need to paint 1's and leave 0's as it is.
Thanks in advance.