- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
基于MATLAB的苹果图像分割方法
侯纯利
(曲阜师范大学物理工程学院 曲阜273165)
摘要:本文以苹果图像为例,重点研究了苹果图像与背景的分割,提取出苹果图像,并对苹果的大小进行估算分级,由于苹果品种众多,其颜色,果型,大小均有差异,并非一种或几种算法便可解决苹果分级问题,本文针对市场上最常见的红富士苹果,以背景设置对照物方式,采用Otsu方法进行阈值分割,通过计算苹果的像素点数量与背景对照物像素点数获得苹果上视图面积,再通过多次对比面积与重量,通过对果型的分析,确定苹果上视图面积与重量的简单函数关系。并以此为思路,提出关于水果分割及水果分级的简单过程。
根据实验设计,以matlab为工具,针对分割苹果背景图像时,需要人工设置阈值的问题,重点研究了图像阈值。选择Otsu法,将苹果图像分割为二值图像。采用区域标记与数学形态分去除二值图像中非苹果区域将得到的二值图像与灰度图像进行点乘运算,实现苹果图像与背景的分割,用相同的方法,实现设置参照物与背景的图像分割。该方法简单且能将苹果区域较为完整的从背景区域中分离出来。
仿真结果表明,本文提出的背景分割算法不仅能在红富士苹果图像实现较好的处理,对于其他相似的苹果图像也同样适用,具有一定的实用性。
关键词:水果;图像分割;MATLAB;面积计算
Abstract
With the apple image as an example, focus on the apple image and background image segmentation, extraction of apple, and apple on the size of the estimated grade, because the apple variety, its color, fruit type, size difference is not one or several algorithms can solve problems according to the classification of apple, the most common on the market of Fuji red apple, by setting control method, Otsu method using threshold segmentation, through the pixel calculation of the number of apples and background contrast pixels in Apple view area, after many times of size and weight, based on the analysis of fruit types, determine the simple function view area and weight the apple. And as a way of thinking, this is a simple process of fruit segmentation and fruit grading.
According to the experimental design, using MATLAB as a tool, the problem of manual setting threshold is needed for the segmentation of apple background image, and the image threshold value is studied. Select Otsu method, the apple image is divided into two value image. The region labeling and morphological remove binary image in non Apple areas will be the second value image and the gray level image of point multiplication and realize the segmentation of apple image and background, using the same method, set up the reference object and background image segmentation. The method is simple and can separate the apple area from the background area.
Simula
原创力文档


文档评论(0)