APP下载

基于OpenCV的立木测量方法研究

2018-03-21姜广宇夏其表

电脑知识与技术 2018年3期

姜广宇 夏其表

摘要:为提高立木测量的效率和精度,在分析立木信息采集现状的基础上,从像素比值关系构建立木的胸径测量模型出发,通过对手机相机图片使用VC++语言编译环境下调用OpenCV库函数进行镜头畸变校正、Gamma校正等图像处理,求解立木的胸径。经过试验验证,测量结果的相对误差比较小,在林业需求的测量范围内。

关键词:立木测量;镜头畸变校正;Gamma校正

中图分类号:TP18 文献标识码:A 文章编号:1009-3044(2018)03-0212-02

Abstract: In order to improve the efficiency and accuracy of standing tree measurement, this paper attempted to construct a measurement model of DBH from the ratio of pixels and performed lens distortion correction and Gamma correction by calling the OpenCV library function in a VC ++ language environment Processing to calculate the diameter of standing tree Based on analyzing the present situation of collection of standing tree information. The experiment results show that the relative error of the measurement results is relatively small and can meet the measurement range of the forestry demand.

Key words: standing tree measurement; Lens distortion correction; Gamma correction

对立木的测量是森林资源调查的重要工作之一,其测量结果和精度将直接影响森林资源调查的质量以及林木生长状况的分析[1]。传统的测量方法主要是使用布鲁莱斯测高器、卷尺等测量工具来测量立木,但有可能会导致外业测量的劳动量大。随着对林业调查数据的精准性的要求越来越高,产生了许多有关林业数据获取和分析的方法[2-5]。随着计算机视觉技术的日趋发展成熟,一些研究者利用计算机视觉技术进行图像处理获取立木信息。陶司光等利用数码相片进行阈值分割进行提取立木信息[6]。OpenCV计算机视觉库作为一种开源的库为数字图像的处理提供了极大的方便[7]。

本文根据立木测量的实际情况出发,从像素比值关系构建立木的胸径测量模型出发,通过对手机相机图片使用VC++语言编译环境下调用OpenCV库函数进行镜头畸变校正、Gamma校正等图像处理,最终求解立木的胸径。

1 胸径测量模型

在摄影测量时,物体的空间坐标转化为图像……

登录APP查看全文