Click here to Skip to main content
15,906,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
I want find all blobs in this matrix with c# code
help me
1 0 0 0 0 0 0 1 1 1 1 0 0
0 0 0 0 0 0 0 0 1 1 0 0 0
1 1 0 0 0 0 0 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 1 0 0
0 1 1 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 1 0 0 0
result:
2 0 0 0 0 0 0 3 3 3 3 0 0
0 0 0 0 0 0 0 0 3 3 0 0 0
4 4 0 0 0 0 0 3 3 3 0 0 0
0 0 0 0 0 0 0 0 0 0 3 0 0
0 5 5 0 0 0 0 0 0 0 0 0 0
5 0 0 0 0 0 0 0 0 6 0 0 0
Posted
Comments
TheyCallMeMrJames 17-Aug-10 11:44am    
What have you tried? What kind of approach are you taking? How is the data presented to you? When is your homework due?
Toli Cuturicu 17-Aug-10 12:01pm    
It seems that you have allready correctly found all of them! Good job!
Sandeep Mewara 17-Aug-10 12:52pm    
What have you tried so far? What was the issue while trying to do it?

1 solution

If you can't figure out how to do this (and it appears you've put virtually no effort into trying), then you need to spend some time working through this yourself. It will build your problem solving abilities. If this problem is too much for you, perhaps you should work on something simpler and accept a failing grade on this assignment.
 
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