The invention discloses an image focusing measurement realization method based on local phase characteristics, which belongs to the field of information processing technology. Firstly, the image is preprocessed, then the processed image is divided into blocks and the Fourier transform of each sub-image is calculated to obtain the frequency domain coefficients of the corresponding sub-image. Then the frequency domain coefficients of each sub-image are selected to construct the phase information and the clarity information of the image is constructed through the phase information. Finally, the variance of the set of all sub-image sharpness information is obtained, and the variance value is used as the focus measure of the whole image. The method has the advantages of simple principle and low computational complexity to construct image detail information by calculating phase information on the basis of image block processing. At the same time, through the implementation of the above steps, the interference of noise to image detail information is reduced, and the noise robustness is strong especially under low contrast imaging conditions. This method is suitable for the passive imaging system of the camera and is easy to popularize.
【技术实现步骤摘要】
一种基于局部相位特征的图像聚焦测度实现方法
本专利技术属于信息处理
,具体涉及一种基于局部相位特征的图像聚焦测度实现方法。
技术介绍
日常生活中的拍照设备,例如单反相机、具有照相功能的手机以及路口的监控抓拍系统等都可以获得清晰的图像。然而清晰图像的获取是依赖于拍照设备的自动聚焦性能实现的。目前,市场上的拍照设备主要采用被动成像的自动聚焦技术。其核心是设计一个用于评价图像清晰度的聚焦测度,通过聚焦测度来选择最清晰的图像并保存。因此,一个性能优良的聚焦测度实现方法直接影响到所拍摄图像的质量。目前使用较为广泛的图像聚焦测度方法是基于图像细节信息来构建的,例如基于图像边缘提取的聚焦测度。典型的方法有图像一阶高斯导数方法、二阶导数方法、一阶偏导数方法、梯度求和方法以及拉普拉斯求和方法等。此类方法的本质是构造一个尺寸为3×3或者5×5卷积模板,用该模板与整幅图像进行卷积运算。卷积运算的结果是提取出图像的边缘信息,然后采用取绝对值或者平方求和的形式来构造整幅图像的聚焦测度。此类构造聚焦测度的方法存在如下两个主要缺点。首先是卷积运算复杂度高,需要对整幅图像的所有像素点进行遍 ...
【技术保护点】
1.一种基于局部相位特征的图像聚焦测度实现方法,其特征在于:具体步骤如下:步骤S1:将原始图像像素的行数和列数均调整为2
【技术特征摘要】
1.一种基于局部相位特征的图像聚焦测度实现方法,其特征在于:具体步骤如下:步骤S1:将原始图像像素的行数和列数均调整为2n的整数倍,其中n为正整数,得到图像f(x,y),图像f(x,y)的行数和列数分别用M和N表示;步骤S2:对图像f(x,y)进行分块处理,得到大小为2n×2n像素的子图像Si(x,y),其中i=1,2,...,M×N/22n;子图像Si(x,y)的变量取值为:x=0,1,...,2n-1,y=0,1,...,2n-1;步骤S3:计算每一幅子图像Si(x,y)的傅里叶变换,得到相应子图像的频域系数Ti(u,v),其中u=0,1,...,2n-1,v=0,1,...,2n-1;步骤S4:选取每一幅子图像频域系数Ti(u,v)来构造相位信息并标记为Pi(u,v);步骤S5:由子图像相位信息Pi(u,v)来构造该子...
【专利技术属性】
技术研发人员:刘恋,郭立强,曹翔,
申请(专利权)人:淮阴师范学院,
类型:发明
国别省市:江苏,32
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。