为对图像特征准确识别提供数据分析,提出了一种基于梯度算子的线检测算法。算法首先对转化为灰度图的图像进行边缘检测,经过高斯滤波去除噪声等处理后利用线检测模版求出各像素的梯度值,从而求出图像的灰度直方图及梯度向量直方图。最后基于Matlab进行仿真模拟,仿真结果表明:方法具有较好的抗干扰性和定位准确性。
In order to provide data analysis for accurate identification of image features,a line detection algorithm based on the gradient operator is proposed.The edge detection of the converted grayscale images is conducted with this algorithm,and then make a removal of noise,and then a line detection template is used to calculate the gradient value of each pixel by denoising processing with Gaussian filtering,so as to compute the gray histogram and the gradient vector histogram of image.The simulation based on Matlab is performed.The simulation results show that the method has better anti-intererence capacity and accurate positioning.