I'm looking for a a way that allows me to apply image processing techniques to a set of polygons that are defined by a set of points (x and y) and then apply the following opperations: substract,erode,dialate,get all area that form a continues area connected to a particulair spot.
The images are monochrome (no colour data).
Anybody know what a way to do this? I have looked at gtk-sharp but that seems to miss some of these functions and most other libraries only take raster graphics as input.
Opencv does not seem to work so well with a set of points (or is there a way to fix this?).
What I'm looking for is something like this:
image image;
List<List<Point>> shapes;
List<Point> extract;
foreach(List<Point> shape in shapes){
image.add(shape)
}
image.remove(extract)
image.erode(5);
image.dialate(5)
image.getAllConnectedTo(0,0);
Anyone know a good library? Or a method to do this in general?
Note if anything is unclear feel free to ask so I can impprove it.