DING Qi,XU Wei,LI Meng,et al.Measurement Method of Soybean Seed Morphological Parameters Based on Watershed and Statistical Moment[J].Soybean Science,2019,38(06):960-967.[doi:10.11861/j.issn.1000-9841.2019.06.0960]
基于分水岭和统计矩的大豆籽粒形态参数测量方法
- Title:
- Measurement Method of Soybean Seed Morphological Parameters Based on Watershed and Statistical Moment
- Keywords:
- Soybean seed image; Watershed; Counting; Morphometry; Software development
- 文献标志码:
- A
- 摘要:
- 为促进大豆考种及育种工作的高效进行,本研究设计一种大豆籽粒计数和面积、周长、粒长、粒宽等形态参数的测量软件。使用高拍仪采集大豆籽粒和标定板彩色图像,基于“Otsu”阈值法去除图像背景,获得大豆籽粒二值图像,基于分水岭变换法分割二值图中的粘连大豆籽粒,获取了一系列单粒、多粒大豆连通域,对极少数多粒连通域进行籽粒计数校正,实现了大豆籽粒的计数;使用单粒连通域的白色像素点总和来计算大豆籽粒面积,基于freeman链码算法的校正公式计算大豆籽粒周长,使用二阶统计矩求取大豆籽粒的主轴方向并将大豆扭到水平方向,继而计算大豆边界点横、纵坐标的极差来获取粒长与粒宽。用3份不同尺寸的大豆材料来验证本软件的精确性,试验结果表明,大豆籽粒计数准确率可达100%,软件测量与人工测量大豆籽粒的平均粒长和平均粒宽的误差普遍为0.01~0.04 cm,相对误差为3.8%~9.7%,平均相对误差为5.6%。该软件及相应的图像采集装置可以有效地满足农业科学研究工作的准确性要求,同时具有成本低廉,工作效率高的特点。
- Abstract:
- In order to promote soybean cultivation and breeding, this study designed a software that can count accurately and measure the morphological parameters of soybean seed, such as area, perimeter, length and width. The color image of soybean seed and calibration plate were collected by high-speed photographic apparatus. The image background was removed based on the ‘Otsu’ threshold method to obtain the binary image of soybean seed. Based on the watershed transformation method, the adhesive soybean seeds in the binary map were segmented, and a series of single-seed and multi-seeds soybean connected domains were obtained. The seed count was corrected for a few multi-seeds connected domains, and then soybean seed count was achieved. The sum of white pixels in each connected domain is used to calculate the soybean seed area. The seed perimeter was calculated by using the correction formula based on the freeman chain code algorithm. The second-order statistical moment is used to obtain the main axis direction of the soybean seed and the soybean seed was twisted to the horizontal direction, and then we calculated the seed length and width by the extreme difference between the horizontal and vertical coordinates of the boundary point. The accuracy of the software was verified by three different sizes of soybean seed materials. The results showed that the accuracy of soybean seed count can reach 100%. Compared with manual measurement, the error of average seed length and average seed width of soybean seeds is generally 0.01-0.04 cm, the relative error was 3.8%-9.7%, and the average relative error is 5.6%. The software and the corresponding image acquisition device can effectively meet the accuracy of agricultural scientific research work with low cost and high work efficiency.
参考文献/References:
[1]荀一, 鲍官军, 杨庆华,等. 粘连玉米籽粒图像的自动分割方法[J]. 农业机械学报, 2010, 41(4): 163-167. (Yun Y, Bao G J, Yang Q H, et al. Automatic segmentation method of adhesive corn grain image[J]. Transactions of the Chinese Society of Agricultural Machinery, 2010, 41(4): 163-167.)[2]韩明,刘教民,孟军英, 等. 结合局部能量与改进的符号距离正则项的图像目标分割算法[J]. 电子与信息学报, 2015, 37(9): 2047-2054.(Han M, Liu J M, Meng J Y, et al. Image object segmentation algorithm combining local energy and improved symbol distance regularization [J]. Journal of Electronics & Information Technology, 2015, 37(9): 2047-2054.)[3]Lu Y L. Study for automatic grain insect counting system based on image processing[J]. Microcomputer Information, 2008, 23(24): 311-312. [4]Ciontault F, Guerin D, Guillemin J P, et al. Infield triticum aestivum ear counting using colour-texture image analysis[J]. New Zealand Journal of Crop and Horticultural Science, 2008,36 (2):117-130. [5]王润涛, 张长利, 房俊龙,等. 基于机器视觉的大豆籽粒精选技术[J]. 农业工程学报, 2011, 27(8): 355-358. (Wang R T, Zhang C L, Fang J L, et al. Soybean grain selection technology based on machine vision[J]. Transactions of the Chinese Society of Agricultural Engineering, 2011, 27(8): 355-358.) [6]李琼, 姚遥, 杨青春,等. 基于MATLAB图像处理的大豆颗粒检测方法研究[J]. 中国农学通报, 2018, 34(30): 20-25. (Li Q, Yao Y, Yang Q C, et al. Study on the detection method of soybean granules based on MATLAB image processing[J]. Chinese Agricultural Science Bulletin, 2018, 34(30): 20-25.)[7]戴文华,吴翔,裘正军,等. 基于圆心定位的籽粒计数方法研究[J]. 农机化研究, 2015, 37(7): 198-202. (Dai W H, Wu X, Qiu Z J, et al. Study on grain counting method based on center positioning[J]. Journal of Agricultural Mechanization Research, 2015, 37(7): 198-202.)[8]Zhao P, Li Y. Grain counting method based on image processing[C]//2009 International Conference on Information Engineering and Computer Science. Wuhan:Institute of Electrical and Electronics Engineers, 2009: 1-3.[9]孙晓婷,陈江红. 基于形态重构的豆粒分割算法[J]. 福建工程学院报, 2014, 12(1): 70-73. (Sun X T, Chen J H. Bean segmentation algorithm based on morphological reconstruction [J]. Journal of Fujian University of Technology, 2014, 12(1): 70-73.)[10]贾鹏, 李永奎, 赵萍. 基于Matlab图像处理的谷物颗粒计数方法研究[J]. 农机化研究, 2009, 31(1): 152-153,156. (Jia P, Li Y K, Zhao P. Study on grain particle counting method based on Matlab image processing[J]. Journal of Agricultural Mechanization Research, 2009, 31(1): 152-153,156.)[11]Wang Y C,Chou J J. Automatic segmentation of touching rice kernels with an active contour model[J]. Transactions of the ASAE, 2004, 47(5): 1803-1811.[12]Tian J Z, Tie Z Z, Li Y, et al. Comparison of two algorithms based on mathematical morphology for segmentation of touching strawberry fruits[J]. Transactions of the Chinese Society of Agricultural Engineering, 2007, 23(9):164-168.[13]Jung Y M, Kang S H, Shen J. Multiphase image segmentation via Modica–Mortola phase transition[J]. SIAM Journal on Applied Mathematics, 2007, 67(5): 1213-1232.[14]李恺. 基于数字图像处理的颗粒分析系统[D]. 济南:齐鲁工业大学, 2015. (Li W. Particle analysis system based on digital image processing [D]. Jinan:Qilu University of Technology,2015.)[15]黄小玉, 李光林, 马驰等. 基于改进判别区域特征融合算法的近色背景绿色桃子识别[J]. 农业工程学报, 2018,34(23):142-148.(Huang X Y, Li G L, Ma C, et al. Green peach recognition in near-color background based on improved discriminant region feature fusion algorithm[J]. Transactions of the Chinese Society of Agricultural Engineering, 2018, 34(23): 142-148.[16]杨蜀秦. 大米外观品质计算机视觉检测的研究[D]. 杨凌:西北农林科技大学,2005. (Yang Y Q. Research on computer visual inspection of rice appearance quality[D]. Yangling:Northwest A & F University, 2005.)[17]Visen N S, Shashidhar N S, Paliwal J.Identification and segmentation of occluding groups of grain kernels in a grain sample image[J]. Journal of the Agricultural Engineering Research, 2001, 79 (2): 159-166.[18]Zhang G. Separation of touching grain kernels in an image by ellipse fitting and morphological transform algorithm[J]. Biosystems Engineering,2005,92(2):135-142.[19]Long Z Q, En C J. Automatic segmentation method of touching corn kernels in digital image based on improved watershed algorithm [C]//2011 International Conference on New Technology of Agricultural. Beijing:Institute of Electrical and Electronics Engineers, 2011: 34-37.[20]Barbedo J G A. Counting clustered soybean seeds [C]//2012 International Conference on Computational Science and Its Applications.Taian:Institute of Electrical and Electronics Engineers,2012:142-145.[21]陈静, 朱伟兴, 苏威. 基于机器视觉的种子千粒重测定系统的设计[J].传感器与微系统, 2008, 27(9): 97-99. (Chen J, Zhu W X, Su W. Design of seeding 1000-grain weight determination system based on machine vision[J]. Sensors and Microsystems, 2008, 27(9): 97-99.)[22]王小鹏,陈璐,吴双. 基于面积约束和自适应梯度修正的分水岭图像分割[J]. 光电子·激光, 2014,25(11): 2219-2226. (Wang X P, Chen L, Wu S. Watershed image segmentation based on area constraint and adaptive gradient correction[J]. Journal of Optoelectronics Laser, 2014, 25(11): 2219-2226.)[23]孙晓婷,陈江红,陈庆周.基于H-Dome重构的大豆图像分割[J].大豆科学,2013,32(6):821-824. (Sun X T, Chen J H, Chen Q Z. Image segmentation of soybean based on H-Dome reconstruction[J]. Soybean Science,2013,32(6):821-824.) [24]Shahin M A, Symons S J. Seed sizing from image of non-singulated grain samples[J]. Canadian Biosystems Engineering, 2005, 47(3): 49-55.[25]Vossepoel A M, Smeulders A W M. Vector code probability and metrication error in the representation of straightlines of finite length, Computer Graphics and Image Processing, 1982, 20(4): 347-364.
相似文献/References:
[1]孙晓婷,陈江红,陈庆周.基于H-Dome重构的大豆图像分割[J].大豆科学,2013,32(06):821.[doi:10.11861/j.issn.1000-9841.2013.06.0821]
SUN Xiao-ting,CHEN Jiang-hong,CHEN Qing-zhou.Image Segmentation of Soybean Based on H-Dome[J].Soybean Science,2013,32(06):821.[doi:10.11861/j.issn.1000-9841.2013.06.0821]
备注/Memo
收稿日期:2019-05-13基金项目:国家重点研发计划项目子课题(2016YFD0100201-22);国家自然科学基金(31571694);中央高校基本科研业务费专项资金(KYT201801);长江学者和创新团队发展计划(PCSIRT_17R55);教育部111项目(B08025);农业部国家大豆产业技术体系(CARS-04);江苏省优势学科建设工程专项;江苏省JCIC-MCP项目;扬州市科技计划(YZ2018038);江苏省农机三新工程(SZ120170036)。第一作者简介:丁琦(1996-),女,硕士,主要从事植物表型检测研究。E-mail: 2897876257@qq.com。通讯作者:王玲(1966-),女,博士,副教授,主要从事机器视觉技术研究。E-mail: Lingw@njau.edu.cn。邢光南(1980-),男,博士,副教授,主要从事大豆种质资源与大豆抗虫育种研究。E-mail: xinggn@njau.edu.cn。