问题查找Blob [英] question -find blob

查看:78
本文介绍了问题查找Blob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我想用C#代码在此矩阵中找到所有blob
帮帮我
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 0
1 0 0 0 0 0 0 0 0 1 0 0 0
结果:
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 0 0 0 0 0

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

推荐答案

如果您不知道该怎么做(看来您已经几乎不花力气去尝试),那么您需要花一些时间自己解决这个问题.它将建立您的问题解决能力.如果这个问题对您来说太多了,也许您应该简化一些工作,并接受此作业的不及格分数.
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.


这篇关于问题查找Blob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆