Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I just want to know , how to count number of objects that a binary image contains?
I need to add this functionality to an application.My application loads an image when executed.I jus want to add a menu item.When user selects this menu item, the program should report the number of objects present in a binary image.
Please let me know, which functionality I should use or which method I should write.

Thank you.
Posted
Updated 5-Mar-12 20:14pm
v2
Comments
Lakamraju Raghuram 6-Mar-12 2:02am    
will you care to explain what to do you mean by objects
Chandrakantt 6-Mar-12 2:05am    
It will be better if you provide more details of the question you are asking. It will make us more clear to answer you.
[no name] 6-Mar-12 2:08am    
show me the code module...
Ed Nutting 6-Mar-12 2:29am    
Wow...you make OCR, object recognition and artificial intelligence sound so simple - just a menu button right? I'm sorry, if you'd searched Google for 5 minutes you'd work out pretty quickly not only that what your asking for is very difficult but has not been done fully yet and is not going to be as simple as you'd like. Put some work in yourself to research this. Then give up if you can't be bothered to work out how to use what already exists. There are a fair few good articles on CP about this subject.

Ed
johannesnestler 6-Mar-12 2:40am    
Good guesswork Ed... Aaavatar, words like binary, image and objects have a lot of meanings, please explain a little more, If you don't put any effort in your question, I don't bother to put work in an answer too....

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

What you ask for is not simple, not simple at all. In fact there are very highly funded projects still running that are looking into it.

Google can help: it will get you to some of the research results, which you will have to interpret and possibly implement. Do not expect it to be an easy ride though - there is a lot of work, and a lot of failure waiting for you:
Google[^]
 
Share this answer
 
The keyword here is Blob Detection[^].

Maybe EmguCV[^] or other image processing libraries can help you with this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900