Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly is edge density?

I'm kinda confuse of the meaning of edge density. From the equation,

edge density = sum(x=1,w) sum(y=1,h) e(x,y)/N

where e is the edge map image (magnitude of vertical edge at (x,y)), there are two version of N. 1st version - N = w x h (width x height) 2nd version - N = number of non zero vertical edge pixel

What I don't understand is how can I calculate the edge density? Is it just summation of the white edges pixels?

Edited

Hi all, from what I understand from reading the paper given by @Gilgamesh, the N is the area of the region, width times its height but from the answer given it seems there is a conflict whereby N refers to number of non white pixels(black pixel). So, which is the correct one? Here is another reference on the N value calculating edge density.

like image 465
Mzk Avatar asked Oct 24 '25 14:10

Mzk


1 Answers

basically the edge density is really just a (local) average density, which you can either calculate over binarized images or, more common, over grey scale images.

And yes, it is basically just summing up over both x and y coordinates in a subimage in most cases, see equation (1) here

http://ro.uow.edu.au/cgi/viewcontent.cgi?article=1517&context=infopapers

and averaging afterwards.

Regards, G.

like image 169
gilgamash Avatar answered Oct 26 '25 07:10

gilgamash



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!