中国水稻科学

• 研究简报 • 上一篇    下一篇

基于霍特林变换的稻米彩色图像粒形检测算法

刘璎瑛1,丁为民1,*,陈建伟2,沈明霞1

  

  1. 1南京农业大学 工学院, 江苏 南京 210031; 2江苏省粮食局粮油质量监测所, 江苏 南京 210011; *通讯联系人,E-mail:wmding@jlonline.com
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2010-05-10 发布日期:2010-05-10

A Hotelling TransformBased Algorithm for Rice Grain Type Detection with Color Images

LIU Ying-ying1, DING Wei-min1,*, CHEN Jian-wei2, SHEN Ming-xia1   

  1. 1 College of Engineering, Nanjing Agricultural University, Nanjing 210031, China; 2 Grain and Oil Quality Monitoring Institute of Grain Bureau of Jiangsu Province, Nanjing 210011, China; *Corresponding author, E-mail: wmding@jlonline.com
  • Received:1900-01-01 Revised:1900-01-01 Online:2010-05-10 Published:2010-05-10

摘要:

利用稻米分割后轮廓灰度图与背景灰度图的灰度均值之差和灰度方差之差进行米粒图像分割效果定量评价,对7个彩色通道的稻米图像进行分割评判,选取I1(红色、绿色、蓝色通道的平均值)通道进行稻米图像分割。提取分割后标注的单粒米粒边界的二维坐标向量,对坐标向量进行霍特林变换,通过计算变换后米粒最小外接矩阵来表征稻米粒形,简化了现有的稻米粒形检测算法。检测稻米粒型时,算法在MATLAB 7.5.0环境下运行。该算法所得米粒长宽比与人工检测结果的平均相对误差为1.65%,每幅图像平均耗时0.323 s;而最小外接矩形算法的平均相对误差为2.24%,每幅图像平均耗时2837 s。

关键词: 霍特林变换, 稻米, 彩色图像, 颜色通道, 粒形检测

Abstract: An algorithm for rice grain type detection using color image segmentation and the Hotelling transform was proposed. The rice grain images were segmented in I1 band(the average of red, green and blue color bands) chosen from seven color bands according to quantitative analysis of segmentation performance. The coordinate vector of segmented image edge was converted by the Hotelling transform. Grain size features were extracted in the new coordinate system using minimum enclosing rectangle. This algorithm was run in MATLAB 7.5.0 to count rice grain ratio. The relative error compared with manual measurement were 1.65% and 2.24%, and the running times were 0.323 s and 2.837 s per image, respectively, for this algorithm and algorithm using minimum enclosing rectangle.

Key words: Hotelling transform, rice, color image, color bands, grain type detection