Page 1 of 1

How to use edge detection to count number of edges / objects

Posted: 2013-05-13T10:57:05-07:00
by luckyhat
Hi, I'm completely new to ImageMagick and would like to know whether it is possible to use edge detection to count the number of edges appearing in an image?

My intention is to use this as part of a php script which will give a (very rough) estimate of the number of objects in an image. I have done lots of Googling and found some articles about edge detection, but cannot find anywhere how to actually count the number of edges in a given picture.

Appreciate if you could help point me in the right direction, please let me know if you need more information

Thanks

Re: How to use edge detection to count number of edges / obj

Posted: 2013-05-13T11:49:34-07:00
by snibgo
If you can distinguish them, you can count them.

It's difficult to say more than that without a specific example. Can you supply a relevant image?