CN102316248B - Noise removing method and device - Google Patents

Noise removing method and device Download PDF

Info

Publication number
CN102316248B
CN102316248B CN 201010221734 CN201010221734A CN102316248B CN 102316248 B CN102316248 B CN 102316248B CN 201010221734 CN201010221734 CN 201010221734 CN 201010221734 A CN201010221734 A CN 201010221734A CN 102316248 B CN102316248 B CN 102316248B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
pixel
image
diff
coordinates
yf
Prior art date
Application number
CN 201010221734
Other languages
Chinese (zh)
Other versions
CN102316248A (en )
Inventor
张辉
王西强
郭洛玮
Original Assignee
北京创毅视讯科技有限公司
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
Grant date

Links

Abstract

本发明提供了一种去除噪声的方法和装置,应用于模拟电视技术中,包括:依次接收输入的各帧图像,从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(x,y)的像素点Y,分别进行以下处理:确定像素点Y与图像M的前一帧图像N中坐标为(x,y)的像素点YF的相关性系数;从图像N中选出三个包含像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从图像M中选出的一个包含像素点Y的区域中的各像素点的亮度值之和的差值的绝对值,每个区域中包含的像素点数均相同;根据相关性系数和绝对值确定像素点Y的亮度值,并将确定出的亮度值赋值给像素点Y。 The present invention provides a method and apparatus for removing noise, is applied to analog TV technology, comprising: receiving an input sequence of image frames, beginning from the second frame received image, each coordinate for each frame of the image M pixel Y is (x, y) are respectively the following process: determining a previous frame pixel Y and the image M image N with coordinates (x, y) of correlation coefficient pixel YF; and the image N in selecting pixels comprising three regions of YF, calculate the luminance value of each pixel region and the luminance value of each pixel in each region selected from an image comprising pixels M in the Y and the absolute value of the difference, the number of pixels included in each region are the same; determining pixel Y luminance value according to the correlation coefficient and the absolute value, and the determined value is assigned to a luminance pixel Y. 应用本发明所述方案,能够有效地去除噪声,从而消除电视画面中突然出现的亮点和黑点。 Applying the embodiment of the present invention can effectively remove noise, thereby eliminating the TV screen suddenly appeared bright and dark spots.

Description

一种去除噪声的方法和装置 A method and apparatus for removing noise

技术领域 FIELD

[0001] 本发明涉及模拟电视技术,特别涉及一种模拟电视中去除噪声的方法和装置。 [0001] The present invention relates to an analog television technology, and more particularly to a method and apparatus for removing noise in an analog television.

背景技术 Background technique

[0002] 现有模拟电视技术中,由于各种原因,总会在电视信号中混入各种干扰信号,如噪声。 [0002] In prior art analog television, for various reasons, always mixed with all kinds of interference signals in a television signal, such as noise. 噪声的存在会使得电视画面质量受到影响,表现为突然出现的亮点或黑点,因此必须想办法去除,但现有技术中还没有一种有效的去除方法。 The presence of noise will make the TV picture quality is affected, showing the sudden appearance of bright or dark spots, and therefore must find ways to remove, but the art has not been an effective method for removing.

发明内容 SUMMARY

[0003] 有鉴于此,本发明的主要目的在于提供一种去除噪声的方法,能够有效地去除噪声,从而消除电视画面中突然出现的亮点和黑点。 [0003] In view of this, the main object of the present invention is to provide a method of removing noise, the noise can be effectively removed, thereby eliminating the TV screen suddenly appeared bright and dark spots.

[0004] 本发明的另一目的在于提供一种去除噪声的装置,能够有效地去除噪声,从而消除电视画面中突然出现的亮点和黑点。 [0004] Another object of the present invention is to provide an apparatus for removing noise, the noise can be effectively removed, thereby eliminating the TV screen suddenly appeared bright and dark spots.

[0005] 为达到上述目的,本发明的技术方案是这样实现的: [0005] To achieve the above object, the technical solution of the present invention is implemented as follows:

[0006] 一种去除噪声的方法,应用于模拟电视技术中,依次接收输入的各帧图像,从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(x,y)的像素点Y,分别进行以下处理: [0006] A method for removing noise, is applied to analog TV technique, each frame image of sequentially received input, starting from the second frame image is received, for each coordinate in each frame is M (x, y ) of pixels Y, respectively, the following process:

[0007] Al、确定所述像素点Y与所述图像M的前一帧图像N中坐标为(X,y)的像素点YF的相关性系数; [0007] Al, Y and determines the pixel of the previous frame image N image M with coordinates (X, y) is the correlation coefficient of the YF pixels;

[0008] B1、从所述图像N中选出三个包含所述像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从所述图`像M中选出的一个包含所述像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF和diff_Y_YFR,每个区域中包含的像素点数均相同; [0008] B1, the pixel region including three selected points from the image N YF, the luminance values ​​are calculated for each pixel in each region and an image M 'selected from the FIG. diff_Y_YFL absolute value of the difference between luminance values ​​of each pixel of a region including the pixel and in the Y, diff_Y_YF and diff_Y_YFR, each region comprising a number of pixels are the same;

[0009] Cl、根据所述相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_YFR确定所述像素点Y的亮度值,并将确定出的亮度值赋值给所述像素点Y。 [0009] Cl, in accordance with the correlation coefficient, diff_Y_YFL, diff_Y_YF diff_Y_YFR and determining the pixel luminance value Y, and the determined value is assigned to a luminance pixel Y.

[0010] 一种去除噪声的装置,应用于模拟电视技术中,包括: [0010] A noise removal apparatus, applied to analog TV technology, comprising:

[0011] 接收模块,用于接收输入的各帧图像,并发送给处理模块; [0011] a receiving module configured to receive an input image of each frame, and sends the processing module;

[0012] 所述处理模块,用于从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(x,y)的像素点Y,分别确定所述像素点Y与所述图像M的前一帧图像N中坐标为(x,y)的像素点YF的相关性系数,并从所述图像N中选出三个包含所述像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从所述图像M中选出的一个包含所述像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF和diff_Y_YFR,每个区域中包含的像素点数均相同;根据所述相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_YFR确定所述像素点Y的亮度值,并将确定出的亮度值赋值给所述像素点Y。 [0012] The processing module is configured to start from the second frame image is received, for each coordinate in each frame is M (x, y) of pixels Y, respectively, the pixel is determined by Y and He said previous frame image N image M with coordinates (x, y) of pixels YF correlation coefficient and selecting a pixel region including three YF from the image in N, were calculated for each and the absolute value of the difference diff_Y_YFL with each pixel of a region including the pixel Y is selected from the image M in the luminance value of each pixel region and the luminance values, diff_Y_YF and diff_Y_YFR, each region comprising a number of pixels are the same; according to the correlation coefficient, diff_Y_YFL, diff_Y_YF diff_Y_YFR and determining the pixel luminance value Y, and the determined value is assigned to a luminance pixel Y.

[0013] 可见,采用本发明的技术方案,结合当前帧图像的前一帧图像,采用三维中值滤波法检测各像素点,并根据需要对其进行重新赋值,从而有效地去除了噪声,进而消除了电视画面上突然出现的亮点和黑点;另外,本发明所述方案在对像素点进行重新赋值时,没有过多的依赖于前一帧图像,因此不会出现拖影现象;再有,本发明所述方案仅通过一些简单的计算即可实现,实现成本较低,便于普及。 [0013] visible, using the technical solution of the present invention, in conjunction with the current frame image before one frame of image, each pixel using three-dimensional median filter detected, and reassign it as needed, thereby effectively removing the noise, and further eliminating the TV screen suddenly appeared bright and dark spots; Further, the embodiment of the present invention, when re-assignment of pixels, not too dependent on the previous frame, and therefore will not smear phenomenon; Further the embodiment of the present invention, by only some simple calculations can be implemented to achieve low cost, easy to popularize.

附图说明 BRIEF DESCRIPTION

[0014] 图1为本发明去除噪声的方法实施例的流程图。 [0014] FIG. 1. A method for removing noise flowchart of one embodiment of the present invention.

[0015] 图2为本发明方法实施例中确定相关性系数时所用像素点的位置示意图。 When [0015] FIG. 2 of the present invention, a method determines a correlation coefficient embodiment the embodiment with a schematic position of the pixels.

[0016] 图3为本发明方法实施例中从图像N中选出的三个区域示意图。 Three regions schematic diagram of an image selected from N, [0016] FIG. 3 shows a method embodiment of the invention.

[0017] 图4为本发明方法实施例中从图像M中选出的一个区域示意图。 Schematic diagram of a region selected from the image M [0017] The method of the present invention in FIG. 4.

[0018] 图5为本发明去除噪声的装置实施例的组成结构示意图。 [0018] FIG. 5 means a structure diagram of removing noise according to an embodiment of the present invention.

具体实施方式 detailed description

[0019] 针对现有技术中存在的问题,本发明中提出一种全新的去除噪声的方案,即结合当前帧图像的前一帧图像,采用三维中值滤波法去除噪声。 [0019] For the problems in the prior art, the present invention proposes a novel solution for removing noise, i.e., in conjunction with the current frame image before one frame of image, using three-dimensional median filter to remove noise.

[0020] 为使本发明的技术方案更加清楚、明白,以下参照附图并举实施例,对本发明所述方案作进一步地详细说明。 [0020] To make the technical solutions of the present invention more clearly understand, both embodiments with reference to the accompanying drawings, the embodiment of the present invention will be described in further detail.

[0021] 图1为本发明去除噪声的方法实施例的流程图。 [0021] FIG. 1. A method for removing noise flowchart of one embodiment of the present invention. 本实施例中,依次接收输入的各帧图像,并从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(x,y)的像素点Y,分别按照图1所示方式进行处理。 Each frame image in the embodiment, the present embodiment sequentially receives an input, and the second frame image from the beginning to the received frame image for each coordinate of each of the M (x, y) of pixels Y, respectively, according to FIG. 1 processing illustrated embodiment.

[0022] 步骤11 :确定像素点Y与图像M的前一帧图像N中坐标为(X,y)的像素点YF的相关性系数;从图像N中选出三个包含像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从图像M中选出的一个包含像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF 和diff_Y_YFR。 [0022] Step 11: determining a previous frame pixel and the image Y M N image with coordinates (X, y) of the pixel correlation coefficient of YF; selecting three regions comprising image pixels from N, YF were calculated and a difference between luminance values ​​of each pixel comprises a pixel region selected from an image Y M of the luminance value of each pixel in each region and absolute value diff_Y_YFL, diff_Y_YF and diff_Y_YFR.

[0023] 上述每个区域中包含的像素点数均相同,本实施例中假设为9个,且每个区域的形状均相同。 [0023] The number of pixels included in each region are the same as in Example 9 of the present embodiment is assumed, and the shape of each region are the same. 另外,上述坐标(x,y)中,X表示横坐标,表明像素点所在的行,y表示纵坐标,表明像素点所在的列。 Furthermore, the coordinate (X, y), X represents the abscissa indicates the row where the pixel, y represents the ordinate indicates the point where the column of pixels.

[0024] 本步骤中,首先确定像素点Y与图像M的前一帧图像N中坐标为(X,y)的像素点YF的相关性系数(在实际应用中,可缓存当前帧图像的前一帧图像N),具体实现包括: [0024] In this step, first, determining the previous frame pixel Y and the image M correlation coefficient pixel YF image N with coordinates (X, y) (in the practical application, it can be cached before the current frame image an image N), the specific implementation comprises:

[0025] I)分别计算图像N中坐标为(x-1,y-Ι)的像素点YF_UP_L与图像M中坐标为(x-1,y-Ι)的像素点Y_UP_L、图像N中坐标为(x_l,y)的像素点YF_UP与图像M中坐标为(x-1, y)的像素点Y UP,以及图像N中坐标为(x-1,y+Ι)的像素点YF_UP_R与图像M中坐标为(x_l,y+l)的像素点¥_即_1?的亮度值之差的绝对值,并将三个绝对值相加,即有: [0025] I) were calculated image N with coordinates (x-1, y-Ι) of pixels YF_UP_L image M with coordinates (x-1, y-Ι) of pixels Y_UP_L, image N with coordinates (x_l, y) of the pixel YF_UP image M with coordinates (x-1, y) of the pixel Y UP, and image N with coordinates (x-1, y + Ι) of pixels YF_UP_R with the image M ? pixel with coordinates (x_l, y + l) _ ¥ i.e. the absolute values ​​of differences _1 luminance values, and the absolute values ​​of the three, that is:

[0026] Abs(Y_UP_L-YF_UP_L)+abs(Y_UP_YF_UP)+abs(Y_UP_R_YF_UP_R)。 [0026] Abs (Y_UP_L-YF_UP_L) + abs (Y_UP_YF_UP) + abs (Y_UP_R_YF_UP_R).

[0027] 图2为本发明方法实施例中确定相关性系数时所用像素点的位置示意图。 When [0027] FIG. 2 of the present invention, a method determines a correlation coefficient embodiment the embodiment with a schematic position of the pixels. 如图2所示,本实施例中采用的是图像M和图像N中的第x-1行上的像素点,如果仅从方案实现本身来说,也可采用第X行或第x+1行上的像素点, 以第X行为例,即计算图像N中坐标为(X,y-Ι)的像素点YF_UP_L与图像M中坐标为(x,y_l)的像素点Y_UP_L、图像N中坐标为(x,y)的像素点YF_UP与图像M中坐标为(x,y)的像素点Y_UP,以及图像N中坐标为(x,y+l)的像素点YF_UP_R与图像M中坐标为(X,y+Ι)的像素点Y_UP_R的亮度值之差的绝对值。 2, this embodiment uses a pixel on the first line image M x-1, and N is the image, if only the program implemented in itself, may also be employed or the first row of X x + 1 pixel on a line, with the first X acts embodiment, i.e., calculates image N with coordinates (X, y-Ι) of pixels YF_UP_L image M with coordinates (x, y_l) of pixels Y_UP_L, the image coordinates of N coordinate pixel points YF_UP image M is (x, y) for (x, y) of the pixel Y_UP, and image N with coordinates (x, y + l) of the coordinates of pixels YF_UP_R image M is ( X, the absolute value of the difference between the luminance values ​​y + Ι) of the pixel Y_UP_R. [0028] 2)确定Abs (Y_UP_L-YF_UP_L) +abs (Y_UP_YF_UP) +abs (Y_UP_R_YF_UP_R)是否小于预先设定的第一阈值NR3D_MEDIAN_DIFF_L ; [0028] 2) determining Abs (Y_UP_L-YF_UP_L) + abs (Y_UP_YF_UP) + abs (Y_UP_R_YF_UP_R) is smaller than a first predetermined threshold value NR3D_MEDIAN_DIFF_L;

[0029] 如果否,则确定相关性系数UPsimilar为O ; [0029] If no, the correlation coefficient determination UPsimilar is O;

[0030] 如果是,则将像素点Y的亮度值、像素点YF的亮度值以及I求和之后除以2,即(Y+YF+l)/2,假设计算结果为Avg ;计算Avg与像素点YF的亮度值之差的绝对值,即abs (Avg-YF),并确定abs (Avg-YF)是否小于预先设定的第二阈值NR3D_MEDIAN_DIFF_M,如果是,则确定相关性系数UPsimilar为I,否则,确定相关性系数UPsimilar为O。 [0030] If so, then the pixel luminance value Y, the luminance values ​​of the pixels, and after I YF sum divided by 2, i.e. (Y + YF + l) / 2, the result is calculated on the assumption Avg; and calculating Avg absolute difference pixel luminance values ​​YF, i.e. abs (Avg-YF), and determines abs (Avg-YF) is smaller than a second predetermined threshold value NR3D_MEDIAN_DIFF_M, if so, to determine the correlation coefficient UPsimilar I otherwise, determine the correlation coefficient UPsimilar is O.

[0031] 确定出相关性系数之后,计算从图像N中选出的三个区域分别与从图像M中选出的一个区域之间的亮度差,具体实现包括: After the [0031] determined that the correlation coefficient calculating three regions selected from N, respectively, and the image luminance between a region selected from the difference image M, specific implementation comprises:

[0032] I)分别计算从图像N中选出的三个区域中的各像素点的亮度值之和以及从从图像M中选出的一个区域中的各像素点的亮度值之和。 [0032] I) were calculated for each pixel selected from the three regions in the luminance image N and the values ​​and luminance values ​​of each pixel from a region selected from the image and the M.

[0033] 图3为本发明方法实施例中从图像N中选出的三个区域示意图。 Three regions schematic diagram of an image selected from N, [0033] FIG. 3 shows a method embodiment of the invention. 如图3所示,按照从左到右的顺序,第一个区域由坐标为(xl,y_2)的像素点YF_UP_LL、坐标为(xl,y_l)的像素点YF_UP_L、坐标为(x_l,y)的像素点YF_UP、坐标为(x,y_2)的像素点YF_LL、坐标为(x,y_l)的像素点YF_L、坐标为(x,y)的像素点YF、坐标为(x+l,y_2)的像素点YF_DN_LL、坐标为(x+l,y_l)的像素点YF_DN_L、以及(x+l,y)的像素点YF_DN组成;第二个区域由坐标为(x-1,y_l)的像素点YF_UP_L、坐标为(x_l, y)的像素点YFJJP、坐标为(x_l, y+1)的像素点YF_UP_R、坐标为(X, y-Ι)的像素点YF_L、坐标为(x, y)的像素点YF、坐标为(x,y+Ι)的像素点YF_R、坐标为(x+1, y-Ι)的像素点YF_DN_L、坐标为(x+1, y)的像素点YF_DN以及坐标为(x+l,y+l)的像素点YF_DN_R组成;第三个区域由坐标为(x_l,y)的像素点YF_UP、坐标为(x_l,y+l)的像素点YF_UP_R、坐标为(x_l,y+2)的像素点YF_UP_RR、坐标为(x,y)的像素点YF、坐标 As illustrated, in order from left to right, the first region by the coordinates of a 3 (xl, y_2) of pixels YF_UP_LL, coordinates (xl, y_l) of pixels YF_UP_L, coordinates (x_l, y) the pixel YF_UP, coordinates (x, y_2) of pixels YF_LL, coordinates (x, y_l) of pixels YF_L, coordinates (x, y) of the pixel YF, coordinates (x + l, y_2) the pixel YF_DN_LL, coordinates (x + l, y_l) of pixels YF_DN_L, and (x + l, y) of pixels YF_DN composition; the second region by the coordinates (x-1, y_l) of pixels YF_UP_L, the coordinates of pixels YFJJP is (x_l, y), the coordinates (x_l, y + 1) of the pixel YF_UP_R, coordinates (X, y-Ι) of pixels YF_L, coordinates (x, y) of pixel YF, coordinates (x, y + Ι) of pixels YF_R, coordinates (x + 1, y-Ι) of pixels YF_DN_L, coordinates (x + 1, y) of the pixel YF_DN and coordinates (x + l, y + l) composed of pixels YF_DN_R; third region by the coordinates (x_l, y) of the pixel YF_UP, the coordinates of pixels YF_UP_R (x_l, y + l), the coordinates (X_L , y + 2) of pixel YF_UP_RR, coordinates (x, y) of the pixel YF, the coordinates 为(x,y+l)的像素点YF_R、坐标为(x, y+2)的像素点YF_RR、坐标为(x+1, y)的像素点YF_DN、坐标为(x+1, y+Ι)的像素点YF_DN_R以及坐标为(x+1, y+2)的像素点YF_DN_RR组成。 Pixel YF_R as (x, y + l), the coordinates (x, y + 2) of pixel YF_RR, coordinates (x + 1, y) of the pixel YF_DN, coordinates (x + 1, y + iota) and YF_DN_R pixel point coordinates (x + 1, y + 2) composed of pixels YF_DN_RR.

[0034] 图4为本发明方法实施例中从图像M中选出的一个区域示意图。 Schematic diagram of a region selected from the image M [0034] The method of the present invention in FIG. 4. 如图4所示,该区域由图像M中坐标为(xl,y_l)的像素点Y_UP_L、坐标为(x_l,y)的像素点Y_UP、坐标为(xl,y+l)的像素点Y_UP_R、坐标为(X, y-Ι)的像素点Y_L、坐标为(x, y)的像素点Y、坐标为U,y+Ι)的像素AY_R、坐标为(χ+1,y-Ι)的像素点Y_DN_L、坐标为(x+1, y)的像素点Y_DN以及坐标为(x+1,y+Ι)的像素点Y_DN_RK组成。 4, in the region M in the image coordinates (xl, y_l) of pixels Y_UP_L, coordinates (x_l, y) of the pixel Y_UP, coordinates (xl, y + l) of the pixel Y_UP_R, coordinates (X, y-Ι) of pixels Y_L, coordinates (x, y) of the pixel Y, the coordinates of U, y + Ι) pixel AY_R, coordinates (χ + 1, y-Ι) of pixel Y_DN_L, coordinates (x + 1, y) and the pixel Y_DN coordinates (x + 1, y + Ι) Y_DN_RK composed of pixels.

[0035] 其中,图像N中的三个区域中的各像素点的亮度值之和分别为: [0035] wherein each pixel in the three regions in the N image luminance values ​​and are:

[0036] sumYF_L = YF_UP_LL+YF_UP_L+YF_UP [0036] sumYF_L = YF_UP_LL + YF_UP_L + YF_UP

[0037] +YF_LL+YF_L+YF+ [0037] + YF_LL + YF_L + YF +

[0038] YF_DN_LL+YF_DN_L+YF_DN ; [0038] YF_DN_LL + YF_DN_L + YF_DN;

[0039] sumYF = YF_UP_L+YF_UP+YF_UP_R+ [0039] sumYF = YF_UP_L + YF_UP + YF_UP_R +

[0040] YF_L+YF+YF_R+ [0040] YF_L + YF + YF_R +

[0041] YF_DN_L+YF_DN+YF_DN_R ; [0041] YF_DN_L + YF_DN + YF_DN_R;

[0042] sumYF_R = YF_UP+YF_UP_R+YF_UP_RR+ [0042] sumYF_R = YF_UP + YF_UP_R + YF_UP_RR +

[0043] YF+YF_R+YF_RR+ [0043] YF + YF_R + YF_RR +

[0044] YF_DN+YF_DN_R+YF_DN_RR。 [0044] YF_DN + YF_DN_R + YF_DN_RR. [0045] 图像M中的区域中的各像素点的亮度值之和为: [0045] M of each pixel in the image area and the luminance values ​​of:

[0046] sumY = Y_UP_L+Y_UP+Y_UP_R+ [0046] sumY = Y_UP_L + Y_UP + Y_UP_R +

[0047] Y_L+Y+Y_R+ [0047] Y_L + Y + Y_R +

[0048] Y_DN_L+Y_DN+Y_DN_R。 [0048] Y_DN_L + Y_DN + Y_DN_R.

[0049] 2)分别计算sumYF_L、sumYF和sumYF_R与sumY之差的绝对值,即: [0049] 2) Compute the sumYF_L, sumYF and the difference in absolute value and sumY sumYF_R, namely:

[0050] diff_Y_YFL = abs(sumYF_L_sumY); [0050] diff_Y_YFL = abs (sumYF_L_sumY);

[0051] diff_Y_YF = abs(sumYF—sumY); [0051] diff_Y_YF = abs (sumYF-sumY);

[0052] diff_Y_YFR = abs(sumYF_R_sumY)。 [0052] diff_Y_YFR = abs (sumYF_R_sumY).

[0053] 需要说明的是,对于某些像素点,比如坐标为(1,1)的像素点,不会存在按照上述方式选出的区域,那么对于这类像素点,则不能按照本发明所述方案进行处理。 [0053] Incidentally, for some pixels, such as pixel coordinates (1,1), the selected region does not exist in the above manner, then for such pixels, it is not according to the present invention said program processing. 所以,针对每个坐标为(x,y)的像素点Y,在执行步骤11之前,理论上,需要首先确定图像M中是否同时存在坐标为(xl,y_2)、(x-1, y-1)、(χ-l, y)、(χ-1, y+1)、(χ-1, y+2)、(χ, y-2)、(x,yl)、(χ, y+1)、(x, y+2)、(x+1, y-2)、(x+1, y-1)、(x+1, y)、(x+1, y+1)和(x+1, y+2)的像素点,如果存在,则执行步骤11,否则,不对像素点Y进行任何处理;在实际应用中,可在软件中预先说明需要处理哪些像素点,然后仅处理这些像素点即可。 Therefore, in order for each coordinate (x, y) of pixels Y, before performing step 11, theoretically, the image need to first determine whether there is simultaneous M coordinates (xl, y_2), (x-1, y- 1), (χ-l, y), (χ-1, y + 1), (χ-1, y + 2), (χ, y-2), (x, yl), (χ, y + 1), (x, y + 2), (x + 1, y-2), (x + 1, y-1), (x + 1, y), (x + 1, y + 1) and ( x + 1, y + 2) of pixel elements, if present, step 11, otherwise, no pixel Y performing any processing; in practical applications, can be stated in advance which pixels need to be addressed in software, then only the processing these pixels can be.

[0054] 步骤12 :根据所述相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_YFR确定像素点Y的亮度值,并将确定出的亮度值赋值给像素点Y。 [0054] Step 12: determining the luminance value Y of the pixel according to the correlation coefficient, diff_Y_YFL, diff_Y_YF and diff_Y_YFR, and the determined value is assigned to a luminance pixel Y.

[0055] 本步骤的具体实现包括: [0055] The specific implementation of this step comprises:

[0056] I)确定diff_Y_YFL、diff_Y_YF和diff_Y_YFR是否均大于预先设定的第三阈值NR3D_MEDIAN_DIFF_H,即是否满足diff_Y_YF > NR3D_MEDIAN_DIFF_H 且diff_Y_YFL >NR3D_MEDIAN_DIFF_H 且diff_Y_YFR > NR3D_MEDIAN_DIFF_H ;如果否,则维持像素点Y 的原亮度值不变,如果是,则执行步骤2)。 [0056] I) determined diff_Y_YFL, and whether diff_Y_YF diff_Y_YFR are greater than a preset third threshold value NR3D_MEDIAN_DIFF_H, i.e. meets diff_Y_YF> NR3D_MEDIAN_DIFF_H and diff_Y_YFL> NR3D_MEDIAN_DIFF_H and diff_Y_YFR> NR3D_MEDIAN_DIFF_H; if not, the pixel is maintained in the original luminance Y value the same, if it is, proceed to step 2).

[0057] 2)确定相关性系数UPsimilar的取值是否为1,如果为I,则将像素点Y的亮度值、像素点YF的亮度值以及I求和之后除以2得到的结果赋值给像素点Y(加I是为了使最终的电视画面更亮一些,提升用户观感);否则,分别计算图像M中坐标为(X,y-Ι)的像素点Y_L和坐标为(x,y+l)的像素点Y_R的亮度值之差的绝对值diff_YL_YR,以及图像M中坐标为(x_l,y)的像素AY_UP和坐标为(x+l,y)的像素点Y_DN的亮度值之差的绝对值diff_YUP_YDN。 [0057] 2) determining the correlation coefficient UPsimilar whether the value 1 if the assignment is I, the luminance value Y, then the pixel, the luminance values ​​of the pixels and dividing the result by the YF after the I-2 summation to the pixels obtained point Y (plus I to the final TV picture brighter, enhance the user perception); otherwise, were calculated image M with coordinates (X, y-Ι) of pixels Y_L and the coordinates (x, y + l the absolute difference between the luminance values ​​of pixels Y_DN) the absolute value of the difference between the diff_YL_YR luminance values ​​of the pixels Y_R, and an image M with coordinates (x_l, y) and pixel AY_UP coordinates (x + l, y) of value diff_YUP_YDN.

[0058]上述 diff_YUP_YDN = abs (Y_UP_Y_DN); [0058] The diff_YUP_YDN = abs (Y_UP_Y_DN);

[0059] diff_YL_YR = abs (Y_L_Y_R)。 [0059] diff_YL_YR = abs (Y_L_Y_R).

[0060] 3)确定diff_YL_YR是否小于diff_YUP_YDN,如果是,则将图像M中的像素点Y_L的亮度值、像素点Y_R的亮度值以及I求和之后除以2(加I是为了使最终的电视画面更亮一些,提升用户观感)得到的结果赋值给像素点Y,否则,将图像M中的像素点Y_UP的亮度值、像素点Y_DN的亮度值以及I求和之后除以2得到的结果赋值给像素点Y。 [0060] 3) determined is less than diff_YL_YR diff_YUP_YDN, if the brightness values ​​of pixels Y_L then the image M, the luminance values ​​of the pixels and dividing Y_R after summation I 2 (I is added to the final TV brighter picture, to enhance the user perception) the resulting pixel is assigned to Y, otherwise, the luminance value of the image pixel M is Y_UP, Y_DN pixels by 2 and then summing the result of the assignment I to the pixel Y.

[0061] 图1所示实施例中涉及到的各阈值的具体取值可根据实际需要而定。 Specific value [0061] FIG. 1 embodiment each threshold value in the embodiment shown may be involved according to the actual needs. 通常,如果各阈值的取值太大,会使去噪效果较差,即部分黑点或亮点不能去除,如果取值太小,又会导致将正常的像素点当作噪声处理掉,从而使电视画面模糊。 Typically, if the value of each threshold value is too big, less effective denoising, i.e., partially dark or bright spots can not be removed, if the value is too small, will result in normal noise as pixels disposed of, so that TV screen is blurred. 本实施例中,第一阈值的取值范围可为[20,60],第二阈值的取值范围可为[60,80],第三阈值的取值范围可为[60,100]。 In this embodiment, the first threshold value range can be [20, 60], the range of the second threshold value may be [60, 80], the third threshold range can be [60, 100]. 另外,上述仅以每个区域中包含9个像素点为例进行说明,在实际应用中,可根据需要设定每个区域内包含的像素点数,并随着像素点数的不同调整各阈值的具体取值。 Also, the each region contains only nine pixels as an example, in practical applications, can be set to the number of pixels included in each region as necessary, and in particular to adjust the number of pixels in each different threshold value with value. 再有,图1所示实施例中,如果任意一次计算结果不为整数,可向上取整。 Further, the embodiment shown in FIG. 1, at any one time if the calculation result is not an integer, the rounding up.

[0062] 基于上述方法,图5为本发明去除噪声的装置实施例的组成结构示意图。 [0062] Based on the above method, FIG 5 is a schematic diagram illustrating apparatus for removing noise structure of an embodiment the invention. 如图5所示,包括: 5, comprising:

[0063] 接收模块51,用于接收输入的各帧图像,并发送给处理模块52 ; [0063] The receiving module 51 is configured to receive an input image of each frame, and sends the processing module 52;

[0064] 处理模块52,用于从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(X,y)的像素点Y,分别确定像素点Y与图像M的前一帧图像N中坐标为(X,y)的像素点YF的相关性系数,并从图像N中选出三个包含像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从图像M中选出的一个包含像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF和diff_Y_YFR,每个区域中包含的像素点数均相同;根据相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_YFR确定像素点Y的亮度值,并将确定出的亮度值赋值给像素点Y。 [0064] The processing module 52, a second frame from the start of the received image, for each coordinate in each frame is M (X, y) of pixels Y, Y with the image before the pixel M are determined an N image with coordinates (X, y) of pixels YF correlation coefficient and selecting three regions comprising pixels from the image N YF, the luminance values ​​were calculated for each pixel in each region diff_Y_YFL absolute value difference sum of the respective pixel comprising a pixel region selected from an image Y M of the luminance value and, diff_Y_YF and diff_Y_YFR, each region comprising a number of pixels are the same; the correlation coefficient, diff_Y_YFL, diff_Y_YF and diff_Y_YFR pixel Y luminance value is determined, and the determined value is assigned to a luminance pixel Y.

[0065] 其中,每个区域中的像素点数通常为9。 [0065] wherein the number of pixels in each region is generally 9.

[0066] 另外,处理模块52中可具体包括: [0066] Further, the processing module 52 may specifically include:

[0067] 第一处理单元521,用于确定像素点Y与像素点YF的相关性系数,并从图像N中选出三个包含像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从图像M中选出的一个包含像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF 和diff_Y_YFR,将所述相关性系数、diff_Y_YFL、difT_Y_YF 和diff_Y_YFR 发送给第二处理单元522 ; [0067] The first processing unit 521 for determining a correlation coefficient with the pixels Y pixels YF and selecting three regions comprising image pixels from N, YF, calculates each pixel in each region diff_Y_YFL absolute value of the difference of the luminance value and the luminance value of each pixel, and a region containing a pixel selected from Y, M, of the image, diff_Y_YF and diff_Y_YFR, the correlation coefficient, diff_Y_YFL , difT_Y_YF diff_Y_YFR and transmitted to the second processing unit 522;

[0068] 第二处理单元522,用于根据接收到的相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_YFR确定像素点Y的亮度值,并将确定出的亮度值赋值给像素点Y。 [0068] The second processing unit 522, according to the received correlation coefficient, diff_Y_YFL, diff_Y_YF and diff_Y_YFR pixel Y luminance value is determined, and the determined value is assigned to a luminance pixel Y.

[0069] 第一处理单元521中又`可进一步包括(为简化附图,未图示): [0069] The first processing unit 521 and may further comprise `(to simplify the drawing, not shown):

[0070] 第一计算子单元,用于分别计算图像N中坐标为(x-1,y-Ι)的像素点与图像M中坐标为(xl,y_l)的像素点、图像N中坐标为(x_l,y)的像素点与图像M中坐标为(x_l,y)的像素点,以及图像N中坐标为(x_l,y+l)的像素点与图像M中坐标为(x_l,y+l)的像素点的亮度值之差的绝对值,并确定三个绝对值之和是否小于预先设定的第一阈值;如果否,则确定相关性系数为0,如果是,则将像素点Y的亮度值、像素点YF的亮度值以及I求和之后除以2,得到商Avg,计算Avg与像素点YF的亮度值之差的绝对值,确定该绝对值是否小于预先设定的第二阈值,如果是,则确定相关性系数为1,否则,确定相关性系数为O ;将相关性系数发送给第二处理单元522 ; [0070] a first calculating subunit, configured to calculate image N pixels with coordinates (x-1, y-Ι) M of the image pixel with coordinates (xl, y_l), the image coordinates of N pixel pixel (x_l, y) of the pixel image M with coordinates (x_l, y), and the image N with coordinates (x_l, y + l) with the image M with coordinates (x_l, y + absolute difference of the luminance values ​​l) of the pixel, and determines whether the sum of absolute values ​​of three less than a first predetermined threshold value; if not, it is determined that the correlation coefficient is 0, and if so, the pixel luminance value Y, the luminance value of the pixel after dividing the absolute value of the YF and 2 summation I, Avg quotient, calculates the difference between luminance values ​​of pixels Avg YF is determined whether the absolute value is smaller than a predetermined second threshold value, if so, the correlation coefficient is determined to be 1, otherwise, determining that the correlation coefficient is O; the correlation coefficient transmitted to the second processing unit 522;

[0071] 第二计算子单元,用于从图像N中选出三个区域,分别为由坐标为(x-1,y-2)、(x-1, y-1)、(x-1, y)、(x, y-2)、(x, y-1)、(x, y)、(x+1, y-2)、(x+1, y-1)和(x+1, y)的像素点组成的区域、由坐标为(χ-1,y-Ι)、(χ-l,y)、(χ-l,y+1)、(χ,y-1)、(χ,y)、(χ,y+1)、(x+1, y-1)、(x+1, y)和(x+1, y+1)的像素点组成的区域,以及由坐标为(x_l, y)、(χ-1,y+1)、(x-1,y+2)、(x, y)、(x, y+1)、(χ, y+2)、(x+1, y)、(x+1, y+1)和(x+1, y+2)的像素点组成的区域,计算每个区域中的各像素点的亮度值之和sumYF_L、sumYF和sumYF_R,从图像M 中选出一个由坐标为(x-1, y-1)、(x-1, y)、(χ-l, y+1)、(x, y-1)、(x, y)、(x, y+1)、(x+1,y-1)、(x+1, y)和(x+1,y+1)的像素点组成的区域,计算该区域中的各像素点的亮度之和sumY,并分别计算sumYF_L、sumYF 和sumYF_R 与sumY 之差的绝对值diff_Y_YFL、diff_Y_YF 和diff_Y_YFR,将diff_Y_YFL、diff_Y_YF 和di [0071] The second calculating sub-unit, for N selected from the three image areas, respectively, by the coordinates (x-1, y-2), (x-1, y-1), (x-1 , y), (x, y-2), (x, y-1), (x, y), (x + 1, y-2), (x + 1, y-1) and (x + 1 , region y) pixel dots by the coordinates (χ-1, y-Ι), (χ-l, y), (χ-l, y + 1), (χ, y-1), ( χ, y), (χ, y + 1), (x + 1, y-1), (x + 1, y) region, and (x 1, y + 1) pixel point + composition, and the coordinates is (x_l, y), (χ-1, y + 1), (x-1, y + 2), (x, y), (x, y + 1), (χ, y + 2), ( x + 1, y), (x + 1, y + 1) and (x + 1, region y + 2) composed of pixels, and calculates the luminance value of each pixel sumYF_L each region, sumYF and sumYF_R, M is selected from one of the image coordinates (x-1, y-1), (x-1, y), (χ-l, y + 1), (x, y-1), ( x, y), (x, y + 1), (x + 1, y-1), (x + 1, y) and (x + 1, y + 1) pixel dots region, calculating the area and the luminance of each pixel in sumY and calculates sumYF_L, and the absolute value of the difference between the sumYF sumYF_R diff_Y_YFL and sumY sum, diff_Y_YF and diff_Y_YFR, the diff_Y_YFL, diff_Y_YF and di ff_Y_YFR 发送给第二处理单元522。 ff_Y_YFR transmitted to the second processing unit 522.

[0072] 第二处理单元522中可进一步包括(为简化附图,未图示): [0072] The second processing unit 522 may further comprise (to simplify the drawing, not shown):

[0073] 第一确定子单元,用于确定diff_Y_YFL、diff_Y_YF和diff_Y_YFR是否均大于预先设定的第三阈值;如果否,则维持像素点Y的原亮度值不变,如果是,则通知第二确定子单元执行自身功能; [0073] a first determining subunit, for determining whether diff_Y_YFL, diff_Y_YF diff_Y_YFR and are greater than a preset third threshold value; if not, maintaining the original luminance Y pixel value is unchanged, and if so, then informing the second determining subunit to perform its own functions;

[0074] 第二确定子单元,用于确定相关性系数的取值是否为1,如果为1,则将像素点Y的亮度值、像素点YF的亮度值以及I求和之后除以2得到的结果赋值给像素点Y ;否则,分别计算图像M中坐标为(x,yl)和(x,y+l)的像素点的亮度值之差的绝对值diff_YL_YR以及坐标为(x_l,y)和(x+l,y)的像素点的亮度值之差的绝对值diff_YUP_YDN,并确定diff_YL_YR是否小于diff_YUP_YDN ;如果是,则将图像M中坐标为(X,y-Ι)的像素点的亮度值、坐标为U,y+Ι)的像素点的亮度值以及I求和之后除以2得到的结果赋值给像素点Y,否贝1J,将图像M中坐标为(xl,y)的像素点的亮度值、坐标为(x+l,y)的像素点的亮度值以及I求和之后除以2得到的结果赋值给像素点Y。 After 2 obtained by dividing [0074] The second determining sub-unit, for determining whether the value of the correlation coefficient is 1, if 1, then the luminance value Y of the pixel, the luminance values ​​of pixels summed I and YF results assigned to the Y pixels; otherwise, the coordinates are calculated as in the image M (x, yl) and (x, y + l) and the coordinates of the absolute value of the difference between the diff_YL_YR luminance values ​​of pixels (x_l, y) the absolute value of the difference between the luminance value diff_YUP_YDN sum (x + l, y) of the pixel, and determines whether less than diff_YL_YR diff_YUP_YDN; brightness If so, the pixels in the image M in coordinates (X, y-Ι) of value, coordinates U, the luminance value y + Ι) of the pixel and the result is divided by two after summation I obtained is assigned to pixel Y, no shellfish 1J, the image M in the coordinates (xl, y) of the pixel the luminance value of a point, the luminance values ​​of coordinates (x + l, y) of the pixels and dividing the result by the sum I 2 obtained after assigning pixel Y.

[0075] 图5所示装置实施例的具体工作流程请参照图1所示方法实施例中的相应说明,此处不再赘述。 The workflow is an embodiment of the apparatus of [0075] Referring to the method shown in FIG. 5 corresponding to FIG. 1 explained in the embodiment, not further described herein.

[0076] 总之,采用本发明的技术方案,结合当前帧图像的前一帧图像,采用三维中值滤波法检测各像素点,并根据需要对其进行重新赋值,从而有效地去除了噪声,进而消除了电视画面上突然出现的亮点和黑点,尤其是对于噪声不是很大或已经通过其它去噪方法处理完之后的场景,效果更好;另外,本发明所述方案在对像素点进行重新赋值时,没有过多的依赖于前一帧图像(即在对像素点Y进行重新赋值时,像素点YF的亮度值与像素点Y的亮度值所占的权重是一样的,并没有过多的依赖于像素点YF的亮度值,即将像素点YF的亮度值的权重设置得过高),因此不会出现拖影现象;再有,本发明所述方案仅通过一些简单的计算即可实现,实现成本较低,便于普及。 [0076] In summary, the technical solution of the present invention, in conjunction with the current frame image of the previous frame image, each pixel using three-dimensional median filter detected, and reassign it as needed, thereby effectively removing the noise, and further eliminating the TV screen suddenly appeared bright and dark spots, especially for large noise or not the scene has passed after the other denoising been processed, the better; Further, the embodiment of the present invention re pixels when the assignment is not too dependent on the previous frame (i.e., at the time of the re-assignment of pixels Y, YF luminance values ​​of pixels with the pixel value of the point Y is the same as the weight percentage of the weight, and not too depends on the luminance value of the pixel of YF, the luminance weight value is about pixels YF weight is set too high), so there is no smear phenomenon; further, the embodiment of the present invention by only some simple calculations can be realized low implementation cost, easy to popularize.

[0077] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 [0077] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, all within the spirit and principle of the present invention, any changes made, equivalent substitutions and improvements should be included within the scope of protection of the present invention.

Claims (5)

  1. 1. 一种去除噪声的方法,应用于模拟电视技术中,其特征在于,依次接收输入的各帧图像,从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(X,y)的像素点Y,分别进行以下处理:Al、确定所述像素点Y与所述图像M的前一帧图像N中坐标为(X,y)的像素点YF的相关性系数;B1、从所述图像N中选出三个包含所述像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从所述图像M中选出的一个包含所述像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF和diff_Y_YFR,每个区域中包含的像素点数均相同;Cl、根据所述相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_YFR确定所述像素点Y的亮度值,并将确定出的亮度值赋值给所述像素点Y ;其中,所述步骤Al包括:分别计算所述图像N中坐标为(P,y_l)的像素点与所述图像M中坐标为(P,y_l 1. A method for removing noise, is applied to analog TV technique, wherein an input frame images sequentially received from the second frame to begin receiving the image, for each coordinate of each frame is M ( X, y) of pixels Y, respectively, the following process: Al, determining the previous frame pixel of the image Y M N image with coordinates (X, y) is the correlation coefficient of the YF pixels; B1, select the pixel region including three YF from the image in N, calculates luminance values ​​of each pixel in each region and the selected image from the one containing the M diff_Y_YFL absolute value of the difference of each pixel region in the pixel Y and the luminance values, diff_Y_YF and diff_Y_YFR, each region comprising a number of pixels are the same; Cl, ​​based on the correlation coefficient, diff_Y_YFL, diff_Y_YF and determining the luminance value of the pixel diff_Y_YFR point Y, and the determined value is assigned to the pixel luminance point Y; wherein said Al comprises the step of: separately calculating the image coordinates of N (P, y_l) of M pixels in the image coordinates (P, y_l )的像素点、所述图像N中坐标为(P,y)的像素点与所述图像M中坐标为(P,y)的像素点,以及所述图像N中坐标为(P,y+1)的像素点与所述图像M中坐标为(P,y+1)的像素点的亮度值之差的绝对值,并确定三个绝对值之和是否小于预先设定的第一阈值;如果否,则确定所述相关性系数为0,如果是,则将所述像素点Y的亮度值、所述像素点YF的亮度值以及I求和之后除以2,得到商Avg,计算所述Avg与所述像素点YF的亮度值之差的绝对值,确定该绝对值是否小于预先设定的第二阈值,如果是,则确定所述相关性系数为I,否则,确定所述相关性系数为O ;所述P的取值为χ-1、X或x+1 ;所述步骤Cl包括:确定所述diff_Y_YFL、diff_Y_YF和diff_Y_YFR是否均大于预先设定的第三阈值;如果否,则维持所述像素点Y的原亮度值不变,如果是,则确定所述相关性系数的取值是否为1,如果为 Pixels pixels) of the pixels, the image coordinates of N (P, y) with the image M with coordinates (P, y), and the N image with coordinates (P, y + absolute difference of the luminance values ​​of the pixel 1) is the image pixel coordinates in M ​​(P, y + 1) and determine whether the sum of absolute values ​​of three less than a first predetermined threshold value; If not then, it is determined that the correlation coefficient is 0, if it is, then the pixel luminance values ​​Y, the luminance value of the pixel and I YF sum by 2 to obtain quotient Avg., calculated said absolute difference of the luminance values ​​of pixels Avg YF determines whether the absolute value is smaller than a second threshold value set in advance, if so, the correlation coefficient is determined as I, otherwise, determining that the correlation coefficient is O; P is the value of χ-1, X, or x + 1; Cl step comprises: determining the diff_Y_YFL, and whether diff_Y_YF diff_Y_YFR are greater than a preset third threshold value; and if not, then maintaining the original luminance Y pixel value is unchanged, and if so, determining a value of the correlation coefficient is 1, if 1,则将所述像素点Y的亮度值、所述像素点YF的亮度值以及I求和之后除以2得到的结果赋值给所述像素点Y ;否则,分别计算所述图像M中坐标为(X,y-Ι)和(X, y+1)的像素点的亮度值之差的绝对值diff_YL_YR以及坐标为(x_l,y)和(x+l,y)的像素点的亮度值之差的绝对值diff_YUP_YDN,并确定所述diff_YL_YR是否小于所述diff_YUP_ YDN ;如果是,则将所述图像M中坐标为(x,yl)的像素点的亮度值、坐标为(x,y+l)的像素点的亮度值以及I求和之后除以2得到的结果赋值给所述像素点Y,否则,将所述图像M中坐标为(x_l,y)的像素点的亮度值、坐标为(x+l,y)的像素点的亮度值以及I求和之后除以2得到的结果赋值给所述像素点Y。 1, then the luminance value Y of the pixel, the luminance value of the pixel after dividing point YF and 2 summation I obtained assign the result to the pixel point Y; otherwise, the coordinates are calculated in the image M pixel luminance values ​​for (X, y-Ι) and (X, y + 1) absolute value of the difference between the luminance value of the pixel and the coordinates diff_YL_YR is (x_l, y) and (x + l, y) of If the luminance value, then the image M with coordinates (x, yl) of the pixel with coordinates (x, y +; diff_YUP_YDN absolute value of the difference and determines the diff_YL_YR is less than the diff_YUP_ YDN pixel luminance value of a luminance value l) of the pixel and the result is divided by two after summation I obtained is assigned to the pixel Y, otherwise, the image M in coordinates (x_l, y), the coordinate the luminance value of (x + l, y) of the pixel and divided by two after summation I obtained assign the result to the pixel Y.
  2. 2.根据权利要求1所述的方法,其特征在于,所述步骤Al之前,进一步包括:确定所述图像M中是否同时存在坐标为(x-1, y-2)、(x-1, y-1)、(x_l, y)、(χ-l, y+1)、(x-1, y+2)、(x, y-2)、(x, y-1)、(x, y+1)、(x, y+2)、(x+1, y-2)、(x+1, y-1)、(x+1, y)、(x+1, y+1)和(x+1,y+2)的像素点,如果是,则执行步骤Al,否则,不对所述像素点Y进行任何处理。 2. The method according to claim 1, wherein, prior to said step Al, further comprising: determining whether M is present in the image at the same time coordinates (x-1, y-2), (x-1, y-1), (x_l, y), (χ-l, y + 1), (x-1, y + 2), (x, y-2), (x, y-1), (x, y + 1), (x, y + 2), (x + 1, y-2), (x + 1, y-1), (x + 1, y), (x + 1, y + 1) and (x 1, y + 2 +) of pixels, if yes, step Al, otherwise, the pixel Y does not perform any processing.
  3. 3.根据权利要求1或2所述的方法,其特征在于,所述从图像N中选出三个包含所述像素点YF的区域包括:将所述图像N 中坐标为(x-1, y-2)、(x-1, y-1)、(χ-l, y)、(χ, y-2)、(χ, y-1)、(χ, y)、 (x+l,y-2) > (x+1,y-1)和(x+l,y)的像素点组成的区域、坐标为(x_l,y_l)、(x_l,y)、(x_l, y+1)、(χ,y-1)、(x,y)、(x,y+1)、(x+1,y-1)、(x+1,y)和(x+1,y+1)的像素点组成的区域, 以及坐标为(x-1,y)、(x-1,y+1)、(x_l,y+2)、(x, y)、(χ, y+1)、(χ, y+2)、(x+1, y)、(x+1, y+1)和(x+l,y+2)的像素点组成的区域作为选出的三个区域;所述从图像M中选出一个包含所述像素点Y的区域包括:将所述图像M中坐标为(x-1, y-1)、(x-1, y)、(χ-l, y+1)、(x, y-1)、(χ, y)、(χ, y+1)、(x+1, y-1)、(x+1, y)和(x+1, y+1)的像素点组成的区域作为选出的区域。 3. The method of claim 1 or claim 2, wherein said image is selected from N region comprises the three pixels YF comprises: the N image with coordinates (x-1, y-2), (x-1, y-1), (χ-l, y), (χ, y-2), (χ, y-1), (χ, y), (x + l, y-2)> (x + 1, y-1) and (x + l, y) of the pixel region composed of coordinates (x_l, y_l), (x_l, y), (x_l, y + 1) , (χ, y-1), (x, y), (x, y + 1), (x + 1, y-1), (x + 1, y) and (x + 1, y + 1) area of ​​the pixel dots, and the coordinates (x-1, y), (x-1, y + 1), (x_l, y + 2), (x, y), (χ, y + 1), (χ, y + 2), (x + 1, y), the region (x + 1, y + 1) and (x + l, y + 2) composed of pixels selected as the three areas; the M is selected from the said image region in a pixel including the point Y comprising: the image M with coordinates (x-1, y-1), (x-1, y), (χ-l, y +1), (x, y-1), (χ, y), (χ, y + 1), (x + 1, y-1), (x + 1, y) and (x + 1, y region +1) pixels consisting of a selected area.
  4. 4. 一种去除噪声的装置,应用于模拟电视技术中,其特征在于,包括:接收模块,用于接收输入的各帧图像,并发送给处理模块;所述处理模块,用于从接收到的第2帧图像开始,针对每帧图像M中的每个坐标为(X, y)的像素点Y,分别确定所述像素点Y与所述图像M的前一帧图像N中坐标为(X,y)的像素点YF的相关性系数,并从所述图像N中选出三个包含所述像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从所述图像M中选出的一个包含所述像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF和diff_Y_YFR,每个区域中包含的像素点数均相同;根据所述相关性系数、diff_Y_YFL、diff_Y_YF和diff_Y_ YFR确定所述像素点Y的亮度值,并将确定出的亮度值赋值给所述像素点Y ;其中,所述处理模块包括:第一处理单元,用于确定所述像素 A noise removal apparatus, applied to analog TV technology, characterized by comprising: receiving means for receiving an input image of each frame, and sends the processing module; the processing module, for receiving from the a second frame image starts, for each coordinate in each frame is M (X, y) of Y pixels, each pixel of the previous frame to determine point Y of the image N image M with coordinates ( X, y) of pixels YF correlation coefficient and selecting a pixel region including three YF from the image in N, calculates luminance values ​​of each pixel in each region and from the diff_Y_YFL absolute value of the difference between luminance values ​​of each pixel in the image region M contains the selected pixel and in the Y, diff_Y_YF and diff_Y_YFR, each region comprising a number of pixels are the same; according to the correlation coefficient, diff_Y_YFL, diff_Y_YF diff_Y_ YFR and determines the pixel luminance value Y, and the determined value is assigned to the pixel luminance point Y; wherein the processing module comprises: a first processing unit , for determining the pixel 点Y与所述像素点YF的相关性系数,并从所述图像N中选出三个包含所述像素点YF的区域,分别计算每个区域中的各像素点的亮度值之和与从所述图像M中选出的一个包含所述像素点Y的区域中的各像素点的亮度值之和的差值的绝对值diff_Y_YFL、diff_Y_YF 和diff_Y_YFR,将所述相关性系数、diff_Y_YFL、diff_Y_YF 和diff_Y_YFR发送给第二处理单元;所述第二处理单元,用于根据接收到的相关性系数、diff_Y_YFL、diff_Y_YF和diff_ Y_YFR确定所述像素点Y的亮度值,并将确定出的亮度值赋值给所述像素点Y ;所述第一处理单元包括:第一计算子单元,用于分别计算所述图像N中坐标为(P,y-Ι)的像素点与所述图像M 中坐标为(P,y-Ι)的像素点、所述图像N中坐标为(P,y)的像素点与所述图像M中坐标为(P,y)的像素点,以及所述图像N中坐标为(P,y+1)的像素点与所述图像M中坐标为(P, y+1) Point Y and the correlation coefficient of the pixel of YF, and selecting the pixel region including three YF from the image in N, calculates luminance values ​​of each pixel in each region and from the diff_Y_YFL absolute value of the difference of each pixel of said pixel region comprises a Y image of the selected M and the luminance value, diff_Y_YF and diff_Y_YFR, the correlation coefficient, diff_Y_YFL, diff_Y_YF and diff_Y_YFR sent to the second processing unit; a second processing unit, according to the received correlation coefficient, diff_Y_YFL, diff_Y_YF diff_ Y_YFR and determining the pixel luminance value Y, and the determined brightness value is assigned to the Y the pixel point; the first processing unit comprises: a first calculating sub-unit, the image N pixels with coordinates (P, y-Ι) with the image M were used to calculate the coordinates ( pixel pixel P, y-Ι) of pixels, the image coordinates of N (P, y) with the image M with coordinates (P, y), and the image coordinates of N (P, y + 1) is the image pixel coordinates in M ​​(P, y + 1) 像素点的亮度值之差的绝对值,并确定三个绝对值之和是否小于预先设定的第一阈值;如果否,则确定所述相关性系数为0,如果是,则将所述像素点Y的亮度值、所述像素点YF的亮度值以及I求和之后除以2,得到商Avg,计算所述Avg与所述像素点YF的亮度值之差的绝对值,并确定该绝对值是否小于预先设定的第二阈值,如果是,则确定所述相关性系数为1,否则,确定所述相关性系数为O ;将所述相关性系数发送给第二处理单元;所述P的取值为χ-l、χ或x+1 ;所述第二处理单元包括:第一确定子单元,用于确定所述diff_Y_YFL、diff_Y_YF和diff_Y_YFR是否均大于预先设定的第三阈值;如果否,则维持所述像素点Y的原亮度值不变,如果是,则通知第二确定子单元执行自身功能;所述第二确定子单元,用于确定所述相关性系数的取值是否为1,如果为1,则将所述像素点Y Absolute difference of pixel luminance values ​​and determining whether the sum of absolute values ​​of three less than a first predetermined threshold value; if not, it is determined that the correlation coefficient is 0, and if so, the pixel point Y luminance value, the luminance values ​​of the pixels, and after I YF sum by 2 to obtain Avg quotient, calculating an absolute value of the difference between the luminance values ​​of the pixels Avg YF and determining the absolute value is smaller than the second threshold value set in advance, if so, determining that the correlation coefficient is 1, otherwise, determining that the correlation coefficient is O; transmitting the correlation coefficient to the second processing unit; the P the value of χ-l, χ or x + 1; the second processing unit comprises: a first determining subunit, for determining the diff_Y_YFL, diff_Y_YF diff_Y_YFR and if greater than a third predetermined threshold value; If not the original luminance value, the pixel Y is maintained constant, if so, notifies the second determining subunit to perform its own function; the second determining sub-unit, for determining the correlation coefficient values is 1, if 1, then the pixel Y 的亮度值、所述像素点YF的亮度值以及I求和之后除以2得到的结果赋值给所述像素点Y ;否则,分别计算所述图像M中坐标为(X,y-Ι)和(X,y+1)的像素点的亮度值之差的绝对值diff_YL_YR以及坐标为(x_l,y)和(x+1,y)的像素点的亮度值之差的绝对值diff_YUP_YDN,并确定所述diff_YL_YR是否小于所述diff_YUP_YDN ;如果是,则将所述图像M中坐标为(x,yl)的像素点的亮度值、坐标为(x,y+l)的像素点的亮度值以及I求和之后除以2得到的结果赋值给所述像素点Y,否则,将所述图像M中坐标为(xl,y)的像素点的亮度值、坐标为(x+1,y)的像素点的亮度值以及I求和之后除以2得到的结果赋值给所述像素点Y。 Luminance value, the luminance values ​​of the pixels and dividing the result by the YF sum I 2 obtained after the assignment of the pixels to the Y; otherwise, M are calculated in the image coordinates (X, y-Ι) and (X, y + 1) absolute value of the difference between the luminance value of the pixel and the coordinates diff_YL_YR is (x_l, y) and (x + 1, y) is the absolute value of the difference between the luminance values ​​diff_YUP_YDN pixel, and determines If the luminance value, then the image M with coordinates (x, yl) of the luminance values ​​of the pixels with coordinates (x, y + l) of the pixel and I; diff_YL_YR is less than the said diff_YUP_YDN pixel luminance values ​​divided by two after summation results assigned to the pixel Y, otherwise, the image M in coordinates (xl, y), the coordinates (x + 1, y) of the pixel luminance values ​​of the points after the I summation and dividing the result by 2 to obtain the pixel is assigned to Y.
  5. 5.根据权利要求4所述的装置,其特征在于,所述第一处理单元进一步包括:第二计算子单元,用于从所述图像N中选出三个区域,分别为由坐标为(x-1,y-2)、 (x-1, y-1)、(x-1, y)、(x, y-2)、(x, y-1)、(x, y)、(x+1, y-2)、(x+1, y-1)和(x+1, y)的像素点组成的区域、由坐标为(χ-l,y-1)、(χ-l,y)、(χ-l,y+1)、(χ,y-1)、(χ,y)、(χ,y+1)、 (x+1, y-1)、(x+1, y)和(x+1, y+1)的像素点组成的区域,以及由坐标为(x_l, y)、(χ-l, y+1)、(x-1,y+2)、(x, y)、(x, y+1)、(x, y+2)、(x+1, y)、(x+1, y+1)和(x+1, y+2)的像素点组成的区域,计算每个区域中的各像素点的亮度值之和sumYF_L、sumYF和sumYF_R,从所述图像M 中选出一个由坐标为(x-1, y-1)、(x-1, y)、(χ-l, y+1)、(x, y-1)、(χ, y)、(χ, y+1)、 (x+1, yl)> (x+1, y)和(x+1,y+1)的像素点组成的区域,计算该区域中的各像素点的亮度之和sumY,并分别计算sumYF_L、sumYF 5. The apparatus as claimed in claim 4, wherein the first processing unit further comprises: a second calculating subunit, configured to select from the three regions in image N, respectively, by the coordinates ( x-1, y-2), (x-1, y-1), (x-1, y), (x, y-2), (x, y-1), (x, y), ( region x + 1, y-2), (x + 1, y-1) pixel and the (x + 1, y) composed by the coordinates (χ-l, y-1), (χ-l , y), (χ-l, y + 1), (χ, y-1), (χ, y), (χ, y + 1), (x + 1, y-1), (x + 1 , region y) and (x + 1, y + 1) pixel dots, and the coordinates (x_l, y), (χ-l, y + 1), (x-1, y + 2), (x, y), (x, y + 1), (x, y + 2), (x + 1, y), (x + 1, y + 1) and (x + 1, y + 2) of region of the pixel dots, and calculates luminance values ​​sumYF_L, sumYF and sumYF_R of each pixel in each region, M is selected from one of the image coordinates (x-1, y-1), (x -1, y), (χ-l, y + 1), (x, y-1), (χ, y), (χ, y + 1), (x + 1, yl)> (x + 1 region, y) and (x + 1, y + 1) is composed of pixels, and calculates the brightness of each pixel sumY the region, and calculates sumYF_L, sumYF sumYF_R与sumY之差的绝对值diff_Y_YFL、difT_ Y_YF 和diff_Y_YFR,将所述diff_Y_YFL、difT_Y_YF 和diff_Y_YFR 发送给所述第二处理单 Diff_Y_YFL absolute value of the difference between the sumYF_R and sumY, difT_ Y_YF and diff_Y_YFR, the diff_Y_YFL, difT_Y_YF diff_Y_YFR and transmitted to the second processing unit
CN 201010221734 2010-06-29 2010-06-29 Noise removing method and device CN102316248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010221734 CN102316248B (en) 2010-06-29 2010-06-29 Noise removing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010221734 CN102316248B (en) 2010-06-29 2010-06-29 Noise removing method and device

Publications (2)

Publication Number Publication Date
CN102316248A true CN102316248A (en) 2012-01-11
CN102316248B true CN102316248B (en) 2013-04-17

Family

ID=45429039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010221734 CN102316248B (en) 2010-06-29 2010-06-29 Noise removing method and device

Country Status (1)

Country Link
CN (1) CN102316248B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101326808A (en) 2005-12-07 2008-12-17 美光科技公司 Method and apparatus providing noise reduction while preserving edges for imagers

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101326808A (en) 2005-12-07 2008-12-17 美光科技公司 Method and apparatus providing noise reduction while preserving edges for imagers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2006-60744A 2006.03.02

Also Published As

Publication number Publication date Type
CN102316248A (en) 2012-01-11 application

Similar Documents

Publication Publication Date Title
US7907791B2 (en) Processing of mosaic images
JP2001258052A (en) Stereoscopic image display device
US20030020836A1 (en) Device and method for improving picture quality
JP2005341527A (en) Gradation correcting apparatus, gradation correcting program, mobile terminal device and personal computer
JP2002359754A (en) Grey level correction device and method
US6611287B1 (en) Camera signal processing apparatus and camera signal processing method
JP2007142500A (en) Display device, signal processing circuit, program, and display method
JP2012027547A (en) Image processing apparatus
JP2008107507A (en) Video data converter and video display apparatus
US20030169941A1 (en) Edge enhancement method and apparatus in digital image scalar-up circuit
JP2009021905A (en) Contour enhancement apparatus
JP2003348383A (en) Image processing method and image processing apparatus
JP2001119714A (en) Method and device to obtain white color signal component, and method and device for adjusting luminance of video image
JP2006033469A (en) Gradation correction circuit and television receiver using the same
JPH0851642A (en) White balance correction device
JP2000050042A (en) Method and device for correcting definition of image
JP2007329902A (en) Image processing method, image processing device, program, storage medium and integrated circuit
CN1259823A (en) Method and device for decreasing motion skewness and noise during video frequency treatment
CN102289791A (en) Method for quickly demisting single image
US20100104180A1 (en) Image noise reduction method and image processing apparatus using the same
US20100165139A1 (en) Image gamut mapping
JP2008258925A (en) Gamma correction circuit and method
JPH11285019A (en) Image processing unit and medium wherein image processing program is stored
JP2005210418A (en) Image processing device, method, and program
JPH07184085A (en) Video signal processing unit

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
C41 Transfer of patent application or patent right or utility model