Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I want a c# algorithm to detect red small objects( blobs) in a background with 2 other colors( i.e blue and white) so i want to circle these red objects..

i know about Aforge.NET library but it's not useful in my case because I can't add the references in Windows Phone 7 solution ( it's not compatible with its run-time)

Thanks!
Posted
Updated 1-May-11 17:52pm
v3

Without extra library?! Well, AForce.NET is using .NET only, so, here is the plan:


  1. Try to solve the problem all by yourself;
  2. When you get enough experience and still face problems, build AForge.NET library and try to understand how it works; may be it will help you;
  3. Go back to item 1; repeat those items until success;
  4. If you feel you're not making further progress but your problem is not yet solved, ask a question at CodeProject, this time more concrete.


A hint: get red channel only and try to perform Blob Detection, see:
http://en.wikipedia.org/wiki/Blob_detection[^]

—SA
 
Share this answer
 
v3
Comments
RaviRanjanKr 1-May-11 23:39pm    
Nice response SA, My 5 :)
rodi1 1-May-11 23:46pm    
Thats what happens when we need things urgently and writing quick questions.. Now , you can revise the question :)

Regards.
Sergey Alexandrovich Kryukov 1-May-11 23:58pm    
Urgently? Hm. That could be quite a big part of project. Didn't you know about that? Read the reference to see what's involved; it pretty much explains the algorithms and provides further references. Knowing proper keywords, you can try to find code samples...
--SA
rodi1 2-May-11 0:05am    
I'm a newbie in image processing and this reference is helping me knowing the keywords for searching so thank you :)

The problem is that I'm only finding code samples with aforge.Net and this won't help in my case.. Do have any code sample links?

Thank you for your support :)
Sergey Alexandrovich Kryukov 2-May-11 0:18am    
No, I don't know any samples. I've used very expensive copy-protected commercial library just a bit and have an idea on how big some tasks are. I don't want to discourage you (because you might have enough talent and be am effective and hard worker), but the problem is exactly not for beginners.
--SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-May-11 23:41pm    
Just for a record: 1) due to OP claim that she/he knows about AForge.NET, first link is redundant; 2) second article does not have a relevant chapter which would help.
--SA

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