I've an image with a bunch of simple grayscale primitive geometry (curves, 'saw'-lines, ellipses, triangles, stars) drawn by lines of width about 8-10 pixels.
How to perform statistical analysis of the image? I need at least following two parameters:
- Number of sharp angles
- Number of curves.
I've tried doing it myself by extracting contours, shrinking till they have edges connected (i.e. become curves) and analysing them by differential functions, but it takes too much time for big images.
A suppose there is some kind of algorithm of curve/angle/angle sharpness detection?
What i need is either an open-source framework (java/javascript prefferably) to do such stuff or at least name of algorithm to detect curves/'saw' lines.