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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
luckyhat
Posts: 1
Joined: 2013-05-13T10:50:45-07:00
Authentication code: 6789

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

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

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

Post 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?
snibgo's IM pages: im.snibgo.com
Post Reply