CN107507135A - Image reconstructing method based on coding aperture and target - Google Patents
Image reconstructing method based on coding aperture and target Download PDFInfo
- Publication number
- CN107507135A CN107507135A CN201710562416.6A CN201710562416A CN107507135A CN 107507135 A CN107507135 A CN 107507135A CN 201710562416 A CN201710562416 A CN 201710562416A CN 107507135 A CN107507135 A CN 107507135A
- Authority
- CN
- China
- Prior art keywords
- mrow
- image
- msup
- msub
- msubsup
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000013461 design Methods 0.000 claims abstract description 24
- 239000011159 matrix material Substances 0.000 claims description 32
- 238000011156 evaluation Methods 0.000 claims description 16
- 230000002068 genetic effect Effects 0.000 claims description 14
- 238000003384 imaging method Methods 0.000 claims description 12
- 238000001228 spectrum Methods 0.000 claims description 12
- 238000005457 optimization Methods 0.000 claims description 11
- 230000003595 spectral effect Effects 0.000 claims description 10
- 238000005070 sampling Methods 0.000 claims description 6
- 238000011478 gradient descent method Methods 0.000 claims description 4
- 238000009499 grossing Methods 0.000 claims description 4
- 125000001475 halogen functional group Chemical group 0.000 claims description 4
- 238000013507 mapping Methods 0.000 claims description 4
- 238000013178 mathematical model Methods 0.000 claims description 4
- 238000005259 measurement Methods 0.000 claims description 4
- 230000005855 radiation Effects 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 4
- 230000017105 transposition Effects 0.000 claims description 4
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 claims description 2
- 238000009795 derivation Methods 0.000 abstract 1
- 238000011084 recovery Methods 0.000 abstract 1
- 230000006870 function Effects 0.000 description 72
- 230000008569 process Effects 0.000 description 10
- 238000012804 iterative process Methods 0.000 description 6
- 238000011960 computer-aided design Methods 0.000 description 4
- 229910001220 stainless steel Inorganic materials 0.000 description 4
- 239000010935 stainless steel Substances 0.000 description 4
- 238000011480 coordinate descent method Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000035772 mutation Effects 0.000 description 2
- 238000012634 optical imaging Methods 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000013519 translation Methods 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000009792 diffusion process Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002986 genetic algorithm method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012887 quadratic function Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Chemical compound O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/73—Deblurring; Sharpening
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/80—Geometric correction
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明属于计算机视觉技术领域,具体而言,主要涉及数字图像处理以及计算摄像学领域,是基于编码光圈和靶标设计的图像重构方法。The invention belongs to the technical field of computer vision, specifically, mainly relates to the fields of digital image processing and computational photography, and is an image reconstruction method based on coded aperture and target design.
背景技术Background technique
现在社会对图像成像质量的要求越来越高。相比较可见光成像系统,成像系统凭借其较强的穿透烟雾和水汽的能力,在国民经济和军事国防等领域得到了越来越广泛的应用。在空间光学成像中,由于光学系统自身的衍射和像差、大气扰动、空间相机与拍摄场景的相对复合运动、相机离焦等因素影响,相机获得的图像会存在模糊现象,影响图像中感兴趣目标的判读。随着成像质量需求的提高,图像去模糊技术逐渐成为光学成像领域的研究热点,因此图像去模糊中准确的估计点扩散函数是进行图像重构的关键步骤。Nowadays, society has higher and higher requirements for image quality. Compared with visible light imaging systems, imaging systems have been more and more widely used in the fields of national economy, military defense and other fields due to their strong ability to penetrate smoke and water vapor. In space optical imaging, due to factors such as diffraction and aberration of the optical system itself, atmospheric turbulence, relative compound motion between the space camera and the shooting scene, and camera defocus, the image obtained by the camera will be blurred, affecting the image of interest. Interpretation of the target. With the improvement of imaging quality requirements, image deblurring technology has gradually become a research hotspot in the field of optical imaging. Therefore, accurate estimation of point spread function in image deblurring is a key step in image reconstruction.
针对图像复原问题,传统的方法如Wiener滤波、逆滤波、有约束的最小二乘滤波等,对噪声及点扩散函数的扰动较为敏感。为了克服逆问题求解的病态性,出现了基于正则化和偏微分方程的复原方法。此类方法对图像进行特征建模,应用先验知识来对逆问题进行正则化约束,进而求出稳定的全局最小解。最早出现的正则化方法,如Tikhonov正则化方法,采用L2范数的方式来对图像进行建模,他们认为图像的像素值分布满足二次函数,这类方法虽然能够较好地去除噪声但是易损失图像细节。针对迭代算法复杂度高、运算速度慢的问题。但是,上述方法中涉及了多而复杂的参数,并且都是根据经验值来设定,并没有针对图像的结构和特性对参数进行自适应选取。不同的图像恢复仅仅采用同一种参数设置,必然会导致某些图像不能很好的恢复,或者不能达到最优解。为了解决图像去模糊问题中点扩散函数估计不准确的问题,更好的实现图像复原,本发明借助编码光圈,自行设计靶标进行点扩散函数的估计,同时提出了一种改进的图像重构求解模型。For the problem of image restoration, traditional methods such as Wiener filtering, inverse filtering, constrained least square filtering, etc., are more sensitive to noise and disturbance of point spread function. In order to overcome the ill-conditioned nature of inverse problem solving, restoration methods based on regularization and partial differential equations have emerged. These methods model the features of the image, apply prior knowledge to regularize the inverse problem, and then find a stable global minimum solution. The earliest regularization method, such as the Tikhonov regularization method, uses the L2 norm to model the image. They believe that the pixel value distribution of the image satisfies a quadratic function. Although this type of method can remove noise well, it cannot Easy to lose image detail. Aiming at the problem of high complexity and slow operation speed of iterative algorithm. However, many and complex parameters are involved in the above method, and they are all set according to empirical values, and the parameters are not adaptively selected according to the structure and characteristics of the image. Different image restorations only use the same parameter setting, which will inevitably lead to some images not being restored well, or the optimal solution cannot be achieved. In order to solve the problem of inaccurate point spread function estimation in the image deblurring problem, and to better realize image restoration, the present invention uses the coding aperture to design the target to estimate the point spread function, and proposes an improved image reconstruction solution Model.
发明内容Contents of the invention
本发明旨在克服现有技术的不足,提供了一种改进的非盲点扩散函数估计方法,提升重构后的图像质量。为达到上述目的,本发明采取的技术方案是,基于编码光圈和靶标设计的图像重构方法,包括下列步骤:设计编码光圈并置于相机镜头近探测器末端;设计靶标并置于图像光源的光筒前端处;通过模糊核求解算法模型得到图像的点扩散函数;采用L2范数作为图像正则化约束,并根据前面求解的点扩散函数来对模糊图像进行重构复原。The invention aims at overcoming the deficiencies of the prior art, and provides an improved non-blind spot spread function estimation method to improve the quality of the reconstructed image. In order to achieve the above object, the technical solution adopted by the present invention is that the image reconstruction method based on the design of the coded aperture and the target comprises the following steps: designing the coded aperture and placing it at the end of the camera lens near the detector; designing the target and placing it at the end of the image light source At the front end of the light tube; the point spread function of the image is obtained through the fuzzy kernel solution algorithm model; the L 2 norm is used as the image regularization constraint, and the blurred image is reconstructed and restored according to the previously solved point spread function.
设计编码光圈并置于相机镜头近探测器末端;设计靶标并置于图像光源的光筒前端处,具体步骤是:Design the coding aperture and place it near the end of the detector of the camera lens; design the target and place it at the front end of the light tube of the image light source. The specific steps are:
1)图像模糊的数学模型表示成下面的公式:1) The mathematical model of image blur is expressed as the following formula:
f=h*u+n (1)f=h*u+n (1)
其中f是模糊图像,u是原始图像,h是点扩散函数PSF,n是高斯白噪声,*代表卷积,若将h表示成矩阵形式H,则公式表示为:Where f is the blurred image, u is the original image, h is the point spread function PSF, n is Gaussian white noise, and * represents convolution. If h is expressed in matrix form H, the formula is expressed as:
f=SHu+n(2)f=SHu+n(2)
其中,S是相机采样函数的矩阵形式,即为相机自身的下采样矩阵,离焦去模糊问题就是通过解一个最大后验概率问题来估计原始图像u,使用能量函数E的最小值解决最大后验概率问题以实现对编码光圈的性能优化:Among them, S is the matrix form of the camera sampling function, which is the downsampling matrix of the camera itself. The defocus deblurring problem is to estimate the original image u by solving a maximum posterior probability problem, and use the minimum value of the energy function E to solve the maximum posterior probability problem. Experimental probability problem to achieve performance optimization for coded apertures:
其中,表示求能量函数的最小值,||·||2表示L2范数,代表图像先验的噪信比,表示为其中σ表示高斯白噪声的标准差,Aξ表示多张自然图像的平均功率谱,μ(u)是原始图像u在图像空间的一个测量,根据自然图像的1/f法则,多张自然图像的平均功率谱表达式为:in, Indicates the minimum value of the energy function, ||·|| 2 indicates the L 2 norm, Represents the noise-to-signal ratio of the image prior, expressed as where σ represents the standard deviation of Gaussian white noise, A ξ represents the average power spectrum of multiple natural images, μ(u) is a measurement of the original image u in the image space, according to the 1/f rule of natural images, multiple natural images The average power spectrum expression of is:
u是原始图像,ξ为频率,u(ξ)为u在频率谱上的表示形式。构建编码光圈的性能评价标准:u is the original image, ξ is the frequency, and u(ξ) is the representation of u on the frequency spectrum . Performance evaluation criteria for constructing coded apertures:
其中Hξ为频率ξ对应的点扩散函数的矩阵形式,对每一个频率ξ,反映了噪声被放大的度,最佳的光圈拥有最小的R(H),也意味着图像重构恢复结果会越准确;使用遗传算法优化获得低分辨率的编码光圈,并使用梯度下降法提高编码光圈的分辨率,之后将设计好的编码光圈置于相机镜头的近探测器末端;where H ξ is the matrix form of the point spread function corresponding to the frequency ξ, for each frequency ξ, It reflects the degree to which the noise is amplified. The optimal aperture has the smallest R(H), which also means that the image reconstruction and restoration results will be more accurate; the genetic algorithm is used to optimize the low-resolution coding aperture, and the gradient descent method is used to improve The resolution of the coded aperture, and then place the designed coded aperture at the near detector end of the camera lens;
2)设计各个方向上均有显著几何特征的靶标,分别将靶标置于图像光源的光筒前端用于后序的不同图案的图像拍摄,通过利用编码光圈和靶标对图像进行拍摄,使得不同图案保留更多的图像的频谱信息。2) Design targets with significant geometric features in all directions, respectively place the targets at the front of the light tube of the image light source for subsequent image shooting of different patterns, and use the coded aperture and the target to shoot images to make different patterns Preserve more spectral information of the image.
通过模糊核求解算法模型得到图像的点扩散函数;采用L2范数作为图像正则化约束,并根据前面求解的点扩散函数来对模糊图像进行重构复原,具体步骤是:利用装有编码光圈的镜头对前置设计靶标的光源图像进行拍摄,拍摄的图像i是平面的,然后这个映射用一个平面响应w(i)模拟,考虑到在真实相机中存在的扭曲现象,定义d为几何扭曲函数,构建图像成像模型表示为以下形式:The point spread function of the image is obtained by solving the algorithm model of the blur kernel ; the L2 norm is used as the image regularization constraint, and the blurred image is reconstructed and restored according to the previously solved point spread function. The lens shoots the light source image of the front design target, the captured image i is planar, and then this mapping is simulated with a planar response w(i), considering the distortion phenomenon in the real camera, define d as geometric distortion function, constructing an image imaging model expressed in the following form:
b=v(d(w(i)))*h+n (6)b=v(d(w(i)))*h+n (6)
b是拍摄图像,h是镜头偏差的PSF,v是相机镜头引起的光晕现象,通过辐射模型扭曲产生要求解的原始图像u,令b is the captured image, h is the PSF of the lens deviation, v is the halo phenomenon caused by the camera lens, and the original image u to be solved is generated through the distortion of the radiation model, so that
u=v(d(w(i))) (7)u=v(d(w(i))) (7)
公式(6)可以转变为:Formula (6) can be transformed into:
b=u*h+n (8)利用模糊核的光信息作为先验,那么以上问题变为以下优化问题:b=u*h+n (8) Using the light information of the blur kernel as a priori, then the above problem becomes the following optimization problem:
其中,||·||2是L2范数,梯度算子,第一项是数据匹配项,λ、μ、γ为参数,第二项和第三项是分别由参数λ和μ约束的核稀疏项和核光滑项,是理想模糊核的光谱密度函数的幅值是PSF的光谱密度函数约束参数,F*(b)是F(b)的共轭,通过优化公式(10)求得PSF的估计值,并依据该点扩散函数进行图像重构。where |||| 2 is the L2 norm, Gradient operator, the first item is a data matching item, λ, μ, γ are parameters, the second and third items are kernel sparse items and kernel smooth items constrained by parameters λ and μ respectively, is the ideal blur kernel The magnitude of the spectral density function of is the PSF spectral density function constraint parameter, F * (b) is the conjugate of F(b), the estimated value of PSF is obtained by optimizing formula (10), and the image reconstruction is performed according to the point spread function.
使用能量函数最小化解决最大后验问题,来估计原始图像,图像重构求解模型如下:Using the energy function minimization to solve the maximum a posteriori problem to estimate the original image, the image reconstruction solution model is as follows:
其中为求解模型的数据项,||·||2是L2范数,J(u)为平滑项,η为参数,表示求能量函数的最小值。u*h表示成矩阵形式:in To solve the data item of the model, ||·|| 2 is the L 2 norm, J(u) is a smooth item, η is a parameter, Represents finding the minimum value of the energy function. u*h is expressed in matrix form:
u*h=SHu=Au (11)u*h=SHu=Au (11)
其中A等于SH,求解模型的平滑项即TV正则项即总变差项J(u)表示为:Where A is equal to SH, and the smoothing term of the solution model, that is, the TV regular term, that is, the total variation term J(u) is expressed as:
||·||2是L2范数,表示u(x)的梯度,由欧拉-拉格朗日等式求解得J(u)的梯度Grad J(u)为: |||| 2 is the L2 norm, Represents the gradient of u(x), and the gradient Grad J(u) of J(u) obtained by solving the Euler-Lagrange equation is:
其中div(·)表示求散度,用平滑的TV正则项即Jε(u)来代替J(u),公式为:Among them, div(·) means to seek divergence, and replace J(u) with a smooth TV regular term, namely J ε (u), the formula is:
其中被替换成ε表示变量值,div(·)表示求散度,则替换后的TV正则项的梯度Grad Jε(u)变为:in is replaced by ε represents the variable value, div(·) represents the divergence, then the gradient Grad J ε (u) of the replaced TV regular term becomes:
给定点扩散函数,采用L2范数进行正则化约束进行图像重构,根据Richardon-Lucy方法进行求解得到下面的乘法迭代公式:Given a point spread function, the L2 norm is used to carry out regularization constraints for image reconstruction, and the solution is obtained according to the Richardon - Lucy method to obtain the following multiplication iteration formula:
其中,·代表元素间的点乘,t代表迭代次数,f为模糊图像,AT表示A的转置矩阵。η为参数,Grad Jε(u)表示Jε(u)的梯度,通过迭代求解得到最后的原始图像u。Among them, represents the dot product between elements, t represents the number of iterations, f represents the blurred image, AT represents the transposition matrix of A. η is a parameter, Grad J ε (u) represents the gradient of J ε (u), and the final original image u is obtained through iterative solution.
本发明的技术特点及效果:Technical characteristics and effects of the present invention:
本发明方法针对图像复原工作中的图像重构问题,提出了一种改进的重构方法,通过设计编码光圈和成像靶标,最大限度的保留图像的细节信息,通过非盲估计方法更加准确的估计图像的点扩散函数,并根据求解的点扩散函数来对模糊图像进行重构复原。The method of the present invention aims at the image reconstruction problem in the image restoration work, and proposes an improved reconstruction method. By designing the coding aperture and the imaging target, the detailed information of the image can be retained to the maximum extent, and the non-blind estimation method can be used for more accurate estimation. The point spread function of the image, and reconstruct and restore the blurred image according to the solved point spread function.
1、程序简单,易于实现,可以集成到硬件中使得相机或其他成像设备可以直接进行图像点扩散函数的求解及图像重构工作,减少了对外部设备的依赖。1. The program is simple and easy to implement. It can be integrated into the hardware so that the camera or other imaging equipment can directly solve the image point spread function and reconstruct the image, reducing the dependence on external equipment.
2、自行设计编码光圈和一组在空间各个方向都有显著几何特征的靶标,为后续图像重构最大限度的保留图像细节信息。2. Self-designed coded aperture and a set of targets with significant geometric features in all directions in space, to preserve image detail information to the maximum extent for subsequent image reconstruction.
3、提出点扩散函数求解模型,得到图像的点扩散函数。3. A point spread function solution model is proposed to obtain the point spread function of the image.
4、设计图像重构优化模型,进行了场景图像的非盲估计的图像重构,并与场景图像的盲估计重构方法作对比。4. Design an image reconstruction optimization model, carry out the image reconstruction of the non-blind estimation of the scene image, and compare it with the blind estimation reconstruction method of the scene image.
附图说明Description of drawings
图1是实际实施流程图;Fig. 1 is the flow chart of actual implementation;
图2是设计的模糊过程示意图;Figure 2 is a schematic diagram of the fuzzy process of the design;
图3是设计的编码光圈(最右图为装配用的套筒);Figure 3 is the designed coded aperture (the rightmost picture is the sleeve used for assembly);
图4是设计的靶标图案。图中:(a)常用四栏板,(b)-(h)自制的6种靶标;Figure 4 is the designed target pattern. In the figure: (a) commonly used four-column board, (b)-(h) 6 self-made targets;
图5是点扩散函数非盲估计流程图;Fig. 5 is the non-blind estimation flowchart of point spread function;
图6是基于点扩散函数盲估计和点扩散函数非盲估计的图像重构结果对比。(a)清晰的靶标图,(b)模糊的靶标图,(c)盲估计的图像重构结果,(d)非盲估计的图像重构结果Fig. 6 is a comparison of image reconstruction results based on point spread function blind estimation and point spread function non-blind estimation. (a) clear target image, (b) blurred target image, (c) image reconstruction results of blind estimation, (d) image reconstruction results of non-blind estimation
具体实施方式detailed description
本发明采取的技术方案是基于编码光圈和靶标设计的图像重构方法。采用编码光圈成像系统的性能评价标准,并依据该评价标准使用遗传算法及坐标下降法优化编码光圈模型,制作编码光圈。同时为了最大限度的保留图像的细节信息,设计在各个方向都具有显著几何特征的靶标图案,构建点扩散函数估计的函数模型,采用L2范数作为图像正则化约束,并根据前面求解的点扩散函数来对模糊图像进行重构复原。The technical scheme adopted by the invention is an image reconstruction method based on coded aperture and target design. The performance evaluation standard of the coded aperture imaging system is adopted, and the coded aperture model is optimized by genetic algorithm and coordinate descent method according to the evaluation standard, and the coded aperture is produced. At the same time, in order to retain the detailed information of the image to the greatest extent, design target patterns with significant geometric features in all directions, construct a function model for point spread function estimation, use the L2 norm as the image regularization constraint, and according to the previously solved points The diffusion function is used to reconstruct and restore the blurred image.
1)图像模糊的数学模型的可以表示成下面的公式:1) The mathematical model of image blur can be expressed as the following formula:
f=h*u+n (1)f=h*u+n (1)
其中f是模糊图像,u是原始图像,h是点扩散函数,n是高斯白噪声,*代表卷积。若将h表示成矩阵形式H,则公式可以表示为:Where f is the blurred image, u is the original image, h is the point spread function, n is Gaussian white noise, and * stands for convolution. If h is expressed as a matrix form H, the formula can be expressed as:
f=SHu+n (2)f=SHu+n (2)
其中,S是相机采样函数的矩阵形式,即为相机自身的下采样矩阵,离焦去模糊问题就是通过解一个最大后验概率问题来估计原始图像u,使用能量函数E的最小值解决最大后验概率问题以实现对编码光圈的性能优化。Among them, S is the matrix form of the camera sampling function, which is the downsampling matrix of the camera itself. The defocus deblurring problem is to estimate the original image u by solving a maximum posterior probability problem, and use the minimum value of the energy function E to solve the maximum posterior probability problem. probabilistic problems to optimize the performance of coded apertures.
其中,表示求能量函数的最小值,||·||2表示L2范数,代表图像先验的噪信比,可以表示为σ2/Aξ,其中σ表示高斯白噪声的标准差,Aξ表示多张自然图像的平均功率谱。μ(u)是原始图像u在图像空间的一个测量,根据自然图像的1/f法则,多张自然图像的平均功率谱可以表达式为:in, Indicates the minimum value of the energy function, ||·|| 2 indicates the L 2 norm, Represents the noise-to-signal ratio of the image prior, which can be expressed as σ 2 /A ξ , where σ represents the standard deviation of Gaussian white noise, and A ξ represents the average power spectrum of multiple natural images. μ(u) is a measurement of the original image u in the image space. According to the 1/f rule of natural images, the average power spectrum of multiple natural images can be expressed as:
u是原始图像,ξ为频率,u(ξ)为u在频率谱上的表示形式,构建编码光圈的性能评价标准:u is the original image, ξ is the frequency, u(ξ) is the representation of u on the frequency spectrum, and the performance evaluation standard of the coded aperture is constructed:
其中Hξ为频率ξ时对应的点扩散函数的矩阵形式,对每一个频率ξ,反映了噪声被放大的度。最佳的光圈拥有最小的R(H),设计并使用遗传算法优化获得低分辨率的编码光圈。对于分辨率为L×L的光圈而言,其可能性多达2L×L种,无法直接对这么多种可能性使用高分辨率进行优化选择过程。为此,先使用遗传算法的搜索方法:where H ξ is the matrix form of the point spread function corresponding to the frequency ξ, for each frequency ξ, Reflects the degree to which the noise is amplified. The best aperture has the smallest R(H), designed and optimized using a genetic algorithm to obtain a low-resolution coded aperture. For an aperture with a resolution of L×L, there are as many as 2 L×L possibilities, and it is impossible to directly use high resolution to optimize the selection process for such a variety of possibilities. To do this, first use the search method of the genetic algorithm:
A.g=0,g表示遗传算法的迭代次数,初始迭代次数为0;产生K=4000个长度为L×L的初始随机二值序列即只包含0,1的集合,其中L=11。A. g=0, g represents the number of iterations of the genetic algorithm, and the initial number of iterations is 0; generate K=4000 initial random binary sequences with a length of L×L, that is, a set containing only 0 and 1, where L=11.
B.迭代过程,从g=1:G进行循环迭代过程,其中G=60B. iterative process, carry out loop iterative process from g=1:G, wherein G=60
a.遗传算法中的优化选择过程,对于每一个二值序列b,将其重整合为分辨率为L×L的光圈矩阵。使用公式(5)进行评估,从中选择最优的Z=400个结果作为一次迭代结果的最优解集合。a. The optimal selection process in the genetic algorithm, for each binary sequence b, reintegrate it into an aperture matrix with a resolution of L×L. Evaluation is performed using formula (5), and the best Z=400 results are selected as the optimal solution set of one iteration result.
b.重复本步骤的以下计算过程,直到序列集合的数量从Z重新恢复到K。交叉:从步骤a的最优集合Z中任意选取并复制两个子序列,然后将两个子序列按位对齐排序后,以概率p1=0.2进行位值的交换,并获得两个新的子序列。变异:对于上一步得到的两个新序列,以概率p2=0.06对每个新序列的每一位的值进行翻转。b. Repeat the following calculation process in this step until the number of sequence sets recovers from Z to K again. Crossover: Randomly select and copy two subsequences from the optimal set Z in step a, then align and sort the two subsequences, exchange bit values with probability p 1 =0.2, and obtain two new subsequences . Mutation: For the two new sequences obtained in the previous step, flip the value of each bit of each new sequence with probability p 2 =0.06.
C.计算保留下来的所有序列的性能评价值,并获得遗传算法步骤的最优结果。对于遗传算法得到的低分辨率编码光圈,用梯度下降法提高编码光圈的分辨率,得到高分辨率的编码光圈:C. Calculate the performance evaluation values of all the remaining sequences, and obtain the optimal result of the genetic algorithm step. For the low-resolution coded aperture obtained by the genetic algorithm, the resolution of the coded aperture is increased by the gradient descent method to obtain a high-resolution coded aperture:
A.使用双三次插值方式首先将低分辨率的编码光圈逐步逐次提高至高分辨率。如第一次从11×11提高到14×14。A. Use the bicubic interpolation method to gradually increase the low-resolution coding aperture to high-resolution. Such as increasing from 11×11 to 14×14 for the first time.
B.使用坐标下降法优化编码光圈的性能,沿着水平和垂直两个维度方向对编码光圈矩阵的每个元素进行二值翻转,并对新生成的编码光圈使用性能评价标准评估计算光圈性能值。每一次只改变一个编码光圈矩阵的元素值,直至遍历编码光圈矩阵的每一个元素,保留光圈性能值最优的结果。重复迭代上述的迭代过程,直至编码光圈的性能评价标准指标收敛,光圈不在发生改变为止。B. Use the coordinate descent method to optimize the performance of the coded aperture, perform a binary flip on each element of the coded aperture matrix along the horizontal and vertical dimensions, and use the performance evaluation standard to evaluate and calculate the performance value of the newly generated coded aperture . Only one element value of the coding aperture matrix is changed at a time, until each element of the coding aperture matrix is traversed, and the result with the optimal aperture performance value is retained. The above iterative process is repeated until the performance evaluation standard index of the coded aperture converges and the aperture does not change any more.
C.重复A和B步骤,直至随分辨率的提高,编码光圈的性能评价标准指标收敛,编码光圈不再发生明显变化为止,编码光圈的分辨率最终由低分辨率11×11提高收敛至高分辨的47×47。至此得到最终的编码光圈图案。C. Repeat steps A and B until the performance evaluation standard index of the coded aperture converges as the resolution increases, and the coded aperture no longer changes significantly, and the resolution of the coded aperture finally increases from a low resolution of 11×11 and converges to a high resolution 47 x 47. So far the final coded aperture pattern is obtained.
根据图案用不锈钢薄片制作编码光圈,之后将编码光圈置于相机镜头的近探测器末端。Make the coded aperture out of a stainless steel sheet according to the pattern, then place the coded aperture at the near detector end of the camera lens.
2)传统四栏板靶标由于缺乏各个方向上的几何特征信息而难以从平行光管的靶标成像估计可靠的点扩散函数;为此用CAD(计算机辅助设计)软件设计各个方向上均有显著几何特征的靶标图案,用不锈钢薄片制作出来各种样式的靶标并分别置于图像光源前用于后序的图像拍摄。2) Due to the lack of geometric feature information in all directions, it is difficult to estimate a reliable point spread function from the target imaging of the collimator in the traditional four-panel target; for this purpose, CAD (computer-aided design) software is used to design a significant geometric feature in all directions. For the characteristic target pattern, targets of various styles are made of stainless steel sheets and placed in front of the image light source for subsequent image capture.
3)通过改进的非盲方法进行点扩散函数估计:对于传统的盲估计,构建模糊核优化模型:3) Estimating the point spread function through an improved non-blind method: For traditional blind estimation, construct a fuzzy kernel optimization model:
其中||·||2是L2范数,f是模糊图像,s是采样函数,u是原始图像,h是点扩散函数,*代表卷积,γ为平衡参数。直接通过上式求解的基于像素强度值来进行模糊核估计的结果是不精确的,所以在梯度域里面来估计h:where |||| 2 is the L2 norm, f is the blurred image, s is the sampling function, u is the original image, h is the point spread function, * stands for convolution, and γ is the balance parameter. The result of blur kernel estimation based on the pixel intensity value directly solved by the above formula is inaccurate, so h is estimated in the gradient domain:
其中q2=s*u,表示梯度算子,||·||2是L2范数。对应的算法如下:where q 2 =s*u, Indicates the gradient operator, and || · || 2 is the L2 norm. The corresponding algorithm is as follows:
A.输入:模糊图像fA. Input: blurred image f
B.令i=1→5B. Let i=1→5
a.求解得到u,其中P(u)约束,λ为参数;a. to solve Get u, where P(u) is constrained, and λ is a parameter;
b.求解式(6)得到模糊核h;b. solving formula (6) to obtain fuzzy kernel h;
c.λ←max{λ/1.1,1e-4};c.λ←max{λ/1.1,1e -4 };
C.输出:模糊核h和中间过程产生的潜在的原始图像u。C. Output: The blur kernel h and the underlying original image u produced by the intermediate process.
在得到估计核后重置核内的负值为0,并且对h进行标准化使之元素和为1。本发明提出的点扩散函数的非盲估计中,光线的汇聚是通过焦平面前镜头,假设拍摄的图像i是平面的,然后这个映射可以用一个平面响应w(i)模拟,考虑到在真实相机中存在的扭曲现象,定义d为几何扭曲函数,那么这个图像成像模型可以表示为以下形式:After the estimated kernel is obtained, the negative value in the kernel is reset to 0, and h is standardized so that the element sum is 1. In the non-blind estimation of the point spread function proposed by the present invention, the convergence of light rays is through the lens in front of the focal plane, assuming that the captured image i is planar, and then this mapping can be simulated with a planar response w(i), considering that in the real The distortion phenomenon existing in the camera, define d as the geometric distortion function, then this image imaging model can be expressed as the following form:
b=v(d(w(i)))*h+n (8)b=v(d(w(i)))*h+n (8)
b是拍摄图像,h是镜头偏差的PSF,v是相机镜头引起的光晕现象,n是高斯噪声,通过辐射模型扭曲产生要求解的原始图像u,令b is the captured image, h is the PSF of the lens deviation, v is the halo phenomenon caused by the camera lens, n is the Gaussian noise, and the original image u to be solved is generated by the distortion of the radiation model, so that
u=v(d(w(i))) (9)u=v(d(w(i))) (9)
公式(8)可以变为:Equation (8) can be changed to:
b=u*h+n(10)b=u*h+n(10)
利用模糊核的光信息作为先验,那么,以上问题可以变为以下优化问题:Using the light information of the blur kernel as a priori, then the above problem can be transformed into the following optimization problem:
其中,||·||2是L2范数,梯度因子,第一项是数据匹配项,,λ、μ、γ为参数,第二项和第三项是分别由参数λ和μ约束的核稀疏项和核光滑项。是理想模糊核的光谱密度函数的幅值(F*(b)是F(b)的共轭),是PSF的光谱密度函数约束参数。通过优化公式(12)求得PSF的估计值。对于同等尺度的模糊图像和原始图像,模糊图像可以看作是原始图像和模糊核卷积的结果,理想情况(不考虑噪声)下的数学语言表述为:where |||| 2 is the L2 norm, Gradient factor, the first item is the data matching item, λ, μ, γ are the parameters, the second and third items are the kernel sparse item and the kernel smooth item constrained by the parameters λ and μ respectively. is the ideal blur kernel The magnitude of the spectral density function of ( F * (b) is the conjugate of F(b)), which is the spectral density function constraint parameter of PSF. The estimated value of PSF is obtained by optimizing formula (12). For the blurred image and the original image of the same scale, the blurred image can be regarded as the result of the convolution of the original image and the blur kernel. The mathematical language under the ideal situation (without considering noise) is expressed as:
f=u*h (12)f=u*h (12)
其中,u为原始图像,h为模糊核即点扩散函数,f为观测到的模糊图像。为确保非盲卷积核估计的准确性,首先对模糊图像和GroundTruth(GT)图像进行预处理,包括逐样本均值消减和特征标准化,以此保证数据的平稳性。其次,通过旋转平移和尺度缩放操作对模糊图像和GT图像进行校准,保证图像的一致性。考虑求解可行性和算法复杂度,利用傅里叶变换将模糊核求解算法模型转换至频域,完成空域解卷积操作到频域点除运算的转换,最后经傅里叶逆变换将在频域得到的模糊核求解算法模型的结果转换到时域,得到最终的点扩散函数,并依据该点扩散函数进行图像重构。Among them, u is the original image, h is the point spread function of the blur kernel, and f is the observed blurred image. In order to ensure the accuracy of non-blind convolution kernel estimation, the blurred image and GroundTruth (GT) image are first preprocessed, including sample-by-sample mean reduction and feature standardization, so as to ensure the stationarity of the data. Second, the blurred image and the GT image are calibrated through rotation, translation and scaling operations to ensure image consistency. Considering the solution feasibility and algorithm complexity, the fuzzy kernel solution algorithm model is converted to the frequency domain by using Fourier transform, and the transformation from the spatial deconvolution operation to the frequency domain point division operation is completed. The results of the fuzzy kernel solving algorithm model obtained in the domain domain are converted to the time domain to obtain the final point spread function, and the image reconstruction is performed according to the point spread function.
4)使用能量函数最小化解决最大后验问题,来估计原始图像。本发明提出的图像重构求解模型如下:4) Use energy function minimization to solve the maximum a posteriori problem to estimate the original image. The image reconstruction solution model proposed by the present invention is as follows:
其中为求解模型的数据项,||·||2是L2范数,J(u)为平滑项,η为参数,表示求能量函数的最小值。u*h表示成矩阵形式:in To solve the data item of the model, ||·|| 2 is the L 2 norm, J(u) is a smooth item, η is a parameter, Represents finding the minimum value of the energy function. u*h is expressed in matrix form:
u*h=SHu=Au (14)u*h=SHu=Au (14)
其中A等于SH,求解模型的平滑项即TV正则项(总变差项)J(u)表示为:Where A is equal to SH, and the smoothing term of the solution model, that is, the TV regular term (total variation term) J(u) is expressed as:
||·||2是L2范数,表示u(x)的梯度,由欧拉-拉格朗日等式求解可得J(u)的梯度Grad J(u)为: |||| 2 is the L2 norm, Represents the gradient of u(x), and the gradient Grad J(u) of J(u) can be obtained by solving the Euler-Lagrange equation:
其中div(·)表示求散度。由于直接用TV正则项的梯度在像素x出现时没定义,难以用TV正则项直接来最小化,所以用平滑的TV正则项即Jε(u)来代替J(u),公式为:Among them, div( ) means seeking divergence. Since the gradient of the TV regular term is used directly at pixel x is not defined, it is difficult to directly minimize with the TV regular term, so the smooth TV regular term, namely J ε (u) is used to replace J(u), the formula is:
其中被替换成ε表示变量值,div(·)表示求散度,则替换后的TV正则项的梯度Grad Jε(u)变为:in is replaced by ε represents the variable value, div(·) represents the divergence, then the gradient Grad J ε (u) of the replaced TV regular term becomes:
给定点扩散函数,采用L2范数进行正则化约束进行图像重构,根据Richardon-Lucy(RL)方法进行求解得到下面的乘法迭代公式:Given a point spread function, the L 2 norm is used to carry out regularization constraints for image reconstruction, and the solution is obtained according to the Richardon-Lucy (RL) method to obtain the following multiplication iteration formula:
其中,·代表元素间的点乘,t代表迭代次数,f为模糊图像,AT表示A的转置矩阵。η为参数,Grad Jε(u)表示Jε(u)的梯度。通过迭代求解得到最后的原始图像u。Among them, represents the dot product between elements, t represents the number of iterations, f represents the blurred image, AT represents the transposition matrix of A. η is a parameter, and Grad J ε (u) represents the gradient of J ε (u). The final original image u is obtained by iterative solution.
本发明提出了一种基于编码光圈和靶标的图像重构方法(如图1的流程所示)。下面结合附图及实施例详细说明如下:The present invention proposes an image reconstruction method based on a coded aperture and a target (as shown in the flow chart of FIG. 1 ). Below in conjunction with accompanying drawing and embodiment describe in detail as follows:
1)图像的模糊过程如图2,图像模糊的数学模型的可以表示成下面的公式:1) The blurring process of the image is shown in Figure 2. The mathematical model of image blurring can be expressed as the following formula:
f=h*u+n (1)f=h*u+n (1)
其中f是模糊图像,u是原始图像,h是PSF(点扩散函数),n是高斯白噪声,*代表卷积。若将h表示成矩阵形式H,则公式可以表示为:Where f is the blurred image, u is the original image, h is the PSF (point spread function), n is Gaussian white noise, and * stands for convolution. If h is expressed as a matrix form H, the formula can be expressed as:
f=SHu+n (2)f=SHu+n (2)
其中,S是相机采样函数的矩阵形式,即为相机自身的下采样矩阵,离焦去模糊问题就是通过解一个最大后验概率问题来估计去原始图像u,使用能量函数E的最小值解决最大后验概率问题以实现对编码光圈的性能优化。Among them, S is the matrix form of the camera sampling function, which is the downsampling matrix of the camera itself. The defocus deblurring problem is to estimate the original image u by solving a maximum posterior probability problem, and use the minimum value of the energy function E to solve the maximum A posterior probability problem for performance optimization of coded apertures.
其中,表示求能量函数的最小值,||·||2是L2范数,代表图像先验的噪信比,可以表示为σ2/Aξ,其中σ表示高斯白噪声的标准差,Aξ表示多张自然图像的平均功率谱。μ(u)是原始图像u在图像空间的一个测量,根据自然图像的1/f法则,多张自然图像的平均功率谱可以表达式为:in, Indicates to find the minimum value of the energy function, ||·|| 2 is the L 2 norm, Represents the noise-to-signal ratio of the image prior, which can be expressed as σ 2 /A ξ , where σ represents the standard deviation of Gaussian white noise, and A ξ represents the average power spectrum of multiple natural images. μ(u) is a measurement of the original image u in the image space. According to the 1/f rule of natural images, the average power spectrum of multiple natural images can be expressed as:
u是原始图像,ξ为频率,u(ξ)为u在频率谱上的表示形式,构建编码光圈的性能评价标准:u is the original image, ξ is the frequency, u(ξ) is the representation of u on the frequency spectrum, and the performance evaluation standard of the coded aperture is constructed:
其中Hξ为频率ξ对应的点扩散函数的矩阵形式,对每一个频率ξ,反映了噪声被放大的度,最佳的光圈拥有最小的R(H),设计并使用遗传算法优化获得低分辨率的编码光圈。对于分辨率为L×L的光圈而言,其可能性多达2L×L种,无法直接对这么多种可能性使用高分辨率进行优化选择过程。先使用遗传算法的搜索方法:where H ξ is the matrix form of the point spread function corresponding to the frequency ξ, for each frequency ξ, Reflecting the degree to which the noise is amplified, the best aperture has the smallest R(H), and is designed and optimized using a genetic algorithm to obtain a low-resolution coded aperture. For an aperture with a resolution of L×L, there are as many as 2 L×L possibilities, and it is impossible to directly use high resolution to optimize the selection process for such a variety of possibilities. First use the search method of the genetic algorithm:
C.g=0,g表示遗传算法的迭代次数,初始迭代次数为0;产生K=4000个长度为L×L的初始随机二值序列即只包含0,1的集合,其中L=11。C.g=0, g represents the number of iterations of the genetic algorithm, the initial number of iterations is 0; generate K=4000 initial random binary sequences with a length of L×L, that is, a set containing only 0,1, where L=11.
D.迭代过程,从g=1:G进行循环迭代过程,其中G=60D. iterative process, from g=1:G to carry out loop iterative process, wherein G=60
c.遗传算法中的优化选择过程,对于每一个二值序列b,将其重整合为分辨率为L×L的光圈矩阵。使用公式(5)进行评估,从中选择最优的Z=400个结果作为一次迭代结果的最优解集合。c. The optimization selection process in the genetic algorithm, for each binary sequence b, reintegrate it into an aperture matrix with a resolution of L×L. Evaluation is performed using formula (5), and the best Z=400 results are selected as the optimal solution set of one iteration result.
d.重复本步骤的以下计算过程,直到序列集合的数量从Z重新恢复到K。交叉:从步骤a的最优集合Z中任意选取并复制两个子序列,然后将两个子序列按位对齐排序后,以概率p1=0.2进行位值的交换,并获得两个新的子序列。变异:对于上一步得到的两个新序列,以概率p2=0.06对每个新序列的每一位的值进行翻转。d. Repeat the following calculation process in this step until the number of sequence sets recovers from Z to K again. Crossover: Randomly select and copy two subsequences from the optimal set Z in step a, then align and sort the two subsequences, exchange bit values with probability p 1 =0.2, and obtain two new subsequences . Mutation: For the two new sequences obtained in the previous step, flip the value of each bit of each new sequence with probability p 2 =0.06.
C.计算保留下来的所有序列的性能评价标准值,并获得遗传算法步骤的最优结果。C. Calculate the performance evaluation standard value of all the remaining sequences, and obtain the optimal result of the genetic algorithm step.
对于遗传算法得到的低分辨率编码光圈,用梯度下降法提高编码光圈的分辨率,得到高分辨率的编码光圈:For the low-resolution coded aperture obtained by the genetic algorithm, the resolution of the coded aperture is increased by the gradient descent method to obtain a high-resolution coded aperture:
D.使用双三次插值方式首先将低分辨率的编码光圈逐步逐次提高至高分辨率。如第一次从11×11提高到14×14D. Use the bicubic interpolation method to gradually increase the low-resolution coding aperture to high-resolution. Such as increasing from 11×11 to 14×14 for the first time
E.使用坐标下降法优化编码光圈的性能,沿着水平和垂直两个维度方向对编码光圈矩阵的每个元素进行二值翻转,并对新生成的编码光圈使用性能评价标准公式评估计算光圈性能值。每一次只改变一个编码光圈矩阵的元素值,直至遍历编码光圈矩阵的每一个元素,保留光圈性能值最优的结果。重复迭代上述的迭代过程,直至编码光圈的性能评价标准指标收敛,光圈不在发生改变为止。E. Use the coordinate descent method to optimize the performance of the coded aperture, perform a binary flip on each element of the coded aperture matrix along the horizontal and vertical dimensions, and use the performance evaluation standard formula to evaluate the performance of the newly generated coded aperture. value. Only one element value of the coding aperture matrix is changed at a time, until each element of the coding aperture matrix is traversed, and the result with the optimal aperture performance value is retained. The above iterative process is repeated until the performance evaluation standard index of the coded aperture converges and the aperture does not change any more.
F.重复A和B步骤,直至随分辨率的提高,编码光圈的性能评价标准指标收敛,编码光圈不再发生明显变化为止,编码光圈的分辨率最终由低分辨率11×11提高收敛至高分辨的47×47。至此得到最终的编码光圈图案。F. Repeat steps A and B until the performance evaluation standard index of the coded aperture converges as the resolution increases, and the coded aperture no longer changes significantly, and the resolution of the coded aperture finally increases from a low resolution of 11×11 and converges to a high resolution 47 x 47. So far the final coded aperture pattern is obtained.
用不锈钢薄片根据图案制作如图3的编码光圈,之后将编码光圈置于相机镜头的近探测器末端制。Use a stainless steel sheet to make the coded aperture as shown in Figure 3 according to the pattern, and then place the coded aperture at the end of the camera lens near the detector.
2)传统四栏板靶标(图4a)由于缺乏各个方向上的几何特征信息而难以从平行光管的靶标成像估计可靠的点扩散函数;为此,为此用CAD(计算机辅助设计)软件设计各个方向上均有显著几何特征的靶标,用不锈钢薄片制作出来各种样式的靶标并置于图像光源前用于后序的图像拍摄,设计的图案如图4b~h所示。为了得到尽可能大的拍摄图案,我们此次设计的靶标图案都尽可能地靠近靶标边缘。将用这些靶标进行成像,然后对获得进行点扩散函数估计。2) Due to the lack of geometric feature information in all directions, it is difficult to estimate a reliable point spread function from the target imaging of the collimator for the traditional four-panel target (Fig. 4a); therefore, CAD (computer-aided design) software is used to design There are targets with significant geometric features in all directions. Various styles of targets are made of stainless steel sheets and placed in front of the image light source for subsequent image capture. The designed patterns are shown in Figure 4b~h. In order to get as large a shooting pattern as possible, the target patterns we designed this time are as close as possible to the edge of the target. These targets will be imaged and point spread function estimates will be performed on the acquisitions.
3)通过改进的非盲方法进行点扩散函数估计:对于传统的盲估计方法,构建模糊核优化模型:3) Estimating the point spread function through an improved non-blind method: For the traditional blind estimation method, construct a fuzzy kernel optimization model:
其中||·||2是L2范数,f是模糊图像,s是相机的采样函数,u是原始图像,h是点扩散函数,*代表卷积,γ为平衡参数。直接通过上式求解的基于像素强度值来进行模糊核估计的结果是不精确的,所以在梯度域里面来估计h:where |||| 2 is the L2 norm, f is the blurred image, s is the sampling function of the camera, u is the original image, h is the point spread function, * stands for convolution, and γ is the balance parameter. The result of blur kernel estimation based on the pixel intensity value directly solved by the above formula is inaccurate, so h is estimated in the gradient domain:
其中q2=s*u,表示梯度算子,||·||2是L2范数。对应的算法如下:where q 2 =s*u, Indicates the gradient operator, and || · || 2 is the L2 norm. The corresponding algorithm is as follows:
A.输入:模糊图像f;A. Input: blurred image f;
B.令i=1→5B. Let i=1→5
a.求解得到u,其中P(u)约束,λ为参数;a. to solve Get u, where P(u) is constrained, and λ is a parameter;
b.求解式(14)得到模糊核hb. Solve formula (14) to get the blur kernel h
c.λ←max{λ/1.1,1e-4}c.λ←max{λ/1.1,1e -4 }
C.输出:模糊核h和中间过程产生的潜在的原始清晰图像u。C. Output: The blur kernel h and the underlying original sharp image u produced by the intermediate process.
在得到估计核后重置核内的负值为0,并且对h进行标准化使之元素和为1。发明提出的点扩散函数的非盲估计中,光线的汇聚是通过焦平面前镜头,假设拍摄的图像i是平面的,然后,这个映射可以用一个平面响应w(i)模拟,考虑到在真实相机中存在的扭曲现象,定义d为几何扭曲函数,那么这个图像成像模型可以表示为以下形式:After the estimated kernel is obtained, the negative value in the kernel is reset to 0, and h is standardized so that the element sum is 1. In the non-blind estimation of the point spread function proposed by the invention, the convergence of light rays is through the lens in front of the focal plane, assuming that the captured image i is planar, then this mapping can be simulated with a planar response w(i), considering that in the real The distortion phenomenon existing in the camera, define d as the geometric distortion function, then this image imaging model can be expressed as the following form:
b=v(d(w(i)))*h+n (8)b=v(d(w(i)))*h+n (8)
b是拍摄图像,h是镜头偏差的PSF,v是相机镜头引起的光晕现象,n是高斯噪声。通过辐射模型扭曲产生u,即要求解的原始图像,令b is the captured image, h is the PSF of the lens deviation, v is the halo phenomenon caused by the camera lens, and n is the Gaussian noise. Generating u, the original image to be solved for, by radiation model warping, let
u=v(d(w(i))) (9)u=v(d(w(i))) (9)
公式(8)可以变为:Equation (8) can be changed to:
b=u*h+n (10)b=u*h+n (10)
利用模糊核的光信息作为先验,那么,以上问题可以变为以下优化问题:Using the light information of the blur kernel as a priori, then the above problem can be transformed into the following optimization problem:
其中,||·||2是L2范数,梯度因子,第一项是数据匹配项,λ、μ、γ为参数,第二项和第三项是分别由参数λ和μ约束的核稀疏项和核光滑项。是理想模糊核的光谱密度函数的幅值(F*(b)是F(b)的共轭),是PSF的光谱密度函数约束参数。通过优化公式(12)求得PSF的估计值。对于同等尺度的模糊图像和清晰图像,模糊图像可以看作是原始图像和模糊核卷积的结果,理想情况(不考虑噪声)下的数学语言表述为:where |||| 2 is the L2 norm, Gradient factor, the first item is the data matching item, λ, μ, γ are parameters, the second and third items are the kernel sparse item and kernel smooth item constrained by the parameters λ and μ respectively. is the ideal blur kernel The magnitude of the spectral density function of ( F * (b) is the conjugate of F(b)), which is the spectral density function constraint parameter of PSF. The estimated value of PSF is obtained by optimizing formula (12). For blurred images and clear images of the same scale, the blurred image can be regarded as the result of the convolution of the original image and the blurred kernel. The mathematical language under ideal conditions (without considering noise) is expressed as:
f=u*h (12)f=u*h (12)
其中,u为原始图像,h为模糊核,f为观测到的模糊图像。如图5,为确保非盲卷积核估计的准确性,首先对项目中的模糊图像和GT图像进行预处理,包括逐样本均值消减和特征标准化,以此保证数据的平稳性。其次,通过旋转平移和尺度缩放操作对模糊图像和GT图像进行校准,保证图像的一致性。考虑求解可行性和算法复杂度,利用傅里叶变换将模糊核求解算法模型转换至频域,完成空域解卷积操作到频域点除运算的转换,最后经傅里叶逆变换将在频域得到的模糊核求解算法模型的结果转换到时域,得到最终的点扩散函数,并依据该点扩散函数进行图像重构。Among them, u is the original image, h is the blur kernel, and f is the observed blurred image. As shown in Figure 5, in order to ensure the accuracy of non-blind convolution kernel estimation, the blurred image and GT image in the project are first preprocessed, including sample-by-sample mean reduction and feature standardization, so as to ensure the stability of the data. Second, the blurred image and the GT image are calibrated through rotation, translation and scaling operations to ensure image consistency. Considering the solution feasibility and algorithm complexity, the fuzzy kernel solution algorithm model is converted to the frequency domain by using Fourier transform, and the transformation from the spatial deconvolution operation to the frequency domain point division operation is completed. The results of the fuzzy kernel solving algorithm model obtained in the domain domain are converted to the time domain to obtain the final point spread function, and the image reconstruction is performed according to the point spread function.
4)使用能量函数最小化解决最大后验问题,来估计原始图像。本发明提出的图像重构求解模型如下:4) Use energy function minimization to solve the maximum a posteriori problem to estimate the original image. The image reconstruction solution model proposed by the present invention is as follows:
其中为求解模型的数据项,||·||2是L2范数,J(u)为平滑项,η为参数,表示求能量函数的最小值。u*h表示成矩阵形式:in To solve the data item of the model, ||·|| 2 is the L 2 norm, J(u) is a smooth item, η is a parameter, Represents finding the minimum value of the energy function. u*h is expressed in matrix form:
u*h=SHu=Au (14)u*h=SHu=Au (14)
其中A等于SH,求解模型的平滑项即TV正则项(总变差项)J(u)表示为:Where A is equal to SH, and the smoothing term of the solution model, that is, the TV regular term (total variation term) J(u) is expressed as:
||·||2是L2范数,表示u(x)的梯度,由欧拉-拉格朗日等式求解可得J(u)的梯度Grad J(u)为: |||| 2 is the L2 norm, Represents the gradient of u(x), and the gradient Grad J(u) of J(u) can be obtained by solving the Euler-Lagrange equation:
其中div(·)表示求散度。由于直接用TV正则项的梯度在像素x出现时没定义,难以用TV正则项直接来最小化,所以用平滑的TV正则项即Jε(u)来代替J(u),公式为:Among them, div( ) means seeking divergence. Since the gradient of the TV regular term is used directly at pixel x is not defined, it is difficult to directly minimize with the TV regular term, so the smooth TV regular term, namely J ε (u) is used to replace J(u), the formula is:
其中被替换成ε表示变量值,div(·)表示求散度,则替换后的TV正则项的梯度Grad Jε(u)变为:in is replaced by ε represents the variable value, div(·) represents the divergence, then the gradient Grad J ε (u) of the replaced TV regular term becomes:
给定点扩散函数,采用L2范数进行正则化约束进行图像重构,根据Richardon-Lucy(RL)方法进行求解得到下面的乘法迭代公式:Given a point spread function, the L 2 norm is used to carry out regularization constraints for image reconstruction, and the solution is obtained according to the Richardon-Lucy (RL) method to obtain the following multiplication iteration formula:
其中,·代表元素间的点乘,t代表迭代次数,f为模糊图像,AT表示A的转置矩阵。η为参数,Grad Jε(u)表示Jε(u)的梯度。通过迭代求解得到最后的原始图像u。Among them, represents the dot product between elements, t represents the number of iterations, f represents the blurred image, AT represents the transposition matrix of A. η is a parameter, and Grad J ε (u) represents the gradient of J ε (u). The final original image u is obtained by iterative solution.
在实际场景中,利用装有编码光圈的相机拍摄不同靶标图案得到模糊图像,对比图像重构结果。在图6的实验结果中,可以看到本发明提出的点扩散函数非盲估计可以有效的消除噪声的干扰,得到更加清晰的图像重构结果。在基于点扩散函数的非盲估计的图像重建结果中可以看到重建结果基本恢复了清晰靶标图像的几何特征,且边缘比较锐利。In the actual scene, a camera equipped with a coded aperture is used to shoot different target patterns to obtain blurred images, and the image reconstruction results are compared. From the experimental results in FIG. 6 , it can be seen that the non-blind estimation of the point spread function proposed by the present invention can effectively eliminate noise interference and obtain a clearer image reconstruction result. In the image reconstruction results based on the non-blind estimation of the point spread function, it can be seen that the reconstruction results basically restore the geometric features of the clear target image, and the edges are relatively sharp.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710562416.6A CN107507135B (en) | 2017-07-11 | 2017-07-11 | Image reconstruction method based on coding aperture and target |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710562416.6A CN107507135B (en) | 2017-07-11 | 2017-07-11 | Image reconstruction method based on coding aperture and target |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107507135A true CN107507135A (en) | 2017-12-22 |
CN107507135B CN107507135B (en) | 2020-04-24 |
Family
ID=60679324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710562416.6A Expired - Fee Related CN107507135B (en) | 2017-07-11 | 2017-07-11 | Image reconstruction method based on coding aperture and target |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107507135B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885890A (en) * | 2019-01-23 | 2019-06-14 | 中国地质大学(武汉) | A light source spectrum optimization method and system based on color entropy |
CN110111277A (en) * | 2019-04-29 | 2019-08-09 | 北京理工大学 | A kind of plane thermography method for repairing and mending and device |
CN110223238A (en) * | 2019-04-30 | 2019-09-10 | 北京理工大学 | Encoded light shines image reconstruction method and device |
CN110332991A (en) * | 2019-05-22 | 2019-10-15 | 合刃科技(深圳)有限公司 | A kind of reconstructing method of spectrum, device and electronic equipment |
CN111242912A (en) * | 2020-01-08 | 2020-06-05 | 北京电子工程总体研究所 | Smoke screen interference efficiency acquisition method |
CN111986123A (en) * | 2020-09-24 | 2020-11-24 | 南京航空航天大学 | Blurred image restoration method based on Kullback-Leibler divergence and l0 norm constraint |
CN113852734A (en) * | 2020-06-09 | 2021-12-28 | 华为技术有限公司 | Aperture, control method thereof, lens and electronic equipment |
CN114166146A (en) * | 2021-12-03 | 2022-03-11 | 香港理工大学深圳研究院 | A three-dimensional measurement method and device based on constructing a coded image projection |
CN114240757A (en) * | 2021-12-24 | 2022-03-25 | 上海乂义实业有限公司 | Optical system based micro-scanning image calibration super-resolution method |
CN115018725A (en) * | 2022-06-01 | 2022-09-06 | 中国科学院光电技术研究所 | A Diffraction Image Restoration Method Based on Block Minimum Pixel Prior |
CN116167948A (en) * | 2023-04-21 | 2023-05-26 | 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) | Photoacoustic image restoration method and system based on space-variant point spread function |
CN116362316A (en) * | 2023-05-29 | 2023-06-30 | 成都阿加犀智能科技有限公司 | Model conversion method and device, storage medium and electronic equipment |
WO2024020958A1 (en) * | 2022-07-28 | 2024-02-01 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method of generating an image, electronic device, apparatus, and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102354395A (en) * | 2011-09-22 | 2012-02-15 | 西北工业大学 | Sparse representation-based blind restoration method of broad image |
CN103824262A (en) * | 2014-02-21 | 2014-05-28 | 清华大学 | Improved rapid image restoration processing method using R-L iterative algorithm |
CN103970993A (en) * | 2014-04-30 | 2014-08-06 | 中国科学院长春光学精密机械与物理研究所 | Measuring and calculating method for modulation transfer function of satellite-borne camera |
US20140334702A1 (en) * | 2013-05-10 | 2014-11-13 | Georges El Fakhri | Systems and methods for motion correction in positron emission tomography imaging |
CN105118031A (en) * | 2015-08-11 | 2015-12-02 | 中国科学院计算技术研究所 | Image processing method for recovering depth information |
-
2017
- 2017-07-11 CN CN201710562416.6A patent/CN107507135B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102354395A (en) * | 2011-09-22 | 2012-02-15 | 西北工业大学 | Sparse representation-based blind restoration method of broad image |
US20140334702A1 (en) * | 2013-05-10 | 2014-11-13 | Georges El Fakhri | Systems and methods for motion correction in positron emission tomography imaging |
CN103824262A (en) * | 2014-02-21 | 2014-05-28 | 清华大学 | Improved rapid image restoration processing method using R-L iterative algorithm |
CN103970993A (en) * | 2014-04-30 | 2014-08-06 | 中国科学院长春光学精密机械与物理研究所 | Measuring and calculating method for modulation transfer function of satellite-borne camera |
CN105118031A (en) * | 2015-08-11 | 2015-12-02 | 中国科学院计算技术研究所 | Image processing method for recovering depth information |
Non-Patent Citations (2)
Title |
---|
唐梦: "基于正则化方法的图像盲去模糊", 《计算机应用研究》 * |
姜斌: "基于编码光圈的宽景深成像研究", 《万方学位论文》 * |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109885890A (en) * | 2019-01-23 | 2019-06-14 | 中国地质大学(武汉) | A light source spectrum optimization method and system based on color entropy |
CN110111277A (en) * | 2019-04-29 | 2019-08-09 | 北京理工大学 | A kind of plane thermography method for repairing and mending and device |
CN110111277B (en) * | 2019-04-29 | 2021-01-29 | 北京理工大学 | Method and device for repairing planar thermal image |
CN110223238A (en) * | 2019-04-30 | 2019-09-10 | 北京理工大学 | Encoded light shines image reconstruction method and device |
CN110332991B (en) * | 2019-05-22 | 2021-07-06 | 合刃科技(深圳)有限公司 | Spectrum reconstruction method and device and electronic equipment |
CN110332991A (en) * | 2019-05-22 | 2019-10-15 | 合刃科技(深圳)有限公司 | A kind of reconstructing method of spectrum, device and electronic equipment |
CN111242912A (en) * | 2020-01-08 | 2020-06-05 | 北京电子工程总体研究所 | Smoke screen interference efficiency acquisition method |
CN113852734A (en) * | 2020-06-09 | 2021-12-28 | 华为技术有限公司 | Aperture, control method thereof, lens and electronic equipment |
CN113852734B (en) * | 2020-06-09 | 2023-01-17 | 华为技术有限公司 | Aperture, control method thereof, lens and electronic equipment |
CN111986123A (en) * | 2020-09-24 | 2020-11-24 | 南京航空航天大学 | Blurred image restoration method based on Kullback-Leibler divergence and l0 norm constraint |
CN111986123B (en) * | 2020-09-24 | 2024-03-12 | 南京航空航天大学 | Blurred image restoration method based on KL divergence and L0 norm constraint |
CN114166146A (en) * | 2021-12-03 | 2022-03-11 | 香港理工大学深圳研究院 | A three-dimensional measurement method and device based on constructing a coded image projection |
CN114240757A (en) * | 2021-12-24 | 2022-03-25 | 上海乂义实业有限公司 | Optical system based micro-scanning image calibration super-resolution method |
CN114240757B (en) * | 2021-12-24 | 2024-07-26 | 上海乂义实业有限公司 | Super-resolution method for calibrating micro-scanning image based on optical system |
CN115018725A (en) * | 2022-06-01 | 2022-09-06 | 中国科学院光电技术研究所 | A Diffraction Image Restoration Method Based on Block Minimum Pixel Prior |
WO2024020958A1 (en) * | 2022-07-28 | 2024-02-01 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method of generating an image, electronic device, apparatus, and computer readable storage medium |
CN116167948A (en) * | 2023-04-21 | 2023-05-26 | 合肥综合性国家科学中心人工智能研究院(安徽省人工智能实验室) | Photoacoustic image restoration method and system based on space-variant point spread function |
CN116362316A (en) * | 2023-05-29 | 2023-06-30 | 成都阿加犀智能科技有限公司 | Model conversion method and device, storage medium and electronic equipment |
CN116362316B (en) * | 2023-05-29 | 2023-12-12 | 成都阿加犀智能科技有限公司 | Model conversion method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN107507135B (en) | 2020-04-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107507135B (en) | Image reconstruction method based on coding aperture and target | |
Chu et al. | Temporally coherent gans for video super-resolution (tecogan) | |
Zhussip et al. | Training deep learning based image denoisers from undersampled measurements without ground truth and without image prior | |
CN106127688B (en) | A super-resolution image reconstruction method and system thereof | |
CN106600557B (en) | PSF estimation method based on mixed Gauss model and sparse constraint | |
Xie et al. | Removing turbulence effect via hybrid total variation and deformation-guided kernel regression | |
CN104751420B (en) | A kind of blind restoration method based on rarefaction representation and multiple-objection optimization | |
CN110796616B (en) | Turbulence degradation image recovery method based on norm constraint and self-adaptive weighted gradient | |
CN105931196A (en) | Fourier optical modeling-based coded aperture camera image restoration method | |
CN105590304B (en) | Super-resolution image reconstruction method and device | |
CN104091314A (en) | Turbulence-degraded image blind restoration method based on edge prediction and sparse ratio regular constraints | |
Sanghvi et al. | Photon limited non-blind deblurring using algorithm unrolling | |
Gao et al. | Bayesian image super-resolution with deep modeling of image statistics | |
CN113506212A (en) | Improved POCS-based hyperspectral image super-resolution reconstruction method | |
CN107730459B (en) | Image deblurring method based on nonlinear dynamic system | |
Rashid et al. | Single MR image super-resolution using generative adversarial network | |
Han et al. | A nonblind deconvolution method by bias correction for inaccurate blur kernel estimation in image deblurring | |
Zhang et al. | Hybrid sparse-representation-based approach to image super-resolution reconstruction | |
CN113379647A (en) | Multi-feature image restoration method for optimizing PSF estimation | |
CN110895790A (en) | Scene image super-resolution method based on posterior degradation information estimation | |
Lao et al. | Diffeomorphic Template Registration for Atmospheric Turbulence Mitigation | |
Jain et al. | Evaluation of neural network algorithms for atmospheric turbulence mitigation | |
Gunturk et al. | Fundamentals of image restoration | |
CN113222117B (en) | Method for constructing deconvolution neural network model of microscope based on Richardson-Lucy algorithm | |
Zhao et al. | AFFNet: adversarial feature fusion network for super-resolution image reconstruction in remote sensing images |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200424 |