文件名称:rice
-
所属分类:
- 标签属性:
- 上传时间:2012-12-31
-
文件大小:8kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
首先进行边缘检测,然后进行填充。然后进行开运算,可以使一些轻微连着的米粒分开来。然后是遍历图片,把各米粒进行标号,从1开始从小到大标号。每个米粒的各像素点值相同,第i个米粒的各像素点值均为i。其中采用了队列,用数组模拟。最大的米粒标号便是米粒的总个数。最后,遍历一遍图像数组,便可求出各米粒的面积。-First, edge detection, and then filled. Then open computing can make some minor attached rice grains to separate. Then traverse the pictures, label each grain of rice, start from a small to a big label. Each pixel of each rice grain is the same value, each pixel value of the i th groats are i. Which uses a queue array simulation. The total number of the largest grain of rice label is a grain of rice. Finally, traverse again the image array, you can find the area of each grain of rice.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
rice.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.