欢迎访问林业科学,今天是

林业科学 ›› 2019, Vol. 55 ›› Issue (12): 74-83.doi: 10.11707/j.1001-7488.20191208

• 论文与研究报告 • 上一篇    下一篇

基于图像的幼龄檀香分割与土壤速效氮诊断

陈珠琳,王雪峰*   

  1. 中国林业科学研究院资源信息研究所 北京 100091
  • 收稿日期:2017-07-31 出版日期:2019-12-25 发布日期:2020-01-02
  • 通讯作者: 王雪峰
  • 基金资助:
    国家自然科学基金项目(31670642);林业科学技术推广项目([2016]11号)

Segmentation and Soil Available Nitrogen Diagnosis of Young Stage Sandalwood Based on Image

Zhulin Chen,Xuefeng Wang*   

  1. Research Institute of Forest Resource Information Techniques, CAF Beijing 100091
  • Received:2017-07-31 Online:2019-12-25 Published:2020-01-02
  • Contact: Xuefeng Wang
  • Supported by:
    国家自然科学基金项目(31670642);林业科学技术推广项目([2016]11号)

摘要:

目的: 提出一种基于图像的幼龄檀香分割与土壤速效氮诊断方法,为幼龄檀香生长状况快速监测提供技术手段。方法: 将图像由RGB系统转换到HSI系统,对S、I通道分别进行Otsu法分割,结合通道优势以及图像滤波和形态学运算,从复杂背景中分割出檀香叶片。在RGB、HSI和Lab系统下,分别计算叶片图像颜色均值,对不同施氮水平和全水平下的檀香叶片颜色与土壤速效氮含量进行建模分析,每种颜色系统作为一组,以檀香叶片单通道均值为自变量、每株檀香的土壤速效氮含量为因变量,建立三元二次多项式。通过计算拟合数据与验证数据的模型验证指标,确定最佳模型。结果: 1)复杂背景下的檀香分割中,S通道可将整幅图像的绿色植物划分为一类,I通道可将檀香叶片与背景中其他植物叶片区分开,二者结合能成功将大部分背景去除。结合7×7中值滤波、形态学运算和超G因子,前景可被精确提取出,得到的像素数误差在5%以内,各颜色通道均值误差控制在2%以内。2)构建土壤速效氮含量预测模型时,对不同颜色系统预测结果比较发现,各施氮水平下均表现为Lab系统能够更准确反映土壤速效氮含量,使用哑变量方法建模,得到基于哑变量的土壤速效氮含量预测模型;同时考虑某些林场由于疏于管理从而导致施氮水平未知,建立一种全水平下的预测方程,结果显示仍为Lab系统最佳。结论: 结合HSI颜色系统中S、I通道在大津法分割下表现出的特点,运用中值滤波、形态学运算和超G因子进行后期处理,可较精准提取出檀香叶片。基于复杂背景分割得到的图像颜色参数可对幼龄檀香进行土壤速效氮素营养诊断,无论是否划分施氮水平,Lab均为最佳颜色系统。构建的三元二次多项式模型具有良好预测能力,能够快速获取土壤氮素养分含量,可为经营者及时增加或减少氮肥量提供依据,为幼龄檀香健康状况监测提供技术手段。

关键词: 檀香, 图像分割, 营养诊断, 氮素, 颜色系统

Abstract:

Objectve: In order to ensure the survival rate of sandalwood (Santalum album) and the quality of heartwood in later period, this paper proposed an image segmentation method of sandalwood and a soil available nitrogen nutrition method which was expected to provide a time-saving method to monitor the growth of sandalwood. Method: Converting an image from RGB to a HSI system, then Otsu method to S and I channel was applied in this study. Combining the advantages of the above channels and image filtering method as well as morphological operation method, the sandalwood leaves were segmented from complex background. Using RGB, HSI and Lab systems, the color mean values of leaf images were calculated respectively, and soil available nitrogen content prediction models were built under different fertilization levels and under all levels. For each color system, the mean value of single channel of sandalwood leaves was taken as an independent variable, and the available nitrogen content of each sandalwood tree was taken as a dependent variable to establish a quadratic polynomial of three variables. By calculating the model validation index of fitting data and validation data, the best model was determined. Result: 1) In sandalwood segmentation method under complex background, the S channel could divide the green plants into a whole part, while the I channel could distinguish sandalwood leaves from the other plant leaves. The combination of the two channels could successfully remove most of the background. Combining 7×7 median filter, morphological operation and super G factor, the foreground was extracted more accurately. The pixel number error of this algorithm was within 5%, and the average error of each color channel was controlled within 2%, which showed that the segmentation algorithm was feasible. 2) When building the prediction model of soil available nitrogen content, we compared the prediction result of different color systems. It was found that the Lab system could reflect soil available nitrogen content more accurately under different nitrogen application levels. So dumb variable method was used to build the model, and the prediction model of soil available nitrogen content based on dumb variable was also obtained. At the same time, considering the unknown level of nitrogen application in some forest farms due to neglect of management, this study established a prediction equation at the full level. The result showed that the Lab system was still the best one. The parameter test of the two models presented significant result, indicating that the effects were relatively ideal. Conclusion: The sandalwood leaves could be extracted accurately by combining the characteristics of S channel and I channel in HSI color system under Otsu method, and using median filter, morphological operation and super G factor for post-processing also guaranteed the accuracy. Based on the image color parameters obtained from complex background segmentation, the diagnosis of nitrogen nutrition sandalwood was carried out in this paper. We discovered that the Lab was the best color system regardless of whether nitrogen level was divided or not, and its quadratic polynomial model presented a good prediction ability. The method proposed in this paper could quickly obtain soil nitrogen nutrient content for managers and might ensure the healthy growth of sandalwood.

Key words: sandalwood(Santalum album), image segmentation, nutrition diagnosis, nitrogen, color system

中图分类号: