文件名称:sa
介绍说明--下载内容来自于网络,使用问题请自行百度
图像处理 求出图像中米粒个数以及各米粒的大小
首先进行边缘检测,然后填充,之后进行开运算,可以使一些轻微连接着的米粒分开。然后遍历图片,把各个米粒进行标号,从1开始从小到大标号。每个米粒的各像素点值相同,第i个米粒的各像素点值均为i。其中采用了队列,用数组模拟。最大的米粒标号便是米粒的总个数。最后,遍历一遍图像数组,便可求出各米粒的面积。(image processing The number of rice grains and the size of each grain were calculated
First edge detection, and then fill, and then open operations, can be slightly connected to the separation of rice grains. Then go through the pictures, label each grain, from 1 to small label. The pixel value of each rice grain is the same, each pixel value of the I rice was I. The queue is used, and the array is simulated. The largest grain mark is the total number of grains. Finally, the area of each rice grain can be calculated by traversing the image array.)
首先进行边缘检测,然后填充,之后进行开运算,可以使一些轻微连接着的米粒分开。然后遍历图片,把各个米粒进行标号,从1开始从小到大标号。每个米粒的各像素点值相同,第i个米粒的各像素点值均为i。其中采用了队列,用数组模拟。最大的米粒标号便是米粒的总个数。最后,遍历一遍图像数组,便可求出各米粒的面积。(image processing The number of rice grains and the size of each grain were calculated
First edge detection, and then fill, and then open operations, can be slightly connected to the separation of rice grains. Then go through the pictures, label each grain, from 1 to small label. The pixel value of each rice grain is the same, each pixel value of the I rice was I. The queue is used, and the array is simulated. The largest grain mark is the total number of grains. Finally, the area of each rice grain can be calculated by traversing the image array.)
相关搜索: matlab 图像处理
(系统自动生成,下载前可以参看下载内容)
下载文件列表
| 文件名 | 大小 | 更新时间 |
|---|---|---|
| sa.docx | 442380 | 2017-03-27 |
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
