湖北农业科学 ›› 2019, Vol. 58 ›› Issue (15): 119-123.doi: 10.14088/j.cnki.issn0439-8114.2019.15.028

• 信息工程 • 上一篇    下一篇

改进遗传算法结合Otsu算法的大田作物分割

赵明霞, 吕致, 郝雅洁, 史维杰, 李富忠   

  1. 山西农业大学软件学院, 山西 太谷 030801
  • 收稿日期:2019-04-30 发布日期:2019-11-13
  • 通讯作者: 李富忠(1969-), 男, 山西大同人, 教授, 博士, 主要从事计算机视觉研究及教学工作。
  • 作者简介:赵明霞(1994-), 女, 山西长治人, 在读硕士研究生, 研究方向为计算机视觉, (电话)17835422106(电子信箱)15534992911@163.com;
  • 基金资助:
    山西农业大学花卉识别应用创新平台项目(K481811088)

Improved genetic algorithm combined with improved Otsu algorithm for field crop segmentation

ZHAO Ming-xia, LYU Zhi, HAO Ya-jie, SHI Wei-jie, LI Fu-zhong   

  1. Software College of Shanxi Agricultural University, Taigu 030801, Shanxi, China
  • Received:2019-04-30 Published:2019-11-13

摘要: 针对部分田间图像由于其背景复杂、光照不均匀等导致很难确定图像分割的最佳阈值问题, 提出了一种基于结合遗传算法Otsu算法改进的图像分割方法。首先对采集的图像进行预处理, 基于预处理图像通过改进遗传算法中的选择、交叉、变异三种方法以及基于Otsu优化个体适应度函数, 实现了可以自动调整遗传控制参数, 既确保了物种的多样性又加快其收敛速度, 为Otsu图像分割提供了最佳阈值, 最后经过图像形态学对图像进行填充。将改进遗传算法的Otsu算法与基于遗传算法+Otsu算法进行图像分割以及基于遗传算法+Ksw熵值图像分割进行了对比, 发现该算法得到的阈值范围较为稳定, 使得分割后的图像准确、清晰, 对于后期进行作物株数的统计或者植株的覆盖度有一定的帮助。

关键词: 全局阈值分割, 遗传算法, 大津算法

Abstract: For some field images, it is difficult to determine the optimal threshold problem of image segmentation due to its complicated background and uneven illumination. This paper proposes an image segmentation method based on improved Otsu algorithm optimization and improved genetic algorithm. Firstly, the acquired images are pre-processed. Based on the preprocessed images, the genetic control parameters can be automatically adjusted by improving the three methods of selection, crossover and variation in the genetic algorithm and optimizing the individual fitness function based on Otsu, so as to ensure the diversity of species and accelerate its convergence speed. The optimal threshold is provided for the Otsu image segmentation, and finally the image is filled by image morphology. In the result of the discussion, the algorithm results are compared with the Genetic Algorithm Based on the Otsu Algorithm and the Image Segmentation Based on Genetic Algorithm and KSW Entropy. It is found that the threshold range obtained by the algorithm is stable, which makes the segmented image accurate and clear. It is helpful to calculate the number of crops or the coverage of plants in the later stage.

Key words: global threshold segmentation, genetic algorithm, Otsu algorithm

中图分类号: