I'm programming in c# (windows form) for image processing
purpose. I have a Bitmap
image. In my image I have closed curve which may be convex
or concave
. The boundary of curve is illustrated by a special color . I want to fill it by a filling color. I implement my method (some thing like flood fill) but I get stack over flow exception. How can write method some like this:
FillPoly(Bitmap bitmap, Color boundaryColor, Color fillingColor)
Note: I have AForge Net
and Emgu CV
libraries in my project. Any solution using these libraries will be accepted.