CN114881877A - Noise reduction method based on image airspace - Google Patents
Noise reduction method based on image airspace Download PDFInfo
- Publication number
- CN114881877A CN114881877A CN202210486229.5A CN202210486229A CN114881877A CN 114881877 A CN114881877 A CN 114881877A CN 202210486229 A CN202210486229 A CN 202210486229A CN 114881877 A CN114881877 A CN 114881877A
- Authority
- CN
- China
- Prior art keywords
- noise reduction
- image
- degree
- noise
- value
- 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
- 230000009467 reduction Effects 0.000 title claims abstract description 66
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000011156 evaluation Methods 0.000 claims abstract description 68
- 238000001914 filtration Methods 0.000 claims abstract description 47
- 230000003044 adaptive effect Effects 0.000 claims abstract description 29
- 238000012545 processing Methods 0.000 claims abstract description 17
- 230000002596 correlated effect Effects 0.000 claims description 10
- 230000000875 corresponding effect Effects 0.000 claims description 8
- 230000000007 visual effect Effects 0.000 claims description 5
- 238000013461 design Methods 0.000 claims description 4
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims 2
- 239000000203 mixture Substances 0.000 claims 1
- 230000006870 function Effects 0.000 description 43
- 230000008569 process Effects 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 230000009977 dual effect Effects 0.000 description 3
- 238000003384 imaging method Methods 0.000 description 3
- 230000002146 bilateral effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000008447 perception Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000035945 sensitivity Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008713 feedback mechanism Effects 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 230000003902 lesion Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/40—Analysis of texture
- G06T7/49—Analysis of texture based on structural texture description, e.g. using primitives or placement rules
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像噪声抑制技术领域,特别涉及一种基于图像空域的降噪方法。The invention relates to the technical field of image noise suppression, in particular to a noise reduction method based on image space.
背景技术Background technique
图像在采集过程中会随着传感器及其外界环境引入不同程度的噪声,尤其是光源照明不充足的情况下,会造成图像信噪比降低,细节纹理丢失,从而影响图像质量,使得最终显示出来图像效果影响观感,在医疗图像中甚至淹没目标信号,导致病灶识别困难。相关的国际标准组织(ISO、CPIQ)也定义了噪声的量化具体过程,其中一个能够代表人眼观测图像的综合噪声指标是视觉噪声vn(visual noise),视觉噪声vn综合考虑了人眼对不同频率的图像灰度信号及颜色信号的敏感度差异。针对vn进行降噪算法设计的一般方法是根据人眼的CSF(Contrast Sensitivity Functions)特性,进行变换域上的噪声滤波,然后再通过反变换操作,把滤除噪声后的信号恢复出来;但是此方法计算过程往往比较复杂,耗时长,硬件实现较困难,在带宽和延迟要求严格的领域需要投入较多的资源和成本。In the process of image acquisition, different levels of noise will be introduced with the sensor and its external environment, especially when the light source is insufficiently illuminated, which will cause the image signal-to-noise ratio to decrease and the detailed texture to be lost, thereby affecting the image quality and making the final display. Image effects affect the look and feel, and even submerge target signals in medical images, making it difficult to identify lesions. The relevant international standard organizations (ISO, CPIQ) also define the specific process of noise quantification. One of the comprehensive noise indicators that can represent the image observed by the human eye is visual noise vn (visual noise). The sensitivity difference between the grayscale signal and the color signal of the image. The general method of noise reduction algorithm design for vn is to filter the noise in the transform domain according to the CSF (Contrast Sensitivity Functions) characteristics of the human eye, and then restore the filtered signal through the inverse transform operation; but this The calculation process of the method is often complex, time-consuming, and difficult to implement in hardware. In the fields with strict bandwidth and delay requirements, more resources and costs need to be invested.
发明内容SUMMARY OF THE INVENTION
为了解决现有技术的问题,本发明提供了一种基于图像空域的降噪方法,所述技术方案如下:In order to solve the problems in the prior art, the present invention provides a noise reduction method based on image space, and the technical solution is as follows:
本发明提供了一种基于图像空域的降噪方法,包括以下步骤:The present invention provides a noise reduction method based on image space, comprising the following steps:
S1、对待处理的图像数据进行滤波窗口设置,将所述滤波窗口的中心点值记作Pc,将所述中心点值周围的有效邻域点值分别记作P0,P1,P2,…,Pn,并相应形成集合{|Pc-Pi|}i=0,1,2...n,记作D,Di为该集合内的各个元素,将所述集合中最大值和最小值分别记作Dmax和Dmin;S1. Perform filter window settings on the image data to be processed, denote the central point value of the filtering window as P c , and denote the valid neighborhood point values around the central point value as P 0 , P 1 , and P 2 , respectively. , . _ _ _ The maximum and minimum values are denoted as Dmax and Dmin , respectively;
S2、根据所述滤波窗口的中心点值Pc,利用HVS程度评估函数以得到HVS程度,记作d1;S2, according to the central point value P c of the filtering window, utilize the HVS degree evaluation function to obtain the HVS degree, denoted as d 1 ;
S3、根据所述HVS程度d1以及预设的降噪阈值参数,设计局部纹理评估函数,将所述滤波窗口的最大点值输入至所述局部纹理评估函数进行处理,以得到局部纹理评估程度,记作d2;S3. Design a local texture evaluation function according to the HVS degree d1 and the preset noise reduction threshold parameter, and input the maximum point value of the filtering window into the local texture evaluation function for processing, so as to obtain the local texture evaluation degree , denoted as d 2 ;
S4、根据所述局部纹理评估程度d2,对所述集合中最大值和最小值进行自适应阈值函数处理,以得到自适应阈值;S4, according to the local texture evaluation degree d 2 , perform adaptive threshold function processing on the maximum value and the minimum value in the set to obtain an adaptive threshold;
S5、根据所述自适应阈值,对所述集合中的各元素进行自适应权重函数处理,以得到各个元素对应点的权重;S5, according to the adaptive threshold, perform adaptive weight function processing on each element in the set to obtain the weight of the corresponding point of each element;
S6、利用加权求和的方式计算得到降噪后的图像估计值。S6. Calculate the estimated value of the image after noise reduction by means of weighted summation.
进一步地,根据不同的观测条件,相应调整降噪阈值参数;所述降噪阈值参数包括第一降噪阈值参数、第二降噪阈值参数和第三降噪阈值参数,分别记作E1、E2、E3,所述第一降噪阈值参数与显示设备所处环境的最大亮度成正相关,所述第二降噪阈值参数与显示设备输出的最大亮度成正相关,所述第三降噪阈值参数与图像观察者对显示设备单位像素的目视张角成正相关。Further, according to different observation conditions, adjust the noise reduction threshold parameter accordingly; the noise reduction threshold parameter includes the first noise reduction threshold parameter, the second noise reduction threshold parameter and the third noise reduction threshold parameter, which are respectively denoted as E 1 , E 2 , E 3 , the first noise reduction threshold parameter is positively correlated with the maximum brightness of the environment where the display device is located, the second noise reduction threshold parameter is positively correlated with the maximum brightness output by the display device, and the third noise reduction threshold parameter is positively correlated with the maximum brightness output by the display device. The threshold parameter is positively related to the viewing angle of the image viewer per pixel of the display device.
进一步地,在步骤S2中,所述HVS程度评估函数的公式如下:Further, in step S2, the formula of the HVS degree evaluation function is as follows:
当L≤2Depth-1时,d1=21-Depth×LWhen L≤2 Depth-1 , d 1 =2 1-Depth ×L
当L﹥2Depth-1时,d1=2-21-Depth×LWhen L>2 Depth-1 , d 1 =2-2 1-Depth ×L
其中,Depth为图像数据位深,L为中心点亮度值。Among them, Depth is the bit depth of the image data, and L is the brightness value of the center point.
进一步地,在步骤S3中,所述局部纹理评估函数的公式如下:Further, in step S3, the formula of the local texture evaluation function is as follows:
当Dmax≤E3时,d2=1;When D max ≤ E 3 , d 2 =1;
当E3<Dmax≤Thend时, When E 3 <D max ≤Th end ,
当Dmax>Thend时,d2=0;When D max >Th end , d 2 =0;
其中,Thend=E1-E2×d1+m1,其中,m1为图像噪声水平参数。Wherein, Th end =E 1 -E 2 ×d 1 +m 1 , where m 1 is an image noise level parameter.
进一步地,在步骤S4中,所述自适应阈值函数的公式如下:Further, in step S4, the formula of the adaptive threshold function is as follows:
当d2=0时, When d 2 =0,
当0<d2<1时, When 0<d 2 <1,
当d2=1时,Thlow=Thhigh=Dmax。When d 2 =1, Th low =Th high =D max .
进一步地,在步骤S5中,所述自适应权重函数的公式如下:Further, in step S5, the formula of the adaptive weight function is as follows:
当0≤Di<Thlow时,wi=1When 0≤D i <Th low , w i =1
当Thlow≤Di<Thhigh时, When Th low ≤ D i <Th high ,
当Di>Thhigh时,wi=0When D i >Th high , w i =0
其中,Di为所述集合D中的元素,wi为Pi对应点的权重,i=0,1,2...n。Wherein, D i is the element in the set D, wi is the weight of the corresponding point of P i , i=0, 1, 2...n.
进一步地,在步骤S6中,所述滤波窗口的中心点值降噪后的图像估计值的计算公式如下:Further, in step S6, the calculation formula of the image estimated value after the noise reduction of the center point value of the filtering window is as follows:
其中,Pi为中心点Pc周围的有效邻域点值,Output为图像估计值。Among them, Pi is the effective neighborhood point value around the center point P c , and Output is the image estimated value.
进一步地,一个滤波窗口对应一个滤波周期,根据当前滤波周期内的局部纹理评估程度以及前一个滤波周期内的局部纹理评估程度,设计局部噪声评估函数,将所述滤波窗口的最大点值输入至所述局部噪声评估函数进行处理,以得到局部噪声评估程度,记作d3;Further, a filter window corresponds to a filter cycle, and according to the local texture evaluation degree in the current filter cycle and the local texture evaluation degree in the previous filter cycle, a local noise evaluation function is designed, and the maximum point value of the filter window is input to The local noise evaluation function is processed to obtain the local noise evaluation degree, denoted as d 3 ;
将前一个滤波周期内的局部噪声评估程度作为当前滤波周期内的图像噪声水平参数,以计算当前滤波周期内的局部纹理评估程度。The local noise evaluation degree in the previous filtering cycle is taken as the image noise level parameter in the current filtering cycle to calculate the local texture evaluation degree in the current filtering cycle.
进一步地,所述局部噪声评估函数的公式如下:Further, the formula of the local noise evaluation function is as follows:
d3=d2×Dmax+(1-d2)×m2 d 3 =d 2 ×D max +(1−d 2 )×m 2
其中,m2为前一个滤波周期中计算的局部纹理评估程度。where m 2 is the local texture evaluation degree calculated in the previous filtering cycle.
进一步地,当中心点值Pc为0或者最大值时,所述HVS程度d1为0,所述HVS程度评估函数的函数形态为高斯曲线;所述局部纹理评估函数的函数形态为梯形曲线。Further, when the central point value P c is 0 or the maximum value, the HVS degree d 1 is 0, and the function shape of the HVS degree evaluation function is a Gaussian curve; the function shape of the local texture evaluation function is a trapezoidal curve. .
本发明提供的技术方案带来的有益效果如下:The beneficial effects brought by the technical scheme provided by the invention are as follows:
a.减少了图像降噪的运算处理量,能够快速去噪,降低了相关硬件设备要求;a. It reduces the computational processing amount of image noise reduction, can quickly denoise, and reduces the requirements of related hardware equipment;
b.能够适配多种传感器的原始图像数据,具有较好的兼容性和灵活性。b. It can adapt to the original image data of various sensors, and has better compatibility and flexibility.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例提供的基于图像空域的降噪方法的流程示意图;FIG. 1 is a schematic flowchart of a noise reduction method based on image space provided by an embodiment of the present invention;
图2是本发明实施例提供的基于图像空域的降噪方法中HVS程度评估函数示意图;2 is a schematic diagram of an HVS degree evaluation function in a noise reduction method based on image space provided by an embodiment of the present invention;
图3是本发明实施例提供的基于图像空域的降噪方法中局部纹理评估函数示意图;3 is a schematic diagram of a local texture evaluation function in an image space-based noise reduction method provided by an embodiment of the present invention;
图4是本发明实施例提供的基于图像空域的降噪方法的滤波窗口示意图。FIG. 4 is a schematic diagram of a filtering window of a noise reduction method based on an image space domain provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、装置、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, apparatus, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
在本发明的一个实施例中,提供了一种基于图像空域的降噪方法,参见图1,包括以下步骤:In an embodiment of the present invention, a noise reduction method based on image space is provided, referring to FIG. 1 , including the following steps:
S1、对待处理的图像数据进行滤波窗口设置,一个滤波窗口对应一个滤波周期,将所述滤波窗口的中心点值记作Pc,将所述中心点值周围的有效邻域点值分别记作P0,P1,P2,…,Pn,并相应形成集合{|Pc-Pi|}i=0,1,2...n,记作D,将所述集合中最大值和最小值分别记作Dmax和Dmin;S1, filter window settings are performed on the image data to be processed, one filter window corresponds to one filter cycle, the center point value of the filter window is denoted as P c , and the effective neighborhood point values around the center point value are respectively denoted as P 0 , P 1 , P 2 , . and the minimum value are denoted as Dmax and Dmin respectively;
S2、根据所述滤波窗口的中心点值Pc,利用HVS程度评估函数以得到HVS程度,记作d1;S2, according to the central point value P c of the filtering window, utilize the HVS degree evaluation function to obtain the HVS degree, denoted as d 1 ;
其中,HVS程度评估函数通过Pc计算HVS程度d1,d1的取值范围为0~1,由于人眼对于中间灰度的纹理和噪声感知与过暗、过亮区域相比更加明显,因此当Pc的值靠近中间时,HVS程度评估函数取得最大值,当Pc的值为0或者最大值时,HVS程度为0,HVS程度评估函数的一个典型的函数形态是如图2所示的高斯曲线。Among them, the HVS degree evaluation function calculates the HVS degree d 1 through P c , and the value of d 1 ranges from 0 to 1. Since the human eye perceives the texture and noise of the middle gray level more obviously than the too dark and too bright areas, Therefore, when the value of P c is close to the middle, the HVS degree evaluation function achieves the maximum value. When the value of P c is 0 or the maximum value, the HVS degree is 0. A typical function form of the HVS degree evaluation function is as shown in Figure 2. The Gaussian curve shown.
S3、根据所述HVS程度d1以及预设的降噪阈值参数,设计局部纹理评估函数,将所述滤波窗口的最大点值输入至所述局部纹理评估函数进行处理,以得到局部纹理评估程度,记作d2;S3. Design a local texture evaluation function according to the HVS degree d1 and the preset noise reduction threshold parameter, and input the maximum point value of the filtering window into the local texture evaluation function for processing, so as to obtain the local texture evaluation degree , denoted as d 2 ;
其中,根据不同的观测条件,例如,观察者与显示器距离、图像显示大小、观测角度等外部观测环境,相应调整降噪阈值参数;所述降噪阈值参数包括第一降噪阈值参数、第二降噪阈值参数和第三降噪阈值参数,分别记作E1、E2、E3,所述第一降噪阈值参数与显示设备所处环境的最大亮度成正相关,所述第二降噪阈值参数与显示设备输出的最大亮度成正相关,E1、E2为HVS程度在算法中的参与程度,两者共同制约图像高光部分参与d2的计算,环境光亮度明显超过显示器最大亮度时,图像中更多高亮的像素参与到d2的计算。所述第三降噪阈值参数与图像观察者对显示设备单位像素的目视张角成正相关,其对应显示器单位像素对人眼的张角,可通过显示器像素大小除以观察距离进行计算。所述降噪阈值参数可以人为进行预先设定,也可以通过AI摄像头对观测者以及显示设备进行实时识别检测,通过算法得到当前的观测条件进而相应调整噪阈值参数,以实现参数的自动调整。Wherein, according to different observation conditions, for example, the external observation environment such as the distance between the observer and the display, the image display size, the observation angle, etc., the noise reduction threshold parameter is adjusted accordingly; the noise reduction threshold parameter includes the first noise reduction threshold parameter, the second noise reduction threshold parameter The noise reduction threshold parameter and the third noise reduction threshold parameter are respectively denoted as E 1 , E 2 , and E 3 , the first noise reduction threshold parameter is positively correlated with the maximum brightness of the environment where the display device is located, and the second noise reduction threshold parameter is positively correlated. The threshold parameter is positively correlated with the maximum brightness output by the display device. E 1 and E 2 are the degree of participation of the HVS degree in the algorithm. The two jointly restrict the participation of the image highlights in the calculation of d 2. When the ambient light brightness obviously exceeds the maximum brightness of the display, More bright pixels in the image participate in the calculation of d2 . The third noise reduction threshold parameter is positively correlated with the viewing angle of the image observer to the unit pixel of the display device, which corresponds to the opening angle of the unit pixel of the display to the human eye, which can be calculated by dividing the pixel size of the display by the viewing distance. The noise reduction threshold parameter can be preset manually, or the AI camera can be used to identify and detect the observer and the display device in real time, and the current observation condition can be obtained through an algorithm to adjust the noise threshold parameter accordingly, so as to realize the automatic adjustment of the parameters.
局部纹理评估程度d2的取值范围同样0~1,Dmax越小,d2取值越大,局部纹理评估函数的一个典型的函数形状是如图3所示的梯形函数,具体地,所述局部纹理评估函数的公式如下:The value range of the local texture evaluation degree d 2 is also 0 to 1. The smaller D max is, the larger the value of d 2 is. A typical function shape of the local texture evaluation function is a trapezoidal function as shown in Figure 3. Specifically, The formula of the local texture evaluation function is as follows:
当Dmax≤E3时,d2=1;When D max ≤ E 3 , d 2 =1;
当E3<Dmax≤Thend时, When E 3 <D max ≤Th end ,
当Dmax>Thend时,d2=0;When D max >Th end , d 2 =0;
式中,Thend=E1-E2×d1+m1,m1为图像噪声水平参数。In the formula, Th end =E 1 -E 2 ×d 1 +m 1 , and m 1 is an image noise level parameter.
需要注意的是,m1的取值有两种方式,分别对应到所述降噪方法的两种模式,即FIR(Finite Impulse Response)模式和IIR(Infinite Impulse Response)模式。在FIR模式中,前一个窗口的滤波不影响后一个窗口的滤波,因而将m1作为一个固定参数进行输入,以进一步地减少运算量。It should be noted that there are two modes for the value of m 1 , which correspond to the two modes of the noise reduction method, namely, the FIR (Finite Impulse Response) mode and the IIR (Infinite Impulse Response) mode. In FIR mode, the filtering of the previous window does not affect the filtering of the latter window, so m 1 is input as a fixed parameter to further reduce the amount of computation.
在IIR模式中,前一个窗口的滤波会影响后一个窗口的滤波,因而通过m1建立前后反馈机制,这种模式下算法的噪声和局部纹理评估更准确,降噪效果较好;具体地,根据当前滤波周期内的局部纹理评估程度以及前一个滤波周期内的局部纹理评估程度,设计局部噪声评估函数,将所述滤波窗口的最大点值输入至所述局部噪声评估函数进行处理,以得到局部噪声评估程度,记作d3,所述局部噪声评估函数的公式如下:In the IIR mode, the filtering of the previous window will affect the filtering of the latter window, so the front and back feedback mechanism is established through m 1. In this mode, the noise and local texture evaluation of the algorithm is more accurate, and the noise reduction effect is better; Specifically, According to the local texture evaluation degree in the current filtering cycle and the local texture evaluation degree in the previous filtering cycle, a local noise evaluation function is designed, and the maximum point value of the filtering window is input into the local noise evaluation function for processing to obtain The local noise evaluation degree, denoted as d 3 , the formula of the local noise evaluation function is as follows:
d3=d2×Dmax+(1-d2)×m2 d 3 =d 2 ×D max +(1−d 2 )×m 2
其中,m2为前一个滤波周期中计算的局部纹理评估程度。where m 2 is the local texture evaluation degree calculated in the previous filtering cycle.
将前一个滤波周期内的局部噪声评估程度作为当前滤波周期内的图像噪声水平参数m1,以计算当前滤波周期内的局部纹理评估程度。在第一个滤波周期内中,图像噪声水平参数m1使用预设的初始值。The local noise evaluation degree in the previous filtering cycle is taken as the image noise level parameter m 1 in the current filtering cycle to calculate the local texture evaluation degree in the current filtering cycle. In the first filtering cycle, the image noise level parameter m 1 uses a preset initial value.
S4、根据所述局部纹理评估程度d2,对所述集合中最大值和最小值进行自适应阈值函数处理,以得到自适应阈值;S4, according to the local texture evaluation degree d 2 , perform adaptive threshold function processing on the maximum value and the minimum value in the set to obtain an adaptive threshold;
其中,采用双自适应阈值设置方式以得到自适应阈值Thlow、Thhigh,所述自适应阈值函数的公式如下:Wherein, a dual adaptive threshold setting method is adopted to obtain the adaptive thresholds Th l ow and Th high , and the formula of the adaptive threshold function is as follows:
当d2=0时, When d 2 =0,
当0<d2<1时, When 0<d 2 <1,
当d2=1时,Thlow=Thhigh=Dmax。When d 2 =1, Th low =Th high =D max .
S5、根据所述自适应阈值,对所述集合中的各元素进行自适应权重函数处理,以得到各个元素对应点的权重;S5, according to the adaptive threshold, perform adaptive weight function processing on each element in the set to obtain the weight of the corresponding point of each element;
其中,所述自适应权重函数的公式如下:Wherein, the formula of the adaptive weight function is as follows:
当0≤Di<Thlow时,wi=1When 0≤D i <Th low , w i =1
当Thlow≤Di<Thhigh时, When Th low ≤ D i <Th high ,
当Di>Thhigh时,wi=0When D i >Th high , w i =0
其中,Di为所述集合D中的元素,wi为Pi对应点的权重,i=0,1,2...n。Wherein, D i is the element in the set D, wi is the weight of the corresponding point of P i , i=0, 1, 2...n.
S6、利用加权求和的方式计算得到降噪后的图像估计值。S6. Calculate the estimated value of the image after denoising by means of weighted summation.
其中,所述滤波窗口的中心点值降噪后的图像估计值的计算公式如下:Wherein, the calculation formula of the image estimated value after the noise reduction of the center point value of the filtering window is as follows:
其中,Pi为中心点Pc周围的有效邻域点值,Output为图像估计值。Among them, Pi is the effective neighborhood point value around the center point P c , and Output is the image estimated value.
在步骤S6之后还包括数据后处理,包括demosaic、gamma、sharpening等过程。After step S6, it also includes data post-processing, including demosaic, gamma, sharpening and other processes.
参见图1,本实施例利用HVS程度评估器、局部纹理程度评估器、局部噪声程度评估器、双自适应阈值权重计算器以进行相应函数算法的处理。其中,局部噪声程度评估器只有在IIR模式下此算法模块才激活使能。在每个滤波窗口中,利用上述评估器,通过HVS程度评估函数计算d1,通过局部纹理评估函数计算d2,可以根据观察者与显示器距离及图像显示大小、观测角度等外部环境来计算人眼观测角度,调整合适的降噪阈值参数。在空间滤波中通过d1、d2、E1、E2、E3计算当前滤波噪声系数,以得到局部噪声评估程度d3,由于图像在一定范围内具有连续性,因此可以将d2、d3作为反馈数据给下一个滤波过程中的局部纹理程度评估器和局部噪声程度评估器,这种情况下滤波算法可以从FIR滤波器转变成IIR滤波器,最后计算双自适应阈值得到权重计算函数,通过滤波窗口内各元素与中心的差异值计算滤波窗口内每个元素的权重,通过加权求和的方式得到目标位置的去噪估计值。Referring to FIG. 1 , this embodiment utilizes an HVS level estimator, a local texture level estimator, a local noise level estimator, and a dual adaptive threshold weight calculator to process corresponding function algorithms. Among them, the local noise level estimator can only be activated and enabled in this algorithm module in IIR mode. In each filter window, using the above evaluator, calculate d 1 through the HVS degree evaluation function, and calculate d 2 through the local texture evaluation function. Adjust the appropriate noise reduction threshold parameters according to the eye observation angle. In the spatial filtering, the current filtering noise coefficient is calculated by d 1 , d 2 , E 1 , E 2 , and E 3 to obtain the local noise evaluation degree d 3 . Since the image has continuity within a certain range, d 2 , d 3 is used as feedback data to the local texture level estimator and the local noise level estimator in the next filtering process. In this case, the filtering algorithm can be changed from FIR filter to IIR filter, and finally the double adaptive threshold is calculated to obtain the weight calculation function, the weight of each element in the filter window is calculated by the difference between each element in the filter window and the center, and the denoising estimate value of the target position is obtained by weighted summation.
本实施例相比于其它降噪方法,如余弦变换、小波变换、双边滤波、nlm等,本实施例综合考虑了HVS的特性、局部纹理特征、局部噪声程度的特点,并且可以根据实际应用情况将算法切换为IIR或者FIR两种模式,更加灵活;相比于变换域降噪等方法,本实施例的降噪方法直接在空间域上来操作,降低了运算复杂度,更利于硬件实现算法,对于特定行业,如医疗行业手术成像显示系统,系统的延迟和带宽要求严格的条件下也能够满足;对于HVS的噪声感知条件已知的情况下,可以得到显示设备与图像观察者的距离、观察角度等参数,相比于其它降噪方法,将这些必要的参数输入到降噪单元,能够获得视觉噪声感知更佳的图像质量;除此之外,双自适应阈值权重计算器也能够使图像保留较好的边缘及纹理细节,原理类似于双边滤波的保边特性。Compared with other noise reduction methods, such as cosine transform, wavelet transform, bilateral filtering, nlm, etc., this embodiment comprehensively considers the characteristics of HVS, local texture characteristics, and local noise levels, and can be adjusted according to actual application conditions. Switching the algorithm to IIR or FIR is more flexible; compared with methods such as transform domain noise reduction, the noise reduction method of this embodiment operates directly in the spatial domain, which reduces the computational complexity and is more conducive to hardware implementation of the algorithm. For specific industries, such as surgical imaging display systems in the medical industry, the system can also meet strict requirements on delay and bandwidth; for HVS noise perception conditions are known, the distance between the display device and the image observer, observation Compared with other noise reduction methods, inputting these necessary parameters into the noise reduction unit can obtain better image quality for visual noise perception; in addition, the dual adaptive threshold weight calculator can also make the image It retains better edge and texture details, and the principle is similar to the edge-preserving feature of bilateral filtering.
下面以一个尺寸的5×5滤波窗口进行举例说明:The following is an example of a 5×5 filter window of size:
(1)输入图像数据为原始raw数据,滤波窗口尺寸为5×5,中心点值为Pc,参见图4,集合D为{|Pc-Pi|}i=0,1,2...n,参见图4,当中心点像素为R、B通道时,n=7,当中心像素为G通道时,n=11;Dmax为集合D的最大值,选取工作模式为IIR模式。(1) The input image data is the original raw data, the filter window size is 5×5, the center point value is P c , see Figure 4, the set D is {|P c -P i |} i=0,1,2. ..n , see Figure 4, when the center pixel is R, B channel, n=7, when the center pixel is G channel, n=11; D max is the maximum value of the set D, and the selected working mode is IIR mode .
(2)计算HVS程度d1 (2) Calculate the degree of HVS d 1
所述HVS程度评估函数的公式如下:The formula of the HVS degree evaluation function is as follows:
当L≤2Depth-1时,d1=21-Depth×LWhen L≤2 Depth-1 , d 1 =2 1-Depth ×L
当L﹥2Depth-1时,d1=2-21-Depth×LWhen L>2 Depth-1 , d 1 =2-2 1-Depth ×L
其中,Depth为图像数据位深,L为中心点亮度值。由于人眼对G通道的敏感程度相对较高,当Pc处于G通道时,L=Pc,否则根据利用demosaic算法得到L,例如根据中心点周围的Gr、Gb通道通过插值的方法得到L。Among them, Depth is the bit depth of the image data, and L is the brightness value of the center point. Since the human eye is relatively sensitive to the G channel, when P c is in the G channel, L=P c , otherwise, L is obtained according to the demosaic algorithm, for example, L is obtained by interpolation according to the Gr and Gb channels around the center point. .
(3)计算局部纹理评估程度d2 (3) Calculate the local texture evaluation degree d 2
当Dmax≤E3时,d2=1;When D max ≤ E 3 , d 2 =1;
当E3<Dmax≤Thend时, When E 3 <D max ≤Th end ,
当Dmax>Thend时,d2=0;When D max >Th end , d 2 =0;
式中,Thend=E1-E2×d1+m1,m1为图像噪声水平参数,IIR模式下,m1通过前一个滤波周期中局部噪声程度评估器传递的参数进行取值。E1和E2是HVS程度d1在算法中的参与程度,E3与图像观察者对单位像素的目视张角成正相关。In the formula, Th end =E 1 -E 2 ×d 1 +m 1 , m 1 is the image noise level parameter, in the IIR mode, m 1 is valued by the parameter passed by the local noise level estimator in the previous filtering cycle. E 1 and E 2 are the degree of participation of HVS degree d 1 in the algorithm, and E 3 is positively related to the visual angle of the image observer to the unit pixel.
(4)计算并更新局部噪声评估程度d3:(4) Calculate and update the local noise evaluation degree d 3 :
所述局部噪声评估函数的公式如下:The formula of the local noise evaluation function is as follows:
d3=d2×Dmax+(1-d2)×m2 d 3 =d 2 ×D max +(1−d 2 )×m 2
其中,m2为前一个滤波周期中计算的局部纹理评估程度。where m 2 is the local texture evaluation degree calculated in the previous filtering cycle.
(5)通过d2计算自适应阈值(5) Calculate the adaptive threshold by d2
(6)通过双自适应阈值权重计算器得到滤波窗口中每个像素Pi对应的权重wi。根据如下公式得到降噪后的图像估计值:(6) The weight wi corresponding to each pixel P i in the filtering window is obtained through the double adaptive threshold weight calculator. The estimated value of the denoised image is obtained according to the following formula:
其中,Output为图像估计值。Among them, Output is the image estimation value.
本发明提供的基于图像空域的降噪方法基于hvs和纹理特征分析的进行空间滤波降噪,由于在空间域上进行处理,减少了计算量,同时此方法也能够适用于传感器原始raw数据和灰度数据两种情况,具有较好的兼容性和灵活性。本发明提供的基于图像空域的降噪方法能够适用于成像设备、成像模组、ISP(Image Signal Processor)、DSP(DigitalSignal Processor)及显示设备。The noise reduction method based on the image space domain provided by the present invention performs spatial filtering and noise reduction based on the analysis of hvs and texture features. Due to the processing in the spatial domain, the amount of calculation is reduced, and the method can also be applied to the original raw data of the sensor and grayscale. There are two cases of degree data, which has better compatibility and flexibility. The noise reduction method based on image space provided by the present invention can be applied to imaging devices, imaging modules, ISP (Image Signal Processor), DSP (Digital Signal Processor) and display devices.
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210486229.5A CN114881877B (en) | 2022-05-06 | 2022-05-06 | A denoising method based on image spatial domain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210486229.5A CN114881877B (en) | 2022-05-06 | 2022-05-06 | A denoising method based on image spatial domain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114881877A true CN114881877A (en) | 2022-08-09 |
CN114881877B CN114881877B (en) | 2024-11-05 |
Family
ID=82672850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210486229.5A Active CN114881877B (en) | 2022-05-06 | 2022-05-06 | A denoising method based on image spatial domain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114881877B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115937013A (en) * | 2022-10-08 | 2023-04-07 | 上海为旌科技有限公司 | Method and device for denoising brightness based on airspace |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103338380A (en) * | 2013-06-06 | 2013-10-02 | 宁波大学 | Adaptive image quality objective evaluation method |
CN103971343A (en) * | 2014-05-21 | 2014-08-06 | 浙江宇视科技有限公司 | Image denoising method based on similar pixel detection |
US20180041759A1 (en) * | 2015-03-02 | 2018-02-08 | Dolby International Ab | Content-adaptive perceptual quantizer for high dynamic range images |
-
2022
- 2022-05-06 CN CN202210486229.5A patent/CN114881877B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103338380A (en) * | 2013-06-06 | 2013-10-02 | 宁波大学 | Adaptive image quality objective evaluation method |
CN103971343A (en) * | 2014-05-21 | 2014-08-06 | 浙江宇视科技有限公司 | Image denoising method based on similar pixel detection |
US20180041759A1 (en) * | 2015-03-02 | 2018-02-08 | Dolby International Ab | Content-adaptive perceptual quantizer for high dynamic range images |
Non-Patent Citations (1)
Title |
---|
朱豪;路锦正;: "结合加权核范数与全变分的图像二级去噪", 计算机工程与应用, no. 23, 1 December 2017 (2017-12-01) * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115937013A (en) * | 2022-10-08 | 2023-04-07 | 上海为旌科技有限公司 | Method and device for denoising brightness based on airspace |
CN115937013B (en) * | 2022-10-08 | 2023-08-11 | 上海为旌科技有限公司 | Luminance denoising method and device based on airspace |
Also Published As
Publication number | Publication date |
---|---|
CN114881877B (en) | 2024-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ramesh et al. | THE MANAGEMENT AND REDUCTION OF DIGITAL NOISE IN VIDEO IMAGE PROCESSING BY USING TRANSMISSION BASED NOISE ELIMINATION SCHEME. | |
US11127122B2 (en) | Image enhancement method and system | |
US8064718B2 (en) | Filter for adaptive noise reduction and sharpness enhancement for electronically displayed pictures | |
CN111080538B (en) | Infrared fusion edge enhancement method | |
CN103533214B (en) | Video real-time denoising method based on kalman filtering and bilateral filtering | |
KR101298642B1 (en) | Method and apparatus for eliminating image noise | |
US10672112B2 (en) | Method and system for real-time noise removal and image enhancement of high-dynamic range images | |
US9031321B2 (en) | Content adaptive edge and detail enhancement for image and video processing | |
CN110570374B (en) | Processing method for image obtained by infrared sensor | |
WO2011011445A1 (en) | System and method for random noise estimation in a sequence of images | |
TWI536319B (en) | De-noising method and image system | |
CN111738966A (en) | Image processing method and device, storage medium and terminal | |
CN108133462B (en) | A Single Image Restoration Method Based on Gradient Field Segmentation | |
CN110047055A (en) | A kind of enhancing of infrared image details and denoising method | |
Nevriyanto et al. | Image enhancement using the image sharpening, contrast enhancement, and Standard Median Filter (Noise Removal) with pixel-based and human visual system-based measurements | |
CN104751441A (en) | Method and device for estimating image noise | |
CN104050636B (en) | Method for enhancing granularity-controllable low-illuminance image | |
CN114881877B (en) | A denoising method based on image spatial domain | |
WO2015061128A1 (en) | Medical thermal image processing for subcutaneous detection of veins, bones and the like | |
CN113379631B (en) | Image defogging method and device | |
Tigga et al. | Image deblurring with impulse noise using alternating direction method of multipliers and Lucy-Richardson method | |
Nancy et al. | Comparative analysis and implementation of image enhancement techniques using MATLAB | |
Liu et al. | Low Illumination Image Enhancement Algorithm Combining Homomorphic Filtering and Retinex | |
Sun et al. | Adaptive bilateral filter considering local characteristics | |
Chang | Entropy-based trilateral filtering for noise removal in digital 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 |