1 | initial version |
There is not standard functionality in OpenCV that provides exactly what you want. However, edges are basically binary maps (or can be represented as such) making it possible for you to detect the amount of white pixels versus the amount of black pixels in a region. This could define a measurement of edge concentration, like you describe it.