[go: up one dir, main page]

CN102542539A - Strong-applicability image enhancement method based on power spectrum analysis - Google Patents

Strong-applicability image enhancement method based on power spectrum analysis Download PDF

Info

Publication number
CN102542539A
CN102542539A CN2011104554099A CN201110455409A CN102542539A CN 102542539 A CN102542539 A CN 102542539A CN 2011104554099 A CN2011104554099 A CN 2011104554099A CN 201110455409 A CN201110455409 A CN 201110455409A CN 102542539 A CN102542539 A CN 102542539A
Authority
CN
China
Prior art keywords
image
power spectrum
frequency
spectrum
fitting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011104554099A
Other languages
Chinese (zh)
Other versions
CN102542539B (en
Inventor
何小海
梁子飞
吴媛媛
滕奇志
吴炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan University
Original Assignee
Sichuan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan University filed Critical Sichuan University
Priority to CN201110455409.9A priority Critical patent/CN102542539B/en
Publication of CN102542539A publication Critical patent/CN102542539A/en
Application granted granted Critical
Publication of CN102542539B publication Critical patent/CN102542539B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明涉及一种基于功率谱分析的强适用性图像增强的方法,属于图像增强领域。该方法包括对图像功率谱数学模型的建立,对模型的分析,演推出真实图像的特征,并对此特征进行统计证明。本发明经求解并分析模糊图像与清晰图像的平均功率谱曲线,发现模糊图像有功率损失的现象;用一幅与模糊图像无关的清晰图像作参考图像,该参考图像与模糊图像尺寸相同,其细节比较丰富或与模糊源图取自于同一场景的清晰图像;再对模糊图像进行图像增强处理;先求解所选两幅图像的平均功率谱曲线,通过此曲线进行分段数据拟合,然后由两幅图像的拟合数据之间的差距计算出频谱调节参数,最后通过对模糊图像的频谱调节达到增强图像的目的。The invention relates to a strong applicability image enhancement method based on power spectrum analysis, which belongs to the field of image enhancement. The method includes establishing a mathematical model of the image power spectrum, analyzing the model, deriving the features of the real image, and performing statistical proof on the features. The present invention solves and analyzes the average power spectrum curves of the fuzzy image and the clear image, and finds that the fuzzy image has a power loss phenomenon; a clear image that has nothing to do with the fuzzy image is used as a reference image, and the size of the reference image is the same as that of the fuzzy image. A clear image with rich details or taken from the same scene as the blurred source image; then perform image enhancement processing on the blurred image; first solve the average power spectrum curve of the two selected images, and use this curve to perform segmented data fitting, and then The spectrum adjustment parameters are calculated from the gap between the fitting data of the two images, and finally the purpose of enhancing the image is achieved by adjusting the spectrum of the fuzzy image.

Description

一种基于功率谱分析的强适用性图像增强方法A Strong Applicability Image Enhancement Method Based on Power Spectrum Analysis

技术领域 technical field

本发明涉及一种图像处理技术,特别涉及一种强适用性的功率谱有损失模糊图像增强的方法,属于图像增强领域。The invention relates to an image processing technology, in particular to a method for enhancing a power spectrum lossy blurred image with strong applicability, and belongs to the field of image enhancement.

背景技术 Background technique

在图像获取过程中,散焦,运动,参数设置不准确,天气等都是造成图像模糊的原因。图像增强的目的是提高图像的细节,使我们从图像中得到更多有用的信息。在图像获取的硬件条件已经确定的情况下,软件的后处理是增强图像的一种有效方法。虽然现有的图像增强方法有很多,但是大多都是针对单纯的图像模糊,例如运动模糊或散焦模糊,考虑到其速度和适用度,能广泛应用的并不多。During image acquisition, defocus, motion, inaccurate parameter setting, weather, etc. are all reasons for image blur. The purpose of image enhancement is to improve the details of the image so that we can get more useful information from the image. When the hardware conditions of image acquisition have been determined, software post-processing is an effective method to enhance images. Although there are many existing image enhancement methods, most of them are aimed at pure image blur, such as motion blur or defocus blur. Considering their speed and applicability, not many can be widely used.

图像增强是一个具有很长历史的研究课题。图像模糊可以被看作是一个退化过程,其函数形式为:Image enhancement is a research topic with a long history. Image blurring can be viewed as a degradation process with a functional form of:

g(x)=h(x)*f(x)+n(x)        (1)g(x)=h(x)*f(x)+n(x) (1)

上式中f(x)可以看作是真实场景,h(x)是获取图像过程中各种模糊退化因素,n(x)是噪声,此处不考虑噪声。In the above formula, f(x) can be regarded as the real scene, h(x) is various blur degradation factors in the process of acquiring images, and n(x) is noise, which is not considered here.

直方图均衡化就是一种应用广泛的图像增强方法,此方法对于图像的亮度不均等简单自然退化因素引起的模糊有一定的增强效果,但是对于运动模糊和相机对焦不准确引起的模糊的消除效果不理想。很多方法把去模糊看作是一个去卷积过程,由此产生了盲复原方法,但是此类方法需要迭代,用时较长,并且此类算法依赖于图像模糊核的估计,因此针对的模糊类型单一,适应性不强。针对散焦模糊也有方法从光学的角度或三维成像的角度分析,效果虽好但也是存在着适用性不广泛的缺陷。针对运动模糊也有不少方法提出,梯度信息经常被用到图像去运动模糊处理中,但真实运动中大的运动模糊难以正确恢复边缘,此方法也只单一地针对运动模糊一种图像。雾可以看作是一种特殊的模糊因素,有很多算法针对雾天图像处理,何凯明(Single Image Haze Removal Using DarkChannel Prior[C].CVPR2009:IEEE Computer Society Conference on Computer Vision andPattern Recognition,Miami Beach,Florida,Jun.2009:1956-1963)提出的亮色通道去雾的方法对于薄雾图像的增强达到了很好的效果,但对于浓雾图像效果并不佳。Histogram equalization is a widely used image enhancement method. This method has a certain enhancement effect on the blur caused by simple natural degradation factors such as uneven brightness of the image, but it has a certain effect on the elimination of blur caused by motion blur and inaccurate camera focus. not ideal. Many methods regard deblurring as a deconvolution process, resulting in blind restoration methods, but such methods require iteration and take a long time, and such algorithms rely on the estimation of the image blur kernel, so the blur type for Single, not very adaptable. For defocus blur, there are also methods to analyze from the perspective of optics or 3D imaging. Although the effect is good, it also has the defect of not being widely applicable. There are also many methods for motion blur. Gradient information is often used in image motion blur processing, but it is difficult to correctly restore the edge of large motion blur in real motion. This method is only for a single image with motion blur. Fog can be regarded as a special fuzzy factor. There are many algorithms for foggy image processing, He Kaiming (Single Image Haze Removal Using DarkChannel Prior[C]. CVPR2009: IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Miami Beach, Florida , Jun.2009: 1956-1963), the bright color channel defogging method proposed has achieved good results for the enhancement of hazy images, but the effect is not good for dense fog images.

1987年David J.Field就已指出了自然图像功率谱形状,并将其用于皮层细胞图像研究(Relations between the statistics of natural images and the response properties of corticalcells[J],Optical Society of Amercia,vol.4,no.12,2379-2393,Dec.1987)。1992年NormanB.Nill提出用图像功率谱分析图像质量(Objective Image Quality Measure Derived fromDigital Image Power Spectra[J],Optical Engineering,vol.31,no.4,813-825,Apr.1992)。1997年Daniel L.Ruderman从功率谱幂指数形式出发分析了图像的尺度特性(Origins ofScaling in Natural Images[J],Vision Research,vol 37,No23,3385-3395,1997)。DavidJ.Field又通过对功率谱的分析指出了图像功率谱的可变性来源,分析了噪声,模糊等(Visual Sensitivity,Blur and the Sources of Variability in the Amplitude Spectra of NaturalScenes[J],Vision Research,vol.37,no.23.pp.3367-3383,1997)。2003年,Antonio对不同场景图像的平均功率谱做了统计分析,并指出图像功率谱与功率谱半径呈幂指数关系(Statistics of natural image categories[J].NETWORK:COMPUTATION IN NEURALSYSTEMS,vol.14,pp.391-412,May.2003)。In 1987, David J. Field pointed out the shape of the power spectrum of natural images and used it in the study of cortical cell images (Relations between the statistics of natural images and the response properties of cortical cells[J], Optical Society of Amercia, vol. 4, no.12, 2379-2393, Dec.1987). In 1992, NormanB.Nill proposed to use image power spectrum to analyze image quality (Objective Image Quality Measure Derived from Digital Image Power Spectra[J], Optical Engineering, vol.31, no.4, 813-825, Apr.1992). In 1997, Daniel L. Ruderman analyzed the scale characteristics of images starting from the power spectrum power index (Origins of Scaling in Natural Images[J], Vision Research, vol 37, No23, 3385-3395, 1997). DavidJ.Field pointed out the source of the variability of the image power spectrum through the analysis of the power spectrum, and analyzed noise, blur, etc. (Visual Sensitivity, Blur and the Sources of Variability in the Amplitude Spectra of Natural Scenes[J], Vision Research, vol .37, no. 23. pp. 3367-3383, 1997). In 2003, Antonio made a statistical analysis of the average power spectrum of images in different scenes, and pointed out that the image power spectrum and the power spectrum radius have a power exponential relationship (Statistics of natural image categories[J]. NETWORK: COMPUTATION IN NEURAL SYSTEMS, vol.14, pp.391-412, May.2003).

发明内容 Contents of the invention

本发明的目的正是在于克服现有技术中所存在的缺陷和不足,提供一种强适用性图像增强的处理方法。该方法包括对图像功率谱数学模型的建立,对模型的分析,演推出真实图像的特征,并对此特征进行统计证明;以解决获取图像过程中产生的模糊或者有用信息不清晰的问题,达到增强图像效果的目的。The purpose of the present invention is to overcome the defects and deficiencies existing in the prior art, and to provide a processing method for image enhancement with strong applicability. The method includes the establishment of a mathematical model of the image power spectrum, the analysis of the model, the derivation of the characteristics of the real image, and the statistical proof of the characteristics; to solve the problem of fuzzy or unclear useful information in the process of obtaining the image, to achieve The purpose of image enhancement.

为实现上述目的,本发明采用以下措施构成的技术方案来实现。In order to achieve the above object, the present invention adopts the following technical solution to achieve.

本发明提出的一种基于功率谱分析的强适用性图像增强方法,包括以下操作步骤:A strong applicability image enhancement method based on power spectrum analysis proposed by the present invention comprises the following steps:

步骤1:给定一幅待增强图像,先选定一幅参考图像,该参考图像满足两个条件:第一,与模糊图像尺寸相同;第二,其细节比较丰富或者与模糊源图取自于同一场景的清晰图像;Step 1: Given an image to be enhanced, first select a reference image that satisfies two conditions: first, the size of the reference image is the same as the blurred image; Clear images of the same scene;

步骤2:对步骤1给定的待增强图像进行傅里叶变换并求解出图像功率谱,对于数字图像功率谱求解即是进行傅里叶变换后求模方;Step 2: Perform Fourier transform on the image to be enhanced given in step 1 and solve the image power spectrum. For the solution of the digital image power spectrum, it is to find the modulus after Fourier transform;

步骤3:求解步骤2得到的图像功率谱的平均功率谱曲线,并通过下面拟合函数公式(2)进行数据拟合:Step 3: Solve the average power spectrum curve of the image power spectrum obtained in step 2, and perform data fitting by the following fitting function formula (2):

z=Ar                (2)z=Ar (2)

公式(2)中r是自变量,z是因变量,A和β是要求解的拟合参数;In formula (2), r is an independent variable, z is a dependent variable, and A and β are fitting parameters to be solved;

步骤4:通过对步骤3求解的拟合曲线进行图像频带划分,此处将图像频带划分为低频、中频、高频和超高频四个频带;Step 4: divide the image frequency band by the fitting curve solved in step 3, here divide the image frequency band into four frequency bands of low frequency, intermediate frequency, high frequency and ultrahigh frequency;

步骤5:对要增强图像和参考图像同时作离散余弦变换(DCT),并对DCT域平均频谱曲线进行局部数据拟合;Step 5: Simultaneously perform discrete cosine transform (DCT) on the image to be enhanced and the reference image, and perform local data fitting on the average spectral curve in the DCT domain;

步骤6:在步骤4划分的每个频带内求解频谱调整系数;Step 6: Solve the spectrum adjustment coefficient in each frequency band divided in step 4;

步骤7:在步骤4划分的每个频带内调整模糊图像DCT域频谱;Step 7: Adjust the DCT domain spectrum of the fuzzy image in each frequency band divided in step 4;

步骤8:对步骤7调整后的DCT域频谱进行DCT反变换,即能求解出增强处理后的时域清晰图像;Step 8: Perform DCT inverse transform on the adjusted DCT domain frequency spectrum in step 7 to obtain a clear image in time domain after enhanced processing;

所述要增强的图像为正方形数字图像,或为非正方形数字图像;所述要增强的图像为灰度图像,或为彩色图像。The image to be enhanced is a square digital image, or a non-square digital image; the image to be enhanced is a grayscale image, or a color image.

上述技术方案中,步骤3所述的平均功率谱曲线求解方式为:数字图像的时域函数形式表示为f(x,y),其傅里叶频域形式为F(u,v);对数字图像功率谱曲线的求解方式由以下公式(3)表示:In the above-mentioned technical scheme, the average power spectrum curve solution method described in step 3 is: the time domain function form of digital image is expressed as f(x, y), and its Fourier frequency domain form is F(u, v); The solution method of the digital image power spectrum curve is represented by the following formula (3):

| F ( r ) | 2 ‾ = Σ u Σ v | F ( u , v ) | 2 N (3) | f ( r ) | 2 ‾ = Σ u Σ v | f ( u , v ) | 2 N (3)

式中

Figure BDA0000127347280000032
是一个关于r的函数,变量r为点(u,v)到功率谱中心的距离,N为离中心点距离为r的频域点的总数。In the formula
Figure BDA0000127347280000032
is a function of r, the variable r is the distance from the point (u, v) to the center of the power spectrum, and N is the total number of frequency domain points whose distance from the center point is r.

上述技术方案中,步骤4所述的图像频带划分,其中,中频和超高频的频带划分方法如下:In the above-mentioned technical solution, the image frequency band division described in step 4, wherein, the frequency band division method of the intermediate frequency and the ultrahigh frequency is as follows:

所述中频部分“重心点”为步骤3求解的图像平均功率谱曲线整体拟合曲线曲率最大的点;The "center of gravity point" of the intermediate frequency part is the point with the largest curvature of the overall fitting curve of the image average power spectrum curve solved in step 3;

所述图像为正方形数字图像时,其超高频部分为图像功率谱矩阵数据的内切圆的外部数据;所述图像为非正方形数字图像时,其超高频部分则为图像功率谱矩阵数据的短边内切圆的外部数据。When the image is a square digital image, its UHF part is the external data of the inscribed circle of the image power spectrum matrix data; when the image is a non-square digital image, its UHF part is the image power spectrum matrix data The outer data of the short side inscribed circle.

上述技术方案中,步骤5所述的平均频谱曲线求解方式:将数字图像的时域函数形式表示为f(x,y),其DCT域频谱形式为G(u,v);对图像平均频谱曲线的求解方式由以下公式(4)表示:In the above-mentioned technical scheme, the average spectrum curve solution mode described in step 5: the time domain function form of the digital image is expressed as f (x, y), and its DCT domain spectrum form is G (u, v); The way to solve the curve is expressed by the following formula (4):

G ( r ) = Σ u Σ v | G ( u , v ) | N (4) G ( r ) = Σ u Σ v | G ( u , v ) | N (4)

式中G(r)是一个关于r的函数,变量r为点(u,v)到DCT域频谱中心的距离,N为离频谱中心距离为r的频域点的总数。In the formula, G(r) is a function about r, the variable r is the distance from the point (u, v) to the center of the DCT domain spectrum, and N is the total number of frequency domain points whose distance from the spectrum center is r.

上述技术方案中,步骤5所述的平均频谱曲线拟合曲线的求解:是在步骤4划分的图像频带内作局部数据拟合,由于高频频带部分较长,带内还需分段,具体根据图像大小分段进行拟合,拟合函数公式(2)变为:In the above-mentioned technical scheme, the solution of the average spectrum curve fitting curve described in step 5: it is to do local data fitting in the image frequency band divided in step 4, because the high-frequency band part is longer, the band needs to be segmented, specifically Fitting is performed in segments according to the size of the image, and the fitting function formula (2) becomes:

z=Ar+γ        (5)z=Ar +γ (5)

以上拟合公式中r是自变量,z是因变量,A、β和γ是要求解的拟合参数。In the above fitting formula, r is the independent variable, z is the dependent variable, and A, β and γ are the fitting parameters to be solved.

上述技术方案中,步骤6所述的调整系数求解:是通过局部数据拟合得到两个图像的不同拟合函数zblur和zref,这两个函数的归一化比值即为调整系数函数,由以下公式(6)表示:In the above technical solution, the solution to the adjustment coefficient described in step 6 is to obtain different fitting functions z blur and z ref of the two images through local data fitting, and the normalized ratio of these two functions is the adjustment coefficient function, Expressed by the following formula (6):

z rate = z ref / z ref max z blur / z blur max (6) z rate = z ref / z ref max z blurred / z blurred max (6)

上述技术方案中,步骤7所述的模糊图像DCT域频谱调整方法:以r为变量,以1为单位进行频谱调整,调整系数即为步骤6中求解出的关于r的函数zrate在r取固定整数rg时的值zrate(rg);对模糊图像的DCT域频谱进行增强:具体用求解的zrate(rg)增强DCT域rg-1<r≤rg的频谱,且在整个频谱域范围内进行调整。In the above technical solution, the fuzzy image DCT domain spectrum adjustment method described in step 7: take r as a variable, and perform spectrum adjustment with 1 as a unit, and the adjustment coefficient is the function z rate about r solved in step 6. When r is taken The value z rate (r g ) when the integer r g is fixed; the DCT domain spectrum of the blurred image is enhanced: specifically, the solved z rate (r g ) is used to enhance the frequency spectrum of the DCT domain r g -1<r≤r g , and Adjustments are made across the entire spectral domain.

上述技术方案中,所述图像增强方法是对灰度图像的处理过程,若是对彩色图像进行处理,则将彩色图像的绿色分量按上面所述步骤1-8进行处理,然后将彩色图像的红、蓝两个颜色分量不再求解调整系数,而是利用步骤6求解出来的绿色分量调整系数,从步骤7开始对红、蓝两个颜色分量进行调整即可。In the above technical solution, the image enhancement method is a processing process for a grayscale image. If a color image is processed, the green component of the color image is processed according to the above steps 1-8, and then the red component of the color image is processed. The adjustment coefficients of the two color components of blue and blue are no longer calculated, but the adjustment coefficient of the green component obtained in step 6 is used to adjust the two color components of red and blue from step 7.

本发明的一种基于功率谱分析的强适用性图像增强方法,在所述步骤4中,通过对几个不同场景大量正方形图像平均功率谱曲线求平均后发现,在频域数据内切圆之外,曲线有个比较明显的凹陷;因此将频谱矩阵内切圆之外定义为超高频,若图像是非正方形图像则将频谱矩阵短边内切椭圆之外定义为超高频。A strong applicability image enhancement method based on power spectrum analysis of the present invention, in step 4, after averaging the average power spectrum curves of a large number of square images in several different scenes, it is found that between the inscribed circles of the frequency domain data In addition, the curve has a relatively obvious depression; therefore, the outside of the inscribed circle of the spectrum matrix is defined as UHF, and if the image is a non-square image, the outside of the short side of the spectrum matrix inscribed in the ellipse is defined as UHF.

本发明一种基于功率谱分析的强适用性图像增强方法,在所述步骤5中,由于DCT域同样反映了图像功率谱的分布情况,且分布形式具有相似性,鉴于DCT域数据计算简单,因此使用DCT域变换处理,同时因为取数值的模与模方具有相同的拟合函数,所以在DCT域取数值绝对值代替模方,并且在做增强处理时不能进行简单的全局数据拟合,因为全局数据拟合造成的误差太大。即在图像频谱分段时用傅里叶变换求解功率谱并对频谱进行分段,而在真实增强处理时通过以上的分段结果进行局部数据拟合。A strong applicability image enhancement method based on power spectrum analysis of the present invention, in the step 5, since the DCT domain also reflects the distribution of the image power spectrum, and the distribution forms are similar, in view of the simple calculation of DCT domain data, Therefore, the DCT domain transformation process is used, and because the modulus and the modulus of the value have the same fitting function, the absolute value of the value is taken in the DCT domain instead of the modulus, and simple global data fitting cannot be performed during the enhancement process. Because the error caused by global data fitting is too large. That is, when the image spectrum is segmented, the Fourier transform is used to solve the power spectrum and the spectrum is segmented, and the local data fitting is performed through the above segmented results during the real enhancement process.

本发明的一种基于功率谱分析的强适用性图像增强方法,在所述步骤7中,所述模糊图像与清晰图像之间的差别就在于模糊图像的有用信息不够丰富,表现在频域上就是功率谱能量的丢失,本发明对几种不同类型的模糊图像与相同清晰图像的平均功率谱曲线做了对比,通过对比发现模糊图像相对于清晰图像频谱能量不足,需要进行调整达到增强图像的目的。以上所述的调整思路就是找到功率谱曲线的规律,在这个规律的约束下对模糊图像通过合理的调整系数调整图像频谱以达到增强图像的目的。A strong applicability image enhancement method based on power spectrum analysis of the present invention, in the step 7, the difference between the blurred image and the clear image is that the useful information of the blurred image is not rich enough, which is manifested in the frequency domain It is the loss of power spectrum energy. The present invention compares the average power spectrum curves of several different types of fuzzy images with the same clear image. Through the comparison, it is found that the fuzzy image has insufficient spectrum energy compared to the clear image, and adjustments are needed to achieve enhanced image quality. Purpose. The above-mentioned adjustment idea is to find the law of the power spectrum curve, and under the constraints of this law, adjust the image spectrum through a reasonable adjustment coefficient to achieve the purpose of enhancing the image.

本发明一种基于功率谱分析的强适用性图像增强的处理方法具有的特点和技术效果:采用本发明的处理方法可实现各类模糊图像的增强,不仅仅是模糊图像,有些低端相机拍摄出来的达不到所要求的清晰度的图像也可以进行增强。采用本发明的处理方法虽然需要一幅清晰图像作为参考图像,但是参考图像的选取的自由度比较大,现有技术中的算法很多需要对图像多次调整,而本发明求解调整系数后只需对图像进行一次调整即可,其速度较快,效果好,适用性广泛。The characteristics and technical effects of a powerful image enhancement processing method based on power spectrum analysis in the present invention: the processing method of the present invention can realize the enhancement of various blurred images, not only blurred images, but also some low-end cameras Images that do not come out with the desired clarity can also be enhanced. Although adopting the processing method of the present invention requires a clear image as a reference image, the degree of freedom in the selection of the reference image is relatively large. Many algorithms in the prior art need to adjust the image multiple times, but the present invention only needs to adjust the adjustment coefficient It is only necessary to adjust the image once, and the speed is fast, the effect is good, and the applicability is wide.

本发明的一种基于功率谱分析的强适用性图像增强的处理方法中,其步骤3所述拟合函数证明如下:In the processing method of a kind of strong applicability image enhancement based on power spectrum analysis of the present invention, the fitting function described in its step 3 proves as follows:

虽然2003年Antonio对不同场景图像的平均功率谱做了统计分析,并指出图像功率谱与功率谱半径呈幂指数关系,统计出了平均功率谱的形状,并对功率谱特点进行了描述,但并没有将功率谱抽象为一个具体的函数形式。本发明将平均功率谱从数学的角度抽象出一个更为具体且适用性强的函数并进行了数学建模,建模函数如公式(7)所示:Although Antonio made a statistical analysis of the average power spectrum of images in different scenes in 2003, and pointed out that the power spectrum of the image has a power exponential relationship with the radius of the power spectrum, calculated the shape of the average power spectrum, and described the characteristics of the power spectrum, but The power spectrum is not abstracted into a concrete functional form. The present invention abstracts the average power spectrum from a mathematical point of view into a more specific and applicable function and performs mathematical modeling. The modeling function is shown in formula (7):

z=[(au)2/m+(bv)2/n]-s                (7)z=[(au) 2/m +(bv) 2/n ] -s (7)

式中u,v表示函数的两个方向,z为函数值,a,b,m,n,s为调整参数,可以通过对这几个参数的调整改变功率谱逼近函数的形式。In the formula, u and v represent the two directions of the function, z is the function value, a, b, m, n, s are the adjustment parameters, and the form of the power spectrum approximation function can be changed by adjusting these parameters.

本发明是通过结合真实图像的统计数据对上述所述函数进行分析处理才得到平均功率谱曲线的求解方法,统计分析处理过程如下:The present invention is to analyze and process the above-mentioned function by combining the statistical data of the real image to obtain the solution method of the average power spectrum curve, and the statistical analysis process is as follows:

1、公式(7)中函数的横切面形式即当z取一个大于零的固定值为:1. The cross-sectional form of the function in formula (7) is when z takes a fixed value greater than zero:

(au)2/m+(bv)2/n=z0 -1/s              (8)(au) 2/m + (bv) 2/n = z 0 -1/s (8)

式中z0是z取的具体的切面值,以上函数是一个二维平面函数,如果a=b=1,且2/m=2/n=-1/s=2/3时的一个具体的形式为:In the formula, z 0 is the specific tangent value taken by z, the above function is a two-dimensional plane function, if a=b=1, and a specific one when 2/m=2/n=-1/s=2/3 is of the form:

(u)2/3+(v)2/3=z0 2/3                 (9)(u) 2/3 + (v) 2/3 = z 0 2/3 (9)

以上函数是一个星形线,星形线与坐标轴的交点为z0,这个函数形式与Antonio在其文章中提出的大量城市场景图像集的平均功率谱的俯视图形状相似。The above function is a star-shaped line, and the intersection point of the star-shaped line and the coordinate axis is z 0 . The form of this function is similar to the shape of the top view of the average power spectrum of a large number of urban scene image sets proposed by Antonio in his article.

所述函数的边缘纵切面形式如下:The edge longitudinal section form of the function is as follows:

z=(au)-2s/m或z=(bv)-2s/n           (10)z=(au) -2s/m or z=(bv) -2s/n (10)

以上函数形式也满足了前述文章提出的“幂指数”的关系。The above functional form also satisfies the "power exponent" relationship proposed in the aforementioned article.

2、通过对真实图像统计数据分析对建模函数公式(7)进行简化:2. Simplify the modeling function formula (7) by analyzing the real image statistical data:

Antonio的研究中是将很多幅图像进行统计,每一幅图像看作一组采样数据,Antonio的统计结果显示,当采样图像的数量足够多时就会发现功率谱水平竖直和45度角方向的曲线基本重合。本发明对模型做进一步简化,假定模型中参数m和n相同,模型简化为:In Antonio's research, many images are counted, and each image is regarded as a set of sampling data. Antonio's statistical results show that when the number of sampled images is large enough, the horizontal, vertical and 45-degree angle directions of the power spectrum will be found. The curves basically coincide. The present invention further simplifies the model, assuming that the parameters m and n are the same in the model, the model is simplified as:

z=[(au)2/t+(bv)2/t]-s               (11)z=[(au) 2/t +(bv) 2/t ] -s (11)

对模型做极坐标变换并简化形式可得:Transform the model to polar coordinates and simplify the form to get:

z=α(θ)r                        (12)z=α(θ)r (12)

以上公式(12)β不再与θ相关,说明当数据量足够大时图像频域能量谱的各个方向概率是相同的,从概率的观点出发就是说在一幅图像还没有被采集的时候频域能量角度取向是等概率的。由傅里叶变换的性质可知时域图像的一个边缘就会对应频域能量的一个方向,我们所处的世界的物体的闭合性决定了获得图像的边缘具有多方向性,因此即使单幅图像也可以看作一个采样集;不同方向的时域的边缘对应了功率谱能量的多个不同的方向,这些频域的每个方向的一组数据都可以看作一组采样值。The above formula (12) β is no longer related to θ, indicating that when the amount of data is large enough, the probability of all directions of the image frequency domain energy spectrum is the same. From the perspective of probability, it means that when an image has not been collected, the frequency Domain energy angle orientations are equiprobable. From the nature of Fourier transform, it can be known that an edge of a time-domain image corresponds to a direction of frequency-domain energy. The closure of objects in the world we live in determines that the edge of the obtained image has multi-directionality, so even a single image It can also be regarded as a sampling set; the edges of the time domain in different directions correspond to multiple different directions of the power spectrum energy, and a set of data in each direction of these frequency domains can be regarded as a set of sampling values.

3、对上面得到的函数公式(12)进行处理:3. Process the function formula (12) obtained above:

zz &OverBar;&OverBar; == &Integral;&Integral; 00 22 &pi;&pi; rr -- &beta;&beta; &alpha;&alpha; (( &theta;&theta; )) d&theta;d&theta; &Integral;&Integral; 00 22 &pi;&pi; d&theta;d&theta;

= &Integral; 0 2 &pi; &alpha; ( &theta; ) d&theta; 2 &pi; r - &beta; (13) = &Integral; 0 2 &pi; &alpha; ( &theta; ) d&theta; 2 &pi; r - &beta; (13)

== ArAr -- &beta;&beta;

本发明将以上公式(12)积分后形式上仍具有Ar形式的性质,叫做此函数的圆周积分不变性。In the present invention, the above formula (12) still has the property of Ar form after integral, which is called the circular integral invariance of this function.

此处本发明提出假设:图像也具有这种离散化的圆周积分不变性即对图像通过公式(3)进行处理后仍能用Ar进行拟合。以下本发明从两点证明这种假设的正确性:Here, the present invention puts forward a hypothesis: the image also has this discretized circular integral invariance, that is, the image can still be fitted with Ar after being processed by formula (3). Following the present invention proves the correctness of this assumption from two points:

(i)平滑度(i) smoothness

本发明采用2670幅图,用8个不同场景64x64大小的图像进行了统计处理,证明对真实图像功率谱进行离散化的圆周积分后比未进行圆周积分后的功率谱的水平、垂直、45度角方向的数据更加平滑。下表1为图像平均功率谱曲线与其水平、垂直、45度角三个方向功率谱曲线平滑度的对比,用曲线梯度绝对值的累加值作为平滑度评判标准。The present invention adopts 2670 pictures, carries out statistical processing with images of 8 different scenes 64x64 in size, and proves that the horizontal, vertical and 45 degree of the power spectrum after discretizing the power spectrum of the real image is better than that of the power spectrum without circular integration. The data in the angular direction is smoother. Table 1 below shows the comparison between the image average power spectrum curve and the smoothness of the power spectrum curve in three directions: horizontal, vertical, and 45-degree angles. The cumulative value of the absolute value of the curve gradient is used as the smoothness evaluation standard.

表1 图像平均功率谱曲线与其水平、垂直和45度角方向平滑度对比Table 1 Comparison of image average power spectrum curve and its horizontal, vertical and 45-degree angle direction smoothness

从表1可以看出有2260/2670≈84.6%的测试图像平均功率谱曲线比水平和垂直两个方向的都平滑;有2026/2670≈75.9%的测试图像平均功率谱曲线比三个方向的都平滑,所以用平均功率谱曲线作拟合具有合理性。It can be seen from Table 1 that the average power spectrum curves of 2260/2670≈84.6% of test images are smoother than those in both horizontal and vertical directions; there are 2026/2670≈75.9% of test image average power spectrum curves in three directions. are smooth, so it is reasonable to use the average power spectrum curve for fitting.

(ii)拟合度(ii) Fit

本发明用相关系数的平方,即决定系数d2,计算了函数z=Ar与图像平均功率谱曲线的拟合程度,见[《计算方法》人民邮电出版社,徐士良编著2009年4月第一版];The present invention uses the square of the correlation coefficient, that is, the coefficient of determination d 2 , to calculate the fitting degree of the function z=Ar and the image average power spectrum curve, see ["Calculation Method"People's Posts and Telecommunications Publishing House, edited by Xu Shiliang April 2009 first edition];

Figure BDA0000127347280000081
(14)
Figure BDA0000127347280000081
(14)

上式中为拟合函数,yk为被拟合数据,

Figure BDA0000127347280000083
为被拟合数据的均值,式中d2越接近1说明拟合程度越好。下表2显示了公式(13)对2670幅图,64x64大小的8个不同场景图像的平均功率谱曲线拟合程度进行检测的结果。In the above formula is the fitting function, y k is the fitted data,
Figure BDA0000127347280000083
is the mean value of the fitted data, and the closer d 2 is to 1, the better the fitting degree. Table 2 below shows the result of the formula (13) testing the fitting degree of the average power spectrum curve of 8 different scene images of 2670 images and 64x64 in size.

表2 拟合程度检测结果Table 2 Fitting degree test results

 场景(幅) Scene (frame)   最好的拟合程度 best fit   最差的拟合程度 worst fit  海边(360) Seaside(360)   99.998% 99.998%   98.659% 98.659%  树林(310) Woods(310)   99.996% 99.996%   96.77% 96.77%  公路(260) Highway(260)   99.997% 99.997%   99.457% 99.457%  城市内(308) In the city(308)   99.982% 99.982%   98.636% 98.636%  山峰(374) Mountain(374)   99.996% 99.996%   91.336% 91.336%  乡村外景(410) Rural location(410)   99.995% 99.995%   98.641% 98.641%  街道(292) Street(292)   99.993% 99.993%   97.946% 97.946%  楼房(356) Building(356)   99.989% 99.989%   98.142% 98.142%

以上的证明与统计充分证明了步骤3对图像处理的合理性。The above proofs and statistics fully prove the rationality of step 3 for image processing.

附图说明 Description of drawings

图1本发明图像增强处理流程方框示意图;Fig. 1 is a schematic block diagram of an image enhancement process flow in the present invention;

图2本发明待增强散焦图像增强实验效果图;(a)为散焦图像,(b)为增强后图像,(c)为参考图像;Fig. 2 is the effect diagram of the defocused image enhancement experiment to be enhanced in the present invention; (a) is a defocused image, (b) is an enhanced image, and (c) is a reference image;

图3本发明待增强非正方形散焦图像增强实验效果;(a)为散焦图像,(b)为增强后图像,(c)为参考图像;Fig. 3 is the non-square defocused image enhancement experimental effect to be enhanced in the present invention; (a) is a defocused image, (b) is an enhanced image, and (c) is a reference image;

图4本发明图像超高频部分分段示意图;Fig. 4 is a segmented schematic diagram of the UHF part of the image of the present invention;

图5本发明运动模糊图像增强处理实验效果图;(a)为运动模糊源图,(b)为增强后图像,(c)为参考图像;Fig. 5 is the experimental rendering of the motion blur image enhancement processing of the present invention; (a) is the motion blur source image, (b) is the enhanced image, and (c) is the reference image;

图6本发明浓雾模糊图像增强处理实验效果图;(a)为浓雾模糊源图,(b)(d)为增强后图像,(c)(e)分别为(b)和(d)的参考图像;Fig. 6 is the experimental effect diagram of dense fog blurred image enhancement processing of the present invention; (a) is the dense fog blurred source image, (b) (d) is the enhanced image, (c) (e) is respectively (b) and (d) the reference image of

图7本发明使用扫描仪扫描出的模糊岩石图像增强实验效果图;(a)为模糊源图,(b)为增强后图像,(c)为参考图像;Fig. 7 is the fuzzy rock image enhancement experimental effect diagram scanned by the scanner in the present invention; (a) is a fuzzy source image, (b) is an enhanced image, and (c) is a reference image;

图8本发明增强处理图像平均功率谱曲线求解示意图;Fig. 8 is a schematic diagram of solving the average power spectrum curve of the enhanced processing image in the present invention;

图9本发明增强处理图像平均功率谱三维模型;(a)为图2中(a)的绿色分量的功率谱三维图,(b)为300幅城市内不同的图像平均功率谱的三维形状图,(c)为建模函数三维形状图;Fig. 9 is the three-dimensional model of the image average power spectrum enhanced by the present invention; (a) is the power spectrum three-dimensional graph of the green component in Fig. 2 (a), (b) is the three-dimensional shape graph of different image average power spectra in 300 cities , (c) is the three-dimensional shape graph of the modeling function;

图10本发明建模函数的切面形状图;(a)-(g)为建模函数的横切面公式(8)中a=b=1,z0=3,参数2/m=2/n=-1/s从1到4,其步长为0.5的形状图(h)为建模函数的纵切面形状图;The section shape figure of Fig. 10 modeling function of the present invention; (a)-(g) is a=b=1 in the cross-section formula (8) of modeling function, z 0 =3, parameter 2/m=2/n =-1/s is from 1 to 4, and its step size is the shape graph (h) of 0.5 is the longitudinal section shape graph of modeling function;

图11本发明图像频域频带划分方法示意图;(a)为频域低频、中频、高频、超高频四个频带划分示意图,(b)为中频带确定示意图,取整体拟合曲线曲率最大点作为中频的“重心点”,(c)为超高频带确定示意图;Fig. 11 is a schematic diagram of the image frequency domain frequency band division method of the present invention; (a) is a schematic diagram of the frequency domain low frequency, intermediate frequency, high frequency, and ultrahigh frequency band division; (b) is a schematic diagram of the determination of the intermediate frequency band, and the curvature of the overall fitting curve is the largest Point as the "center of gravity" of the intermediate frequency, (c) is a schematic diagram for determining the UHF band;

图12本发明图2中(a)绿色分量的平均功率谱曲线;The average power spectrum curve of (a) green component in Fig. 12 of the present invention Fig. 2;

图13为本发明采用308幅城市内不同图像功率谱求平均值后三维图的俯视图;从此图可以说明大量的清晰图像功率谱求平均值后的形状与星形线相似,即说明本发明的公式(9)星形线函数形状与Antonio在其文章中提出的大量城市场景图像集的平均功率谱的俯视图形状相似。Fig. 13 is the top view of the three-dimensional figure after the average value of different image power spectra in the city using 308 pieces of the present invention; from this figure, it can be illustrated that the shape of a large amount of clear image power spectra after average is similar to the star-shaped line, that is, the invention is described. Equation (9) star line function shape is similar to the top view shape of the average power spectrum of the large urban scene image set proposed by Antonio in his article.

具体实施方式 Detailed ways

下面结合附图并用实施例对本发明作进一步描述,所述实例只是对本发明方法的一个具体说明,而不应理解为对本发明保护内容的任何限制。The present invention will be further described below in conjunction with the accompanying drawings and examples. The example is only a specific illustration of the method of the present invention, and should not be construed as any limitation to the protection content of the present invention.

实施例1Example 1

图1是整个算法流程示意图,此处以一幅具有较小程度的散焦模糊彩色图像如图2中(a)图的例子说明整个处理过程,此时处理的图像为正方形图像,具体操作步骤如下:Figure 1 is a schematic diagram of the entire algorithm flow. Here, an example of a color image with a small degree of defocus blur is shown in Figure 2 (a) to illustrate the entire processing process. At this time, the processed image is a square image. The specific operation steps are as follows :

第一步:在计算机中用MATLAB软件读入要增强处理的模糊数字图像,如图2中(a)图,取出它的RGB三个分量的绿色分量,绿色分量取出后就成为一个二维矩阵。如果以256灰度图的形式显示绿色分量,则视觉上就是一幅灰度图像,此处处理彩色RGB图像,如果是灰度图则将灰度图作为彩色图像的绿色分量处理即可;Step 1: Use MATLAB software to read in the fuzzy digital image to be enhanced in the computer, as shown in Figure 2 (a), take out the green component of its RGB three components, and after the green component is taken out, it becomes a two-dimensional matrix . If the green component is displayed in the form of a 256 grayscale image, it is visually a grayscale image. Here, the color RGB image is processed. If it is a grayscale image, the grayscale image can be processed as the green component of the color image;

第二步:对模糊图像绿色分量进行离散傅里叶变换(FFT)再求解图像功率谱,即FFT变换后求每个矩阵数据的模方。此图像的绿色分量功率谱如图9中(a)图所示。对于单幅图像来说数据是复杂而无规则的,但是大量的图像的平均功率谱的形式如图9中(b)图所示,而本发明提出的建模函数公式(6)的三维形状为图9中(c)图所示,图10分别显示了此函数的一些横纵切面图;Step 2: Discrete Fourier transform (FFT) is performed on the green component of the fuzzy image and then the power spectrum of the image is solved, that is, the modulus of each matrix data is obtained after the FFT transformation. The power spectrum of the green component of this image is shown in Figure 9(a). For a single image, the data is complex and irregular, but the form of the average power spectrum of a large number of images is as shown in Figure 9 (b), and the three-dimensional shape of the modeling function formula (6) proposed by the present invention As shown in (c) figure among Fig. 9, Fig. 10 has shown some horizontal and vertical section diagrams of this function respectively;

第三步:求解图像绿色分量的平均功率谱曲线,具体方式为将第二步求解的功率谱矩阵用公式(3)求解

Figure BDA0000127347280000101
求解示意图如图8所示,功率谱曲线的求解结果如图12所示;The third step: solve the average power spectrum curve of the green component of the image, the specific way is to use the formula (3) to solve the power spectrum matrix solved in the second step
Figure BDA0000127347280000101
The solution schematic diagram is shown in Figure 8, and the solution result of the power spectrum curve is shown in Figure 12;

第四步:对模糊图像平均功率谱曲线通过函数z=Ar做整体数据拟合;具体的拟合方式为用第三步求解的关于变量r的函数通过MATLAB中数据拟合工具箱利用最小二乘法进行曲线拟合,求解参数A和β;Step 4: Fit the overall data to the average power spectrum curve of the fuzzy image through the function z=Ar ; the specific fitting method is the function about the variable r solved in the third step Through the data fitting toolbox in MATLAB, use the least square method to perform curve fitting, and solve the parameters A and β;

第五步:图像频带划分,将图像频域划分为低频、中频、高频和超高频4个频带:具体的分频方式为,用第四步求解的拟合曲线z通过计算曲率的最大点作为一个标志点,本发明中称此点为中频的“重心点”,中频与低频的分界可以手动选取一个数值,此处取中频“重心点”与零频的中心作为分界,中频“重心点”与高频的分界点距离为此点到与低频分界点长度的2到3倍,此外通过对几个不同场景大量图像平均功率谱曲线求平均后发现,在频域数据内切圆之外,曲线有个比较明显的凹陷,因此将频谱矩阵内切圆之外定义为超高频,超高频为频域方形矩阵的内切圆外面区域,分频示意图如图11所示;The fifth step: image frequency band division, divide the image frequency domain into 4 frequency bands of low frequency, intermediate frequency, high frequency and ultra high frequency: the specific frequency division method is, use the fitting curve z solved in the fourth step to calculate the maximum curvature As a mark point, this point is referred to as the "center of gravity" of the intermediate frequency in the present invention, and a numerical value can be manually selected for the boundary between the intermediate frequency and the low frequency. Here, the center of the intermediate frequency "center of gravity" and zero frequency is taken as the boundary, and the "center of gravity" of the intermediate frequency The distance between this point and the high-frequency boundary point is 2 to 3 times the length from this point to the low-frequency boundary point. In addition, after averaging the average power spectrum curves of a large number of images in several different scenes, it is found that between the inscribed circle of the frequency domain data In addition, the curve has a relatively obvious depression, so the outside of the inscribed circle of the spectrum matrix is defined as the ultra-high frequency, and the ultra-high frequency is the area outside the inscribed circle of the square matrix in the frequency domain. The frequency division diagram is shown in Figure 11;

第六步:读入参考图像图2中(c)图,取出参考图像的绿色分量;Step 6: read in the reference image (c) in Figure 2, and take out the green component of the reference image;

第七步:对要增强模糊图像图2中(a)和参考图像图2中(c)的绿色分量分别进行DCT变换,在DCT域根据第四步求解的频带划分的界限划分两幅图像的低频、中频、高频、超高频,求解DCT域的平均频谱曲线,求解方式利用公式(4),对两幅图像绿色分量平均频谱曲线在每个频带内用z=Ar+γ做分段数据拟合,此处图像大小512x512低频和中频数据量不大,可以不进行分段,由于高频数据段过长需要进行分段,此处高频部分数据分为四段进行拟合;Step 7: Carry out DCT transformation on the green components of (a) in Fig. 2 of the blurred image and (c) of the reference image Fig. 2 respectively, and divide the two images in the DCT domain according to the frequency band division boundary solved in the fourth step For low frequency, intermediate frequency, high frequency, and ultrahigh frequency, solve the average spectral curve in the DCT domain. The solution method uses formula (4), and use z=Ar +γ for the average spectral curve of the green component of the two images in each frequency band. Segmented data fitting. The image size here is 512x512. The amount of low-frequency and intermediate-frequency data is not large. Segmentation is not required. Since the high-frequency data segment is too long, it needs to be segmented. Here, the high-frequency part data is divided into four segments for fitting. ;

第八步:通过拟合数据调整绿色分量的频谱;Step 8: Adjust the spectrum of the green component by fitting the data;

①假设根据两幅图像这个颜色分量平均功率谱曲线的局部数据求解出两个拟合函数为

Figure BDA0000127347280000112
那么当r取一个图像范围内的定值r0时,两个函数求解出固定的函数值z10和z20;① Assume that the two fitting functions are solved according to the local data of the average power spectrum curve of the color component of the two images as and
Figure BDA0000127347280000112
Then when r takes a fixed value r 0 in the image range, the two functions solve the fixed function values z 10 and z 20 ;

②求出调整参数z10/z20② Calculate the adjustment parameter z 10 /z 20 ;

③对于模糊图像这个颜色分量的r0-1到r0的DCT频谱范围内用调整参数z10/z20放大频谱;③Amplify the spectrum with the adjustment parameter z 10 /z 20 within the DCT spectrum range from r 0 -1 to r 0 of the color component of the blurred image;

④变化r使其遍历整个图像DCT频域范围,利用①和②求解出的调整参数通过③的方式调整图像的DCT域频谱;④ Change r so that it traverses the DCT frequency domain range of the entire image, and use the adjustment parameters solved by ① and ② to adjust the DCT domain spectrum of the image by means of ③;

第九步:DCT反变换输出增强处理后图像绿色分量;Step 9: DCT inverse transform output enhances the green component of the processed image;

第十步:对于彩色图像的红色、蓝色两个颜色分量进行DCT变换,转到第八步,通过绿色分量得到调整系数对这两个分量进行频谱调整;Step 10: Carry out DCT transformation for the red and blue color components of the color image, go to the eighth step, and adjust the frequency spectrum of these two components by obtaining the adjustment coefficient through the green component;

第十一步:红色和蓝色分量进行DCT反变换得到时域的分量矩阵值;Step 11: The red and blue components are inversely transformed by DCT to obtain the component matrix values in the time domain;

第十二步:将得到的三个颜色分量合成为彩色图像输出,即得到处理后的增强图像图2中(b)。Step 12: Synthesize the obtained three color components into a color image output, that is, obtain the processed enhanced image (b) in FIG. 2 .

用实施例1同样的处理步骤对运动模糊图像增强处理,其实验效果图如图5中(b)所示,其中图5中(c)为参考图;可以比较图5中运动模糊源图(a)和增强后图像(b)的效果图。With the same processing steps of embodiment 1, the motion blur image is enhanced, and its experimental effect figure is as shown in (b) in Figure 5, wherein (c) in Figure 5 is a reference figure; it can be compared to the motion blur source figure in Figure 5 ( a) and renderings of the enhanced image (b).

同样,对浓雾模糊图像增强处理实验效果如图6中(b)图和(d)图所示,其中6中(c)和(e)分别是(b)和(d)的参考图;可以比较图6中浓雾模糊源图(a)和增强后图像(b)和(d)的效果图。Similarly, the experimental effect of image enhancement processing on dense fog and blur is shown in Figure 6 (b) and (d), where (c) and (e) in Figure 6 are the reference images of (b) and (d) respectively; You can compare the renderings of the dense fog blurred source image (a) and the enhanced images (b) and (d) in Figure 6.

同样对模糊岩石图像作增强处理,用扫描仪扫描出处理后的增强效果图如图7中(b)图所示,其中图7中(c)为参考图,可以比较增强前模糊源图(a)和增强后图像(b)的效果图。Similarly, the fuzzy rock image is enhanced, and the enhanced image after processing is scanned by a scanner, as shown in (b) in Figure 7, where (c) in Figure 7 is a reference image, which can be compared with the blurred source image before enhancement ( a) and renderings of the enhanced image (b).

实施例2Example 2

此处以一幅512x300大小的非正方形彩色数字图像图3(a)所示,采用本发明处理方法进行处理:Shown in Fig. 3 (a) with the non-square color digital image of a 512x300 size here, adopt processing method of the present invention to process:

第一步:在计算机中用MATLAB软件读入要增强的模糊数字图像,如图3中(a)图,取出它的RGB三个分量的绿色分量;The first step: read in the fuzzy digital image to be enhanced with MATLAB software in the computer, as shown in Figure 3 (a), take out the green component of its RGB three components;

第二步:对模糊图像绿色分量进行离散傅里叶变换(FFT)并求解图像功率谱,具体为先对其进行FFT变换,再求解功率谱;Step 2: Discrete Fourier Transform (FFT) is performed on the green component of the fuzzy image and the power spectrum of the image is solved. Specifically, the FFT transformation is performed on it first, and then the power spectrum is solved;

第三步:求解图像绿色分量的平均功率谱曲线,具体方式为将第二步求解的功率谱矩阵用公式(3)求解

Figure BDA0000127347280000121
The third step: solve the average power spectrum curve of the green component of the image, the specific way is to use the formula (3) to solve the power spectrum matrix solved in the second step
Figure BDA0000127347280000121

第四步:对模糊图像平均功率谱曲线通过函数z=Ar做整体数据拟合;具体的拟合方式为用第三步求解的关于变量r的函数

Figure BDA0000127347280000122
通过MATLAB中数据拟合工具箱利用最小二乘法进行曲线拟合,求解参数A和β;Step 4: Fit the overall data to the average power spectrum curve of the fuzzy image through the function z=Ar ; the specific fitting method is the function about the variable r solved in the third step
Figure BDA0000127347280000122
Through the data fitting toolbox in MATLAB, use the least square method to perform curve fitting, and solve the parameters A and β;

第五步:图像频带划分,将图像频域分为低频、中频、高频和超高频4个频带,具体的分频方式为,用第四步求解的拟合曲线z通过计算曲率的最大点作为一个标志点,本实施中称此点为中频的“重心点”,中频与低频的分界可以手动选取一个数值,此处取中频“重心点”与零频的中心作为分界,中频“重心点”与高频的分界点距离为此点到与低频分界点长度的2到3倍,超高频为频域矩形矩阵数据短边内切圆外部区域;The fifth step: image frequency band division, the image frequency domain is divided into 4 frequency bands of low frequency, intermediate frequency, high frequency and ultra high frequency. The specific frequency division method is to use the fitting curve z solved in the fourth step to calculate the maximum curvature As a mark point, this point is called the "center of gravity" of the intermediate frequency in this implementation. A value can be manually selected for the boundary between the intermediate frequency and the low frequency. The distance between this point and the high-frequency boundary point is 2 to 3 times the length from this point to the low-frequency boundary point, and the ultra-high frequency is the outer area of the short-side inscribed circle of the rectangular matrix data in the frequency domain;

第六步:读入参考图像图3中(c)图,取出参考图像的绿色分量;The sixth step: read in the reference image (c) in Figure 3, and take out the green component of the reference image;

第七步:对要增强模糊图像图3中(a)和参考图像图3中(c)的绿色分量分别进行DCT变换,在DCT域根据第四步求解的频带划分的界限划分两幅图像的低频、中频、高频、超高频,求解DCT域的平均频谱曲线,求解方式利用公式(4),对两幅图像绿色分量平均频谱曲线在每个频带内用z=Ar+γ做分段数据拟合,此处图像大小300x512像素点,低频和中频数据量不大,可以不进行分段,由于高频数据段过长需要进行分段,此处高频部分数据分为四段进行拟合,此外由于非正方形图像的特殊性,超高频分成两段,短边内切圆到长边内切圆为一段,长边内切圆以外为一段,具体如图4所示;Step 7: Carry out DCT transformation on the green components of (a) in Fig. 3 of the blurred image and (c) of the reference image in Fig. 3 respectively, and divide the two images in the DCT domain according to the frequency band division boundary solved in the fourth step For low frequency, intermediate frequency, high frequency, and ultrahigh frequency, solve the average spectral curve in the DCT domain. The solution method uses formula (4), and use z=Ar +γ for the average spectral curve of the green component of the two images in each frequency band. Segmented data fitting, the image size here is 300x512 pixels, the amount of low-frequency and intermediate-frequency data is not large, and segmentation is not required. Since the high-frequency data segment is too long, it needs to be segmented. Here, the high-frequency part of the data is divided into four segments. Fitting, in addition, due to the particularity of the non-square image, the UHF is divided into two sections, one section from the inscribed circle on the short side to the inscribed circle on the long side, and one section outside the inscribed circle on the long side, as shown in Figure 4;

第八步:通过拟合数据调整绿色分量的频谱;Step 8: Adjust the spectrum of the green component by fitting the data;

①假设根据两幅图像这个颜色分量平均功率谱曲线的局部数据求解出两个拟合函数为

Figure BDA0000127347280000123
Figure BDA0000127347280000124
那么当r取一个图像范围内的定值r0时,两个函数求解出固定的函数值z10和z20;① Assume that the two fitting functions are solved according to the local data of the average power spectrum curve of the color component of the two images as
Figure BDA0000127347280000123
and
Figure BDA0000127347280000124
Then when r takes a fixed value r 0 in the image range, the two functions solve the fixed function values z 10 and z 20 ;

②求出调整参数z10/z20② Calculate the adjustment parameter z 10 /z 20 ;

③对于模糊图像这个颜色分量的r0-1到r0的DCT频谱范围内用调整参数z10/z20放大频谱;③Amplify the spectrum with the adjustment parameter z 10 /z 20 within the DCT spectrum range from r 0 -1 to r 0 of the color component of the blurred image;

④变化r使其遍历整个图像DCT频域范围,利用①和②求解出的调整参数通过③的方式调整图像的DCT域频谱;④ Change r so that it traverses the DCT frequency domain range of the entire image, and use the adjustment parameters solved by ① and ② to adjust the DCT domain spectrum of the image by means of ③;

第九步:进行DCT反变换输出增强处理后图像绿色分量;Step 9: Carry out DCT inverse transformation output enhancement processing image green component;

第十步:对彩色图像的红色、蓝色两个颜色分量进行DCT变换,转到第八步,通过绿色分量得到调整系数对这两个分量进行频谱调整;Step 10: Carry out DCT transformation to the red and blue color components of the color image, go to the eighth step, and adjust the frequency spectrum of these two components by obtaining the adjustment coefficient through the green component;

第十一步:红色和蓝色分量进行DCT反变换得到时域的分量矩阵值;Step 11: The red and blue components are inversely transformed by DCT to obtain the component matrix values in the time domain;

第十二步:将得到的三个颜色分量合成为彩色图像输出,即得到处理后的增强图像图3中(b)。Step 12: Synthesize the obtained three color components into a color image output, that is, obtain the processed enhanced image (b) in FIG. 3 .

本发明一种强适用性图像增强的方法,在第七步中的分段数据拟合,实例1的高频部分数据长度为500,考虑到计算复杂度和拟合精确度,平均分为4段进行拟合,每段数据量在100左右,实例2中高频部分数据长度250,同样考虑计算复杂度和拟合精确度,平均分为3段,每段数据量也在100左右。因此高频分段拟合时,约100个数据作为分段长度。A method for image enhancement with strong applicability of the present invention, in the segmental data fitting in the seventh step, the data length of the high-frequency part of Example 1 is 500, and the average is 4 in consideration of the computational complexity and fitting accuracy The data size of each segment is about 100, and the data length of the high-frequency part in Example 2 is 250. Also considering the computational complexity and fitting accuracy, it is divided into 3 segments on average, and the data amount of each segment is also about 100. Therefore, when fitting high-frequency segments, about 100 data are used as the segment length.

Claims (8)

1.一种基于功率谱分析的强适用性图像增强方法,其特征在于包括以下步骤:1. a strong applicability image enhancement method based on power spectrum analysis, is characterized in that comprising the following steps: 步骤1:给定一幅待增强图像,先选定一幅参考图像,该参考图像满足两个条件:第一,与模糊图像尺寸相同;第二,其细节比较丰富或者与模糊源图取自于同一场景的清晰图像;Step 1: Given an image to be enhanced, first select a reference image that satisfies two conditions: first, the size of the reference image is the same as the blurred image; Clear images of the same scene; 步骤2:对步骤1给定的待增强图像进行傅里叶变换并求解出图像功率谱,对于数字图像功率谱求解即是进行傅里叶变换后求每个矩阵数据的模方;Step 2: Perform Fourier transform on the image to be enhanced given in step 1 and solve the image power spectrum. For the solution of the digital image power spectrum, it is to find the modulus of each matrix data after Fourier transform; 步骤3:求解步骤2得到的图像功率谱的平均功率谱曲线,并通过下面拟合函数公式(2)进行数据拟合:Step 3: Solve the average power spectrum curve of the image power spectrum obtained in step 2, and perform data fitting by the following fitting function formula (2): z=Ar                (2)z=Ar (2) 公式(2)中r是自变量,z是因变量,A和β是要求解的拟合参数;In formula (2), r is an independent variable, z is a dependent variable, and A and β are fitting parameters to be solved; 步骤4:通过对步骤3求解的拟合曲线进行图像频带划分,此处将图像频带划分为低频、中频、高频和超高频四个频带;Step 4: divide the image frequency band by the fitting curve solved in step 3, here divide the image frequency band into four frequency bands of low frequency, intermediate frequency, high frequency and ultrahigh frequency; 步骤5:对要增强图像和参考图像同时作离散余弦变换(DCT),并对DCT域平均频谱曲线进行局部数据拟合;Step 5: Simultaneously perform discrete cosine transform (DCT) on the image to be enhanced and the reference image, and perform local data fitting on the average spectral curve in the DCT domain; 步骤6:在步骤4划分的每个频带内求解频谱调整系数;Step 6: Solve the spectrum adjustment coefficient in each frequency band divided in step 4; 步骤7:在步骤4划分的每个频带内调整模糊图像DCT域频谱;Step 7: Adjust the DCT domain spectrum of the fuzzy image in each frequency band divided in step 4; 步骤8:对步骤7调整后的DCT域频谱进行DCT反变换,即能求解出增强后的时域清晰图像;Step 8: Perform DCT inverse transform on the adjusted DCT domain frequency spectrum in step 7, and the enhanced time domain clear image can be obtained; 所述要增强的图像为正方形数字图像,或为非正方形数字图像;所述要增强的图像为灰度图像,或为彩色图像。The image to be enhanced is a square digital image, or a non-square digital image; the image to be enhanced is a grayscale image, or a color image. 2.根据权利要求1所述的基于功率谱分析的强适用性图像增强方法,其特征在于步骤3所述的功率谱曲线求解方式为:数字图像的时域函数形式表示为f(x,y),其傅里叶频域形式为F(u,v);对数字图像功率谱曲线的求解方式由以下公式(3)表示:2. the strong applicability image enhancement method based on power spectrum analysis according to claim 1, it is characterized in that the power spectrum curve solution mode described in step 3 is: the time domain function form of digital image is expressed as f(x, y ), its Fourier frequency domain form is F(u, v); the way to solve the digital image power spectrum curve is expressed by the following formula (3): | F ( r ) | 2 &OverBar; = &Sigma; u &Sigma; v | F ( u , v ) | 2 N (3) | f ( r ) | 2 &OverBar; = &Sigma; u &Sigma; v | f ( u , v ) | 2 N (3) 式中
Figure FDA0000127347270000012
是一个关于r的函数,变量r为点(u,v)到功率谱中心的距离,N为离中心点距离为r的频域点的总数。
In the formula
Figure FDA0000127347270000012
is a function of r, the variable r is the distance from the point (u, v) to the center of the power spectrum, and N is the total number of frequency domain points whose distance from the center point is r.
3.根据权利要求1所述的基于功率谱分析的强适用性图像增强方法,其特征在于步骤4所述的图像频带划分,其中,中频和超高频的频带划分方法如下:3. the strong applicability image enhancement method based on power spectrum analysis according to claim 1, is characterized in that the image frequency band division described in step 4, wherein, the frequency band division method of intermediate frequency and ultrahigh frequency is as follows: 所述中频部分“重心点”为步骤3求解的图像平均功率谱曲线整体拟合曲线曲率最大的点;The "centroid point" of the intermediate frequency part is the point with the largest curvature of the overall fitting curve of the image average power spectrum curve solved in step 3; 所述图像为正方形数字图像时,其超高频部分为图像功率谱矩阵数据的内切圆的外部数据;所述图像为非正方形数字图像时,其超高频部分则为图像功率谱矩阵数据的短边内切圆的外部数据。When the image is a square digital image, its UHF part is the external data of the inscribed circle of the image power spectrum matrix data; when the image is a non-square digital image, its UHF part is the image power spectrum matrix data The outer data of the short side inscribed circle. 4.根据权利要求1所述的基于功率谱分析的强适用性图像增强方法,其特征在于步骤5所述的平均频谱曲线求解方式:将数字图像的时域函数形式表示为f(x,y),其DCT域频谱形式为G(u,v);对图像平均频谱曲线的求解方式由以下公式(4)表示:4. the strong applicability image enhancement method based on power spectrum analysis according to claim 1, is characterized in that the average spectrum curve solution mode described in step 5: the time domain function form of digital image is represented as f(x, y ), its DCT domain spectrum form is G(u, v); the solution to the image average spectrum curve is represented by the following formula (4): G ( r ) = &Sigma; u &Sigma; v | G ( u , v ) | N (4) G ( r ) = &Sigma; u &Sigma; v | G ( u , v ) | N (4) 式中G(r)是一个关于r的函数,变量r为点(u,v)到DCT域频谱中心的距离,N为离频谱中心距离为r的频域点的总数。In the formula, G(r) is a function about r, the variable r is the distance from the point (u, v) to the center of the DCT domain spectrum, and N is the total number of frequency domain points whose distance from the spectrum center is r. 5.根据权利要求1所述的基于功率谱分析的强适用性图像增强方法,其特征在于步骤5所述的平均频谱曲线拟合曲线的求解:是在步骤4划分的图像频带内作局部数据拟合,由于高频频带部分较长,带内还需分段,具体根据图像大小分段进行拟合,拟合函数公式(2)变为:5. the strong applicability image enhancement method based on power spectrum analysis according to claim 1, is characterized in that the solution of the average spectrum curve fitting curve described in step 5: be to make local data in the image frequency band that step 4 divides Fitting, since the high-frequency band part is long, the band needs to be segmented, and the fitting is performed in segments according to the size of the image, and the fitting function formula (2) becomes: z=Ar+γ                (5)z=Ar +γ (5) 以上拟合公式中r是自变量,z是因变量,A、β和γ是要求解的拟合参数。In the above fitting formula, r is the independent variable, z is the dependent variable, and A, β and γ are the fitting parameters to be solved. 6.根据权利要求1所述的基于功率谱分析的强适用性图像增强方法,其特征在于步骤6所述的调整系数求解:是通过局部数据拟合得到两个图像的不同拟合函数zblur和zref,这两个函数的归一化比值即为调整系数函数,由以下公式(6)表示:6. The strong applicability image enhancement method based on power spectrum analysis according to claim 1, characterized in that the adjustment coefficient solution described in step 6: obtain the different fitting functions z blur of two images through local data fitting and z ref , the normalized ratio of these two functions is the adjustment coefficient function, expressed by the following formula (6): z rate = z ref / z ref max z blur / z blur max (6) z rate = z ref / z ref max z blurred / z blurred max (6) 7.根据权利要求1所述的基于功率谱分析的强适用性图像增强方法,其特征在于步骤7所述的模糊图像DCT域频谱调整方法:以r为变量,以1为单位进行频谱调整,调整系数即为步骤6中求解出的关于r的函数zrate在r取固定整数rg时的值zrate(rg);对模糊图像的DCT域频谱进行增强:具体用求解的zrate(rg)增强DCT域rg-1<r≤rg的频谱,且在整个频谱域范围内进行调整。7. The strong applicability image enhancement method based on power spectrum analysis according to claim 1, characterized in that the fuzzy image DCT domain spectrum adjustment method described in step 7: take r as a variable, and take 1 as a unit to carry out spectrum adjustment, The adjustment coefficient is the value z rate (r g ) of the function z rate about r solved in step 6 when r takes a fixed integer r g ; to enhance the DCT domain spectrum of the fuzzy image: specifically use the solved z rate ( r g ) Enhance the frequency spectrum of the DCT domain r g -1<r≤r g , and adjust in the entire frequency spectrum domain. 8.根据权利要求1-7任一项所述的基于功率谱分析的强适用性图像增强方法,其特征在于是对灰度图像的处理过程,若是对彩色图像进行处理,则将彩色图像的绿色分量按上面所述步骤1-8进行处理,然后将彩色图像的红、蓝两个颜色分量不再求解调整系数,而是利用步骤6求解出来的绿色分量调整系数,从步骤7开始对红、蓝两个颜色分量进行调整即可。8. according to the strong applicability image enhancement method based on power spectrum analysis described in any one of claim 1-7, it is characterized in that it is the processing procedure to grayscale image, if color image is processed, then the color image The green component is processed according to the above-mentioned steps 1-8, and then the red and blue color components of the color image are no longer solved for the adjustment coefficient, but the green component adjustment coefficient solved in step 6 is used to adjust the red color component from step 7. , blue two color components can be adjusted.
CN201110455409.9A 2011-12-30 2011-12-30 A Strong Applicability Image Enhancement Method Based on Power Spectrum Analysis Expired - Fee Related CN102542539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110455409.9A CN102542539B (en) 2011-12-30 2011-12-30 A Strong Applicability Image Enhancement Method Based on Power Spectrum Analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110455409.9A CN102542539B (en) 2011-12-30 2011-12-30 A Strong Applicability Image Enhancement Method Based on Power Spectrum Analysis

Publications (2)

Publication Number Publication Date
CN102542539A true CN102542539A (en) 2012-07-04
CN102542539B CN102542539B (en) 2014-01-08

Family

ID=46349364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110455409.9A Expired - Fee Related CN102542539B (en) 2011-12-30 2011-12-30 A Strong Applicability Image Enhancement Method Based on Power Spectrum Analysis

Country Status (1)

Country Link
CN (1) CN102542539B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104732503A (en) * 2013-12-24 2015-06-24 中国科学院深圳先进技术研究院 Image defogging and enhancement method and device
CN107561375A (en) * 2017-08-15 2018-01-09 南方电网科学研究院有限责任公司 Method and device for calculating space charge distribution of liquid medium
CN110288560A (en) * 2018-03-16 2019-09-27 北京三快在线科技有限公司 A kind of image fuzzy detection method and device
CN110307804A (en) * 2019-07-04 2019-10-08 江南大学 A Quantitative Evaluation Method of Curve/Surface Quality
CN114463198A (en) * 2021-12-30 2022-05-10 南京诺源医疗器械有限公司 Method for improving fluorescent imaging definition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5233517A (en) * 1990-04-30 1993-08-03 Jindra Lawrence F Early glaucoma detection by Fourier transform analysis of digitized eye fundus images
US5926555A (en) * 1994-10-20 1999-07-20 Calspan Corporation Fingerprint identification system
CN101872425A (en) * 2010-07-29 2010-10-27 哈尔滨工业大学 Obtaining Image Features and Measuring Corresponding Physical Parameters Based on Empirical Mode Decomposition

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5233517A (en) * 1990-04-30 1993-08-03 Jindra Lawrence F Early glaucoma detection by Fourier transform analysis of digitized eye fundus images
US5926555A (en) * 1994-10-20 1999-07-20 Calspan Corporation Fingerprint identification system
CN101872425A (en) * 2010-07-29 2010-10-27 哈尔滨工业大学 Obtaining Image Features and Measuring Corresponding Physical Parameters Based on Empirical Mode Decomposition

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
滕奇志 等: "基于粒子群优化的岩石薄片三维图像重建", 《电子与信息学报》 *
赵远昊 等: "两种改进的图像复原算法在COSM中的应用", 《计算机应用研究》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104732503A (en) * 2013-12-24 2015-06-24 中国科学院深圳先进技术研究院 Image defogging and enhancement method and device
CN104732503B (en) * 2013-12-24 2017-10-24 中国科学院深圳先进技术研究院 Image defogging Enhancement Method and device
CN107561375A (en) * 2017-08-15 2018-01-09 南方电网科学研究院有限责任公司 Method and device for calculating space charge distribution of liquid medium
CN110288560A (en) * 2018-03-16 2019-09-27 北京三快在线科技有限公司 A kind of image fuzzy detection method and device
CN110307804A (en) * 2019-07-04 2019-10-08 江南大学 A Quantitative Evaluation Method of Curve/Surface Quality
CN114463198A (en) * 2021-12-30 2022-05-10 南京诺源医疗器械有限公司 Method for improving fluorescent imaging definition

Also Published As

Publication number Publication date
CN102542539B (en) 2014-01-08

Similar Documents

Publication Publication Date Title
Gao et al. Sand-dust image restoration based on reversing the blue channel prior
CN106296612B (en) A graded surveillance video sharpening system and method for image quality evaluation and weather condition guidance
CN101783012B (en) An Automatic Image Dehazing Method Based on Dark Channel Color
CN102063706B (en) Rapid defogging method
CN103955905B (en) Based on the single image to the fog method that fast wavelet transform and weighted image merge
CN103345733B (en) Based on the quick enhancement method of low-illumination image improving dark channel prior
CN111476725A (en) Image defogging enhancement algorithm based on gradient domain oriented filtering and multi-scale Retinex theory
CN103942758A (en) Dark channel prior image dehazing method based on multiscale fusion
CN108765336A (en) Image defogging method based on dark bright primary colors priori with auto-adaptive parameter optimization
CN107563397A (en) Cloud cluster method for calculation motion vector in a kind of satellite cloud picture
CN106940882A (en) A kind of transformer substation video image clarification method for meeting human-eye visual characteristic
CN104299192A (en) Single image defogging method based on atmosphere light scattering physical model
CN109064418A (en) A kind of Images Corrupted by Non-uniform Noise denoising method based on non-local mean
CN112288668A (en) Infrared and visible light image fusion method based on depth unsupervised dense convolution network
CN101770639A (en) Enhancement method of low-illumination image
CN102999890B (en) Based on the image light dynamic changes of strength bearing calibration of environmental factor
CN102542539A (en) Strong-applicability image enhancement method based on power spectrum analysis
CN108230282A (en) A kind of multi-focus image fusing method and system based on AGF
CN105931208A (en) Physical model-based low-illuminance image enhancement algorithm
CN110223240A (en) Image defogging method, system and storage medium based on color decaying priori
CN114663352A (en) High-precision detection method and system for defects of power transmission line and storage medium
CN112419163B (en) Single image weak supervision defogging method based on priori knowledge and deep learning
CN105389820A (en) Infrared image definition evaluating method based on cepstrum
CN108305225A (en) Traffic monitoring image rapid defogging method based on dark channel prior
CN106709876B (en) Optical remote sensing image defogging method based on dark image element principle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140108

CF01 Termination of patent right due to non-payment of annual fee