[go: up one dir, main page]

CN117058118B - A method for evaluating the image degradation effect caused by flat shielding glass screens - Google Patents

A method for evaluating the image degradation effect caused by flat shielding glass screens Download PDF

Info

Publication number
CN117058118B
CN117058118B CN202311088994.2A CN202311088994A CN117058118B CN 117058118 B CN117058118 B CN 117058118B CN 202311088994 A CN202311088994 A CN 202311088994A CN 117058118 B CN117058118 B CN 117058118B
Authority
CN
China
Prior art keywords
image
screen
channel
shielding
light
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.)
Active
Application number
CN202311088994.2A
Other languages
Chinese (zh)
Other versions
CN117058118A (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.)
Beihang University
Original Assignee
Beihang 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 Beihang University filed Critical Beihang University
Priority to CN202311088994.2A priority Critical patent/CN117058118B/en
Publication of CN117058118A publication Critical patent/CN117058118A/en
Application granted granted Critical
Publication of CN117058118B publication Critical patent/CN117058118B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/0464Convolutional networks [CNN, ConvNet]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30168Image quality inspection

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

本发明公开了一种用于评估平面屏蔽玻璃丝网导致图像恶化效果的方法,包括以下步骤:S1.给定屏蔽效能与测试频率或者频段需求,计算出光线透过率并确定平面屏蔽玻璃丝网的线宽和线周期;S2.给定相关平面屏蔽玻璃丝网参数和相机参数,获取丝网点扩散函数;S3.对点扩散函数与计算出的光线透过率相乘,进行光强分布的衰减,获取衍射退化模型;S4.设定能量阈值,进行点扩散函数的简化;S5.获取衍射退化的模糊图;S6.根据PSNR和SSIM函数来计算原始清晰色板图和模糊图像之间的差异值,从而实现平面屏蔽玻璃丝网导致图像恶化效果的图像退化快速计算与评估。本发明能够在设计过程中快速根据设计的丝网参数和相机参数提前对丝网带来的图像恶化程度进行评估。

The present invention discloses a method for evaluating the image deterioration effect caused by a planar shielding glass screen, comprising the following steps: S1. Given the shielding effectiveness and the test frequency or frequency band requirements, the light transmittance is calculated and the line width and line period of the planar shielding glass screen are determined; S2. Given the relevant planar shielding glass screen parameters and camera parameters, the screen point spread function is obtained; S3. The point spread function is multiplied by the calculated light transmittance, the light intensity distribution is attenuated, and the diffraction degradation model is obtained; S4. The energy threshold is set to simplify the point spread function; S5. A fuzzy image of diffraction degradation is obtained; S6. The difference between the original clear color plate image and the fuzzy image is calculated according to the PSNR and SSIM functions, so as to realize the image degradation rapid calculation and evaluation of the image deterioration effect caused by the planar shielding glass screen. The present invention can quickly evaluate the image deterioration degree caused by the screen in advance according to the designed screen parameters and camera parameters during the design process.

Description

一种用于评估平面屏蔽玻璃丝网导致图像恶化效果的方法A method for evaluating the image degradation effect caused by flat shielding glass screens

技术领域Technical Field

本发明涉及电磁屏蔽与光学设计,特别是涉及一种用于评估平面屏蔽玻璃丝网导致图像恶化效果的方法。The invention relates to electromagnetic shielding and optical design, and in particular to a method for evaluating the image deterioration effect caused by a planar shielding glass mesh.

背景技术Background technique

对于暗室试验间的汽车、飞机等被试对象的敏感现象检测,通常需要通过相机来观察一些可视的敏感现象,比如仪表盘的指针旋转、灯闪烁等。而对于相机所处的强电磁环境的试验间,通常需要给相机安装屏蔽网或者镀膜来实现电磁屏蔽,进而对相机进行保护。而对于平面状屏蔽网由于其网格状,通常会带来图像的网格衍射问题,进而导致图像模糊,因此需要提供一种评估方法,用于在屏蔽网相机设计阶段就可根据设计参数进行丝网衍射带来的图像恶化评估。For the detection of sensitive phenomena of test objects such as cars and airplanes in darkroom test rooms, it is usually necessary to use cameras to observe some visible sensitive phenomena, such as the rotation of the pointer on the dashboard, the flashing of lights, etc. For test rooms where the camera is located in a strong electromagnetic environment, it is usually necessary to install a shielding net or coating on the camera to achieve electromagnetic shielding and thus protect the camera. Due to its grid shape, the planar shielding net usually causes grid diffraction problems in the image, which leads to blurred images. Therefore, it is necessary to provide an evaluation method for evaluating the image deterioration caused by screen diffraction according to the design parameters during the design stage of the shielding net camera.

在光学衍射中,点扩散函数是评价光学衍射分布与强度的重要物理量,但同时其也是图像模糊的根源。但目前尚缺少基于光学衍射理论的平面屏蔽玻璃丝网相机的衍射模糊研究,难以提供一种丝网衍射带来的图像模糊的评价方法。In optical diffraction, the point spread function is an important physical quantity for evaluating the distribution and intensity of optical diffraction, but it is also the source of image blur. However, there is currently a lack of research on the diffraction blur of plane-shielded glass screen cameras based on optical diffraction theory, making it difficult to provide an evaluation method for image blur caused by screen diffraction.

发明内容Summary of the invention

本发明的目的在于克服现有技术的不足,提供一种用于评估平面屏蔽玻璃丝网导致图像恶化效果的方法,能够在设计过程中快速根据设计的丝网参数和相机参数提前对丝网带来的图像恶化程度进行评估。The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for evaluating the image degradation effect caused by a flat shielding glass screen, which can quickly evaluate the degree of image degradation caused by the screen in advance according to the designed screen parameters and camera parameters during the design process.

本发明的目的是通过以下技术方案来实现的:一种用于评估平面屏蔽玻璃丝网导致图像恶化效果的方法,包括以下步骤:The object of the present invention is achieved through the following technical solution: A method for evaluating the image degradation effect caused by a flat shielding glass screen, comprising the following steps:

S1.给定屏蔽效能与测试频率或者频段需求,计算出光线透过率并确定平面屏蔽玻璃丝网的线宽和线周期;S1. Given the shielding effectiveness and test frequency or frequency band requirements, calculate the light transmittance and determine the line width and line period of the planar shielding glass mesh;

S2.给定相关平面屏蔽玻璃丝网参数和相机参数,获取丝网点扩散函数;S2. Given the relevant plane shielding glass screen parameters and camera parameters, obtain the screen point spread function;

S3.对点扩散函数与计算出的光线透过率相乘,进行光强分布的衰减,获取衍射退化模型;S3. multiplying the point spread function by the calculated light transmittance, performing attenuation of the light intensity distribution, and obtaining a diffraction degradation model;

S4.设定能量阈值,进行点扩散函数的简化,简化后得到模糊核;S4. setting an energy threshold, simplifying the point spread function, and obtaining a blur kernel after simplification;

S5.根据模糊核表示在色板图的不同通道上根据不同的光谱响应频率进行模糊核计算并与该通道图像卷积,获取衍射退化的模糊图;S5. performing blur kernel calculation on different channels of the color plate image according to different spectral response frequencies according to the blur kernel representation and convolving the image with the channel image to obtain a diffraction-degraded blur map;

S6.根据PSNR和SSIM函数来计算原始清晰色板图和模糊图像之间的差异值,从而实现平面屏蔽玻璃丝网导致图像恶化效果的图像退化快速计算与评估。S6. The difference value between the original clear color plate image and the blurred image is calculated according to the PSNR and SSIM functions, so as to realize the rapid calculation and evaluation of the image degradation effect caused by the planar shielding glass mesh.

进一步地,所述步骤S1中,通过Ulrich’s模型,垂直入射的平面屏蔽玻璃丝网的透过率T近似为:Furthermore, in step S1, through the Ulrich’s model, the transmittance T of the plane shielding glass mesh at vertical incidence is approximately:

其中T(0,0)是丝网在零频率、零波矢条件下的透过率,即入射电磁波的透过比例,介于0~1之间,其中g为丝网的线周期;2a为丝网的线宽;丝网的厚度为t;Where T(0,0) is the transmittance of the screen under zero frequency and zero wave vector conditions, that is, the transmittance ratio of the incident electromagnetic wave, which is between 0 and 1, where g is the line period of the screen; 2a is the line width of the screen; the thickness of the screen is t;

所述电磁屏蔽效能为:The electromagnetic shielding effectiveness is:

SE=-10log(T)SE = -10log(T)

Ulrich’s模型适用条件为其中λ为入射波波长,ng,n0分别为衬底的折射率,丝网两侧介质的折射率;Ulrich's model is applicable when Where λ is the wavelength of the incident wave, ng , n0 are the refractive index of the substrate and the refractive index of the medium on both sides of the screen respectively;

给定屏蔽效能SE,并给定测试频率f或者测试波长λ,估算线周期g和线宽a,用于判定所涉及的平面屏蔽玻璃丝网是否会发生光学衍射;Given the shielding effectiveness SE and the test frequency f or the test wavelength λ, the line period g and line width a are estimated to determine whether the planar shielding glass mesh involved will undergo optical diffraction;

进一步地,步骤S2中所述的丝网参数和相机参数包括:Furthermore, the screen parameters and camera parameters described in step S2 include:

屏蔽丝网透光部分长宽bx,byThe length and width of the light-transmitting part of the shielding screen are b x and b y ;

屏蔽丝网光栅常数dx,dyShielding wire mesh grating constants d x , dy ;

屏蔽丝网在x方向和y方向的目数N1,N2The mesh number of the shielding screen in the x-direction and the y-direction is N 1 , N 2 ;

相机焦距f;Camera focal length f;

相机靶面尺寸s;Camera target size s;

相机分辨率r=(m,n);Camera resolution r = (m, n);

BRG三个通道的响应的光谱中心波长λBGRThe spectral center wavelengths of the responses of the three channels of BRG are λ B , λ G , and λ R .

进一步地,所述步骤S2包括:Furthermore, the step S2 comprises:

一般的,相机靶面尺寸以英寸为单位,表示矩形靶面对角线长度,在业界,1英寸为16mm,而一般传感器的长宽比为4:3。Generally, the camera target surface size is measured in inches, which indicates the diagonal length of the rectangular target surface. In the industry, 1 inch is 16 mm, and the aspect ratio of a general sensor is 4:3.

当给定靶面尺寸s1(in)后,根据靶面尺寸计算出传感器的对角线长:When the target surface size s 1 (in) is given, the diagonal length of the sensor is calculated based on the target surface size:

s2(mm)=16*s1(in) s2 (mm) = 16*s1 (in)

然后根据长宽比4:3和勾股定理计算出靶面的实际物理长度:Then, the actual physical length of the target surface is calculated based on the aspect ratio of 4:3 and the Pythagorean theorem:

sw(mm)=12.8*s1(in),sh(mm)=9.6*s1(in)s w (mm) = 12.8 * s 1 (in), s h (mm) = 9.6 * s 1 (in)

在模糊核计算过程中,一般坐标是关于0对称的,因此将实际物理长度取一半,即表示靶面在长度和宽度上的半轴长度:In the process of blur kernel calculation, the coordinates are generally symmetric about 0, so the actual physical length is taken as half, which represents the semi-axis length of the target surface in length and width:

根据旁轴近似原理,估算光线在两个方向上的衍射角θxy分别为:According to the paraxial approximation principle, the diffraction angles of the light in two directions are estimated as follows:

估算出平面屏蔽玻璃丝网点扩散函数:Estimate the point spread function of the planar shielded glass mesh:

其中in

其中I0表示单个狭缝在图样中心产生的光强;x,y分别表示像素点在靶面[-xl,xl],[-yl,yl]轴上的物理坐标;δxy表示光在x,y方向上的光程差,α1、α2、β1、β2为中间变量。Where I0 represents the light intensity generated by a single slit at the center of the pattern; x, y represent the physical coordinates of the pixel point on the target surface [ -xl , xl ] and [ -yl , yl ] axes respectively; δx , δy represent the optical path difference of light in the x and y directions, and α1 , α2 , β1 , and β2 are intermediate variables.

进一步地,所述步骤S3中,由于屏蔽网的问题,导致光线的透过率下降,即图像变得昏暗,利用平面屏蔽玻璃丝网点扩散函数结合Ulrich的透过率模型,导出中心级的透过率:Furthermore, in step S3, due to the problem of the shielding mesh, the transmittance of the light decreases, that is, the image becomes dim. The transmittance of the center level is derived by combining the plane shielding glass mesh point spread function with Ulrich's transmittance model:

结合点扩散函数则可以导出平面屏蔽玻璃丝网的衍射退化模型为:Combined with the point spread function, the diffraction degradation model of the planar shielding glass mesh can be derived as follows:

其中fc(x,y)表示图像通道c上的退化图像,hc(x,y;λ)表示图像通道c上的点扩散函数,gc(x,y;λ)图像通道c上潜在未退化的光谱图像,(x,y)是图像传感器CCD或CMOS靶面的物理坐标。Where fc (x,y) represents the degraded image on image channel c, hc (x,y;λ) represents the point spread function on image channel c, gc (x,y;λ) is the potential undegraded spectral image on image channel c, and (x,y) is the physical coordinate of the CCD or CMOS target surface of the image sensor.

进一步地,步骤S4所述的简化过程中,设图样中心产生的光强I0为单位1,则对于RGB中任意通道c,点扩散函数在x轴和y轴上的表示为:Furthermore, in the simplified process described in step S4, assuming that the light intensity I 0 generated by the center of the pattern is 1, then for any channel c in RGB, the point spread function on the x-axis and y-axis is expressed as:

对于x,y区间分别为[-xl,xl],[-yl,yl]的靶面坐标,则上式中x,y需满足:For target coordinates whose x and y intervals are [-x l ,x l ] and [-y l ,y l ] respectively, x and y in the above formula must satisfy:

-xl≤x≤xl,-yl≤y≤yl -x l ≤x ≤x l ,-y l ≤y ≤y l

设定thresh为简化模糊核阈值,其值在在0~1之间,则存在截断的有效区域[-xs,xs],[-ys,ys]满足:Set thresh as the simplified blur kernel threshold, and its value is between 0 and 1. Then there is a truncated valid area [-x s ,x s ], [-y s ,y s ] that satisfies:

0≤xs≤xl,0≤ys≤yl 0≤xs≤xl , 0≤ys≤yl

使得有效区域内元素的能量和与总能量的比值大于给定阈值,即:Make the ratio of the energy sum of the elements in the effective area to the total energy greater than the given threshold, that is:

这是一个与波长λ相关的不等式,当给定通道c的光谱响应波长λ,[-xs,xs]×[-ys,ys]所表示的矩形则为该通道的模糊核,记为kc1(x,y;λ);This is an inequality related to the wavelength λ. When the spectral response wavelength λ of a given channel c is given, the rectangle represented by [ -xs , xs ] × [ -ys , ys ] is the blur kernel of the channel, denoted as kc1 (x, y; λ);

在c=1,2,3时,得到RGB三个通道的模糊核,其中c=1表示R通道,c=2表示G通道,c=3表示B通道。When c=1, 2, or 3, blur kernels of the three RGB channels are obtained, where c=1 represents the R channel, c=2 represents the G channel, and c=3 represents the B channel.

进一步地,所述步骤S6包括:Furthermore, the step S6 comprises:

令衍射退化模型中的点扩散函数hc(x,y;λ)等于简化的模糊核kc1(x,y;λ),得到模糊图像的生成模型:Let the point spread function h c (x, y; λ) in the diffraction degradation model be equal to the simplified blur kernel k c1 (x, y; λ), and the generative model of the blurred image is obtained:

对清晰图像g(x,y)的R、G、B三个通道图像gc(x,y;λ)依次应用上述模型获取每个通道的退化图像fc(x,y)并拼接获得最终的模糊退化图像f(x,y);Apply the above model to the three channel images g c (x, y; λ) of the clear image g (x, y) in turn to obtain the degraded image f c (x, y) of each channel and concatenate them to obtain the final blurred degraded image f (x, y);

对于模糊图恶化效果的图像评价采用PSNR和SSIM两个函数来评价原始未退化的清晰色板图像g(x,y)和采用模糊核退化的模糊图像f(x,y)之间的恶化程度:For the image evaluation of the blurred image degradation effect, the PSNR and SSIM functions are used to evaluate the degree of degradation between the original undegraded clear color plate image g(x, y) and the blurred image f(x, y) degraded by the blur kernel:

其中m,n为图像的宽和高,bitdepth为图像深度,μxyxyxy为图像x,y的均值,方差,协方差;c1,c2为常数。Where m, n are the width and height of the image, bitdepth is the image depth, μ x , μ y , σ x , σ y , σ xy are the mean, variance, and covariance of image x, y; c 1 , c 2 are constants.

本发明的有益效果是:本发明可在设计过程中快速根据设计的丝网参数和相机参数提前对丝网带来的图像恶化程度进行评估,从而为相关参数设计提供参考和指导,减少设计到加工过程中的不确定性与时间,资源成本。The beneficial effect of the present invention is that the present invention can quickly evaluate the degree of image deterioration caused by the screen in advance according to the designed screen parameters and camera parameters during the design process, thereby providing reference and guidance for the design of related parameters, reducing the uncertainty and time and resource costs from design to processing.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明的流程图;Fig. 1 is a flow chart of the present invention;

图2为本发明对应平面屏蔽玻璃丝网相机成像的光学系统图;FIG2 is an optical system diagram of the present invention corresponding to imaging of a plane-shielded glass screen camera;

图3为图像退化示意图;FIG3 is a schematic diagram of image degradation;

图4为色板图像示意图。FIG. 4 is a schematic diagram of a color palette image.

具体实施方式Detailed ways

下面结合附图进一步详细描述本发明的技术方案,但本发明的保护范围不局限于以下所述。The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.

本发明从光学衍射与相机成像原理角度出发,通过相关的理论推导建模,实现对平面屏蔽玻璃丝网带来的光线透过率估计、平面屏蔽玻璃丝网点扩散函数推导、衍射退化模型建立、模糊核简化和退化图像评价功能。Starting from the perspective of optical diffraction and camera imaging principles, the present invention realizes the estimation of light transmittance brought by plane shielding glass mesh, derivation of point spread function of plane shielding glass mesh, establishment of diffraction degradation model, simplification of blur kernel and evaluation of degraded image through relevant theoretical deduction and modeling.

如图2所示,通常平面屏蔽玻璃丝网相机的丝网会采用光窗的形式,一般的,将丝网置于透镜之前,且实际安装时二者距离基本贴近;在透镜后方,为感光传感器。对于相机外任意的物体,其所反射光以球面波传播,由于通常物体距离与焦距关系满足夫琅禾费衍射,在光到达相机时,其波面可以等效为用一个平面波来表示,因此在光透过屏蔽网时会发生衍射和干涉,进而在成像时出现模糊情况。As shown in Figure 2, the screen of a plane-shielded glass screen camera usually takes the form of a light window. Generally, the screen is placed in front of the lens, and the distance between the two is basically close during actual installation; behind the lens is a photosensitive sensor. For any object outside the camera, the reflected light propagates as a spherical wave. Since the relationship between the distance of the object and the focal length usually satisfies Fraunhofer diffraction, when the light reaches the camera, its wave surface can be equivalent to a plane wave. Therefore, diffraction and interference will occur when the light passes through the shielding net, resulting in blurring during imaging.

针对上述光学成像系统,进一步的,如图1所示,首先给定屏蔽效能SE与测试频率f或者波长λ需求,假设我们所需的屏蔽效能不低于60dB,测试频率为2GHz,根据Ulrich模型:For the above optical imaging system, further, as shown in FIG1 , firstly, given the shielding effectiveness SE and the test frequency f or wavelength λ requirements, assuming that the shielding effectiveness we need is not less than 60 dB, the test frequency is 2 GHz, according to the Ulrich model:

可以计算出光线透过率小于等于1e-6,且其波长为0.15m,符合Ulrich模型的适用条件:It can be calculated that the light transmittance is less than or equal to 1e-6, and its wavelength is 0.15m, which meets the applicable conditions of the Ulrich model:

进一步将参数带入Ulrich’s模型,可以得到:Further substituting the parameters into Ulrich’s model, we can obtain:

进一步可以限制a和g的比值,可以估算出线周期和线宽的数量级为微米数量级,比如时,此时线周期g大概为64μm,线宽a为6.4μm。The ratio of a and g can be further limited, and the line period and line width can be estimated to be on the order of micrometers, for example At this time, the line period g is approximately 64μm and the line width a is 6.4μm.

然后我们可以测量相应的丝网参数与相机参数,主要包括:Then we can measure the corresponding screen parameters and camera parameters, mainly including:

(1)屏蔽丝网透光部分长宽bx,by(1) Length and width of the light-transmitting part of the shielding screen: b x , by ;

(2)屏蔽丝网光栅常数dx,dy(2) Shielding wire mesh grating constants d x , dy ;

(3)屏蔽丝网在x方向和y方向的目数N1,N2(3) The mesh count of the shielding screen in the x-direction and the y-direction N 1 , N 2 ;

(4)相机焦距f;(4) Camera focal length f;

(5)相机靶面尺寸s;(5) Camera target surface size s;

(6)相机分辨率r=(m,n);(6) Camera resolution r = (m, n);

(7)BRG三个通道的响应的光谱中心波长λBGR(7) The spectral center wavelengths of the responses of the three channels of BRG are λ B , λ G , and λ R .

根据上述测量参数,首先根据相机靶面尺寸计算出其实际的物理长度(sw,sh)。假设一个1080P的相机的成像靶面大小为1/3”英寸,即其对角线长度为:Based on the above measurement parameters, first calculate the actual physical length (s w , s h ) according to the camera target surface size. Assume that the imaging target surface size of a 1080P camera is 1/3” inch, that is The length of its diagonal is:

s(mm)=16/3≈6mms(mm)=16/3≈6mm

则相应的靶面实际物理长度为:Then the actual physical length of the corresponding target surface is:

sw(mm)=4.8mm.sh(mm)=3.6(mm)s w (mm) = 4.8 mm. sh (mm) = 3.6 (mm)

即其对应的物理尺寸为4.8mm×3.6mm,其相应长度和宽度上的半轴长度分别为:That is, its corresponding physical size is 4.8mm×3.6mm, and its corresponding semi-axis lengths in length and width are:

xl=2.4mm,yl=1.8mmx l =2.4 mm, y l =1.8 mm

对于1080P的相机,进一步计算可以获得其像元尺寸为2.5μm×3.3μm。根据半轴长度即可建立x轴,y轴范围分别为(-2.4mm.2,4mm),(-1.8mm.1.8mm)的图像传感器坐标轴,两个轴上分别划分为1920个点和1080个点。For a 1080P camera, further calculations show that its pixel size is 2.5μm×3.3μm. Based on the semi-axis length, the image sensor coordinate axes with x-axis and y-axis ranges of (-2.4mm.2,4mm) and (-1.8mm.1.8mm) can be established, and the two axes are divided into 1920 points and 1080 points respectively.

根据旁轴近似原理,可以估算光线在两个方向上的衍射角θxy分别为:According to the paraxial approximation principle, the diffraction angles of light in two directions, θ x and θ y , can be estimated as follows:

进而根据已知的测量参数估算出平面屏蔽玻璃丝网点扩散函数:Then, the point spread function of the planar shielding glass mesh is estimated based on the known measurement parameters:

其中in

对应的模糊核大小即为1920×1080大小。结合之前计算得到的透过率,根据成像系统的线性和空间不变性,就可以获得当前的衍射退化模型,即原始的退化方式:The corresponding blur kernel size is 1920 × 1080. Combined with the previously calculated transmittance, according to the linearity and spatial invariance of the imaging system, the current diffraction degradation model, that is, the original degradation method, can be obtained:

其中fc(x,y)表示通道c上的退化图像,hc(x,y;λ)表示通道c上的点扩散函数,gc(x,y;λ)通道c上潜在未退化的色板图像,如图4所示,(x,y)是先前计算得到的图像传感器CCD或CMOS靶面的物理坐标。Where fc (x,y) represents the degraded image on channel c, hc (x,y;λ) represents the point spread function on channel c, gc (x,y;λ) is the potential undegraded color plate image on channel c, as shown in Figure 4, (x,y) is the physical coordinate of the image sensor CCD or CMOS target surface calculated previously.

为了减小计算量,我们可以设定能量阈值,进行点扩散函数的简化。对于BGR三通道图像,需要对三个通道分别进行卷积模糊,如图3所示,由于平面屏蔽玻璃丝网对光谱响应函数影响很小,对于测量得到的三通道的光谱响应中心波长λBGR,假设取450nm,540nm,660nm。以蓝色通道为例,设置能量阈值thresh为0.9,即需要满足:In order to reduce the amount of calculation, we can set the energy threshold and simplify the point spread function. For the BGR three-channel image, the three channels need to be convoluted and blurred separately, as shown in Figure 3. Since the plane shielding glass mesh has little effect on the spectral response function, the measured spectral response center wavelengths of the three channels λ B , λ G , λ R are assumed to be 450nm, 540nm, and 660nm. Taking the blue channel as an example, the energy threshold thresh is set to 0.9, which needs to meet the following conditions:

此时简化的模糊核大小就只有14×14大小,此时再将简化的模糊核代替原始退化公式中的hc(x,y;λ)函数,并与蓝色通道图像进行卷积退化,即可获取该通道的模糊图像。对G通道和R通道执行同样的操作,最终将三通道合并即可获得最终的模糊图像。At this time, the simplified blur kernel size is only 14×14. At this time, the simplified blur kernel replaces the h c (x, y; λ) function in the original degradation formula and performs convolution degradation with the blue channel image to obtain the blurred image of this channel. The same operation is performed on the G channel and the R channel, and finally the three channels are merged to obtain the final blurred image.

最后根据PSNR和SSIM函数来计算原始清晰色板图和模糊图像之间的差异值:Finally, the difference between the original clear color plate image and the blurred image is calculated based on the PSNR and SSIM functions:

其中m,n为先前测量得到的图像宽和高,bitdepth为图像深度,μxyxyxy为清晰图像与模糊图像的均值、方差、协方差;c1,c2为常数。Where m and n are the image width and height measured previously, bitdepth is the image depth, μ x , μ y , σ x , σ y , σ xy are the mean, variance and covariance of the clear image and the blurred image; c 1 and c 2 are constants.

PSNR描述的是待评图像与参考图像之间的失真,值越大表明失真越小;SSIM描述的是两个图像的结构相似性,值越大,表明二者结构越相似。通过两个评价指标值的大小,实现平面屏蔽玻璃丝网导致图像恶化效果的图像退化快速计算与评估。PSNR describes the distortion between the image to be evaluated and the reference image. The larger the value, the smaller the distortion. SSIM describes the structural similarity of the two images. The larger the value, the more similar the structures are. Through the values of the two evaluation indicators, the image degradation caused by the flat shielding glass mesh can be quickly calculated and evaluated.

本发明公开和提出的方法,本领域技术人员可通过借鉴本文内容,适当改变条件需求和参数实现,尽管本发明的算法已通过较佳实施例子进行了描述,相关技术人员明显能在不脱离本发明内容、精神和范围内对本文所述的方法和技术路线进行改动或重新组合,来实现最终的制备技术。特别需要指出的是,所有相类似的替换和改动对本领域技术人员来说是显而易见的,他们都被视包括在本发明精神、范围和内容中。The methods disclosed and proposed by the present invention can be implemented by those skilled in the art by appropriately changing the conditions, requirements and parameters by referring to the contents of this article. Although the algorithm of the present invention has been described by preferred embodiments, relevant technical personnel can obviously modify or re-combine the methods and technical routes described herein without departing from the content, spirit and scope of the present invention to achieve the final preparation technology. It should be particularly noted that all similar substitutions and modifications are obvious to those skilled in the art, and they are all considered to be included in the spirit, scope and content of the present invention.

Claims (2)

1. A method for evaluating an image deterioration effect caused by a planar screen glass wire, characterized by: the method comprises the following steps:
s1, given shielding effectiveness and test frequency or frequency band requirements, calculating light transmittance and determining line width and line period of a planar shielding glass screen;
s2, giving related plane shielding glass silk screen parameters and camera parameters, and obtaining a silk screen point diffusion function;
the screen parameters and the camera parameters described in step S2 include:
length and width b of light-transmitting part of shielding silk screen x ,b y
Grating constant d of shielding silk screen x ,d y
Mesh number N of shielding silk screen in x direction and y direction 1 ,N 2
A camera focal length f;
camera target surface size s;
camera resolution r= (m, n);
spectral center wavelength lambda of response of three channels of BRG BGR
The step S2 includes:
the size of the target surface of the camera is expressed as the length of the corner line of the rectangular target surface in inches, the length of 1 inch is 16mm, and the aspect ratio of the sensor is set to be 4:3;
when the target surface size s is given 1 Then, the diagonal line length s of the sensor is calculated according to the target surface size 2
s 2 =16*s 1
Then according to the aspect ratio s w :s h =4:3, setCalculating the actual physical length of the target surface:
s w =12.8*s 1 ,s h =9.6*s 1
in the fuzzy core representation, the coordinates are symmetrical about 0, so the actual physical length is halved, i.e. the half-axis length in length and width of the target surface is represented:
estimating diffraction angle theta of light in two directions according to paraxial approximation principle xy The method comprises the following steps of:
estimating the diffusion function of the plane shielding glass fiber mesh points:
wherein the method comprises the steps of
Wherein I is 0 Representing the intensity of light produced by a single slit at the center of the pattern; x and y respectively represent the pixel point at the target surface [ -x ] l ,x l ],[-y l ,y l ]Physical coordinates on the axis; delta xy Representing the optical path difference of light in the x, y directions, alpha 1 、α 2 、β 1 、β 2 Is an intermediate variable;
s3, multiplying the point spread function by the calculated light transmittance, and carrying out attenuation on light intensity distribution to obtain a diffraction degradation model;
in the step S3, due to the problem of the shielding net, the transmittance of the light is reduced, that is, the image becomes dim, and the transmittance of the central stage is derived by combining the planar shielding glass fiber lattice point diffusion function with the transmittance model of Ulrich:
the diffraction degradation model of the planar shielding glass mesh can be derived by combining the point spread functions as follows:
wherein f c (x, y) represents a degraded image on the image channel c, h c (x,y; λ) represents the point spread function, g, on the image channel c c (x, y; λ) the physical coordinates of the image sensor CCD or CMOS target surface;
s4, setting an energy threshold, simplifying a point spread function, and obtaining a fuzzy core after simplification;
in the simplification process described in step S4, the intensity I of the light generated in the center of the pattern is set 0 In units 1, then for any channel c in RGB, the point spread function is represented on the x-axis and y-axis as:
for x, y intervals are [ -x respectively l ,x l ],[-y l ,y l ]X, y in the above formula are required to satisfy:
-x l ≤x≤x l ,-y l ≤y≤y l
setting thresh as a simplified fuzzy core threshold, wherein the value is between 0 and 1, and truncated effective area [ -x ] exists s ,x s ],[-y s ,y s ]The method meets the following conditions:
0≤x s ≤x l ,0≤y s ≤y l
so that the ratio of the sum of the energies of the elements within the active area to the total energy is greater than a given threshold, namely:
this is an inequality with respect to the wavelength λ, when the spectral response wavelength λ, [ -x ] of a given channel c s ,x s ]×[-y s ,y s ]The rectangle represented is then the fuzzy core of the channel, noted ask c (x,y;λ);
When c=1, 2,3, a fuzzy core of three channels of RGB is obtained, wherein c=1 represents an R channel, c=2 represents a G channel, and c=3 represents a B channel;
s5, performing fuzzy kernel calculation on different channels of the color plate graph according to different spectral response frequencies according to fuzzy kernel representation, and convolving the fuzzy kernel calculation with the channel image to obtain a diffraction degradation fuzzy graph;
s6, calculating a difference value between an original clear color plate image and a blurred image according to PSNR and SSIM functions, and realizing rapid calculation and evaluation of image degradation of an image degradation effect caused by a plane shielding glass silk screen;
the step S6 includes:
let the point spread function h in the diffraction degradation model c (x, y; lambda) is equal to the reduced fuzzy kernel k c (x, y; λ) to obtain a model of the generation of the blurred image:
r, G, B three-channel image g for clear image g (x, y) c (x, y; lambda) acquiring a degraded image f of each channel by sequentially applying the above model c (x, y) and stitching to obtain a final blurred degraded image f (x, y);
image evaluation for blur map deterioration effect the degree of deterioration between the original undegraded clear color plate image g (x, y) and the blurred image f (x, y) degraded with the blur kernel was evaluated using two functions of PSNR and SSIM:
where m, n are the width and height of the image, bitdepth is the depth of the image, μ xyxyxy Is the mean, variance and covariance of the images x and y; c 1 ,c 2 Is constant.
2. A method for evaluating an image deterioration effect caused by a planar screen glass wire according to claim 1, wherein: the step S1 includes:
s101, giving shielding effectiveness SE, and calculating light transmittance T according to the shielding effectiveness, wherein the calculation mode is as follows:
SE=-10log(T)
s102, through a Ulrich's model, the transmittance T of a vertical incidence plane shielding glass screen is approximately as follows:
wherein T (0, 0) is the transmittance of the silk screen under the conditions of zero frequency and zero wave vector, namely the transmittance ratio of the incident electromagnetic wave is between 0 and 1, and g is the line period of the silk screen; 2a is the line width of the silk screen; the thickness of the silk screen is t;
the applicable conditions of the Ulrich's model are as followsWhere λ is the wavelength of the incident wave, n g ,n 0 Respectively the refractive index of the substrate and the refractive index of the medium at two sides of the silk screen;
giving wavelength lambda, and simultaneously giving the ratio of a to g, and calculating a and g through a Ulrich' S model based on the light transmittance calculated in the step S101;
where g is also called grating constant, and its line period size in x, y direction is expressed as grating constant d x ,d y The method comprises the steps of carrying out a first treatment on the surface of the a represents the radius of the wire, which satisfies the following relation with the grating constant:
2a=d x -b x =d y -b y
wherein b x ,b y The length and width of the light-transmitting part in the x and y directions of the grating are respectively shown.
CN202311088994.2A 2023-08-28 2023-08-28 A method for evaluating the image degradation effect caused by flat shielding glass screens Active CN117058118B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311088994.2A CN117058118B (en) 2023-08-28 2023-08-28 A method for evaluating the image degradation effect caused by flat shielding glass screens

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311088994.2A CN117058118B (en) 2023-08-28 2023-08-28 A method for evaluating the image degradation effect caused by flat shielding glass screens

Publications (2)

Publication Number Publication Date
CN117058118A CN117058118A (en) 2023-11-14
CN117058118B true CN117058118B (en) 2024-04-05

Family

ID=88664296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311088994.2A Active CN117058118B (en) 2023-08-28 2023-08-28 A method for evaluating the image degradation effect caused by flat shielding glass screens

Country Status (1)

Country Link
CN (1) CN117058118B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117406213B (en) * 2023-11-16 2025-03-11 深圳市安卫普科技有限公司 Detection equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220945A (en) * 2017-04-12 2017-09-29 重庆大学 The restored method of the pole blurred picture of multiple degeneration
CN108305230A (en) * 2018-01-31 2018-07-20 上海康斐信息技术有限公司 A kind of blurred picture integrated conduct method and system
CN112132758A (en) * 2020-08-05 2020-12-25 浙江工业大学 Image restoration method based on asymmetric optical system point spread function model

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9800866B2 (en) * 2015-04-08 2017-10-24 Algolux Inc. Method for providing an estimation of a point spread function indicative of intrinsic camera blur
WO2021229575A1 (en) * 2020-05-12 2021-11-18 Pxe Computation Imaging Ltd. System and method for digital optical aberration correction and spectral imaging

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220945A (en) * 2017-04-12 2017-09-29 重庆大学 The restored method of the pole blurred picture of multiple degeneration
CN108305230A (en) * 2018-01-31 2018-07-20 上海康斐信息技术有限公司 A kind of blurred picture integrated conduct method and system
CN112132758A (en) * 2020-08-05 2020-12-25 浙江工业大学 Image restoration method based on asymmetric optical system point spread function model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
非平面态屏蔽金属网建模的等效算法研究;杨添棋;苏东林;戴飞;;电子测量技术;20081215(12);全文 *

Also Published As

Publication number Publication date
CN117058118A (en) 2023-11-14

Similar Documents

Publication Publication Date Title
Raskar et al. Glare aware photography: 4D ray sampling for reducing glare effects of camera lenses
US20090273843A1 (en) Apparatus and Method for Reducing Glare in Images
US6819314B2 (en) Intensity flattener for optical mouse sensors
CN117058118B (en) A method for evaluating the image degradation effect caused by flat shielding glass screens
JP3483948B2 (en) Defect detection device
US20120001058A1 (en) Multi-aperture visual sensor with hyperacuity
CN107431748A (en) Using the imaging sensor with one or more damping layers without lens imaging system
JP2004505512A (en) Method and apparatus for image mosaicing
CN111123538B (en) Image processing method and method for adjusting diffraction screen structure based on point spread function
CN106527039A (en) Resolution test chart and resolution test method of ultra-wide angle lens
JP3185559B2 (en) Surface defect inspection equipment
TW201221901A (en) Method and device for evaluating surface shape
Jemec et al. 2D sub-pixel point spread function measurement using a virtual point-like source
Chen et al. Weighted sparse representation and gradient domain guided filter pyramid image fusion based on low-light-level dual-channel camera
WO2015072253A1 (en) Conductive film, touch panel and display device provided with same, and method for evaluating visibility of wiring
Khan et al. High-density single shot 3D sensing using adaptable speckle projection system with varying preprocessing
Feng et al. Automatic exposure control method for 3D shape measurement of specular surface based on digital fringe projection
CN210867853U (en) Imaging layer, imaging device, electronic apparatus, wave zone plate structure and photosensitive pixel
JP4353479B2 (en) Unevenness inspection apparatus, unevenness inspection method, and program for causing computer to inspect shading unevenness
CN105785724B (en) Mask graph optimization method, optimal focal plane position measurement method and system
CN111988499A (en) Imaging layer, imaging device, electronic apparatus, wave zone plate structure and photosensitive pixel
CN105278093B (en) It is a kind of to be used for the system of astronomical target imaging
CN112985302B (en) Three-dimensional measurement system, method, apparatus, medium, and electronic device
TW201250370A (en) Image calculation and measurement apparatus and method
PL164250B1 (en) Method of and apparatus for detecting and classifying surface corrugation

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