[go: up one dir, main page]

CN103795943B - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
CN103795943B
CN103795943B CN201210431709.8A CN201210431709A CN103795943B CN 103795943 B CN103795943 B CN 103795943B CN 201210431709 A CN201210431709 A CN 201210431709A CN 103795943 B CN103795943 B CN 103795943B
Authority
CN
China
Prior art keywords
image
histogram
original
pixel value
cumulative histogram
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
CN201210431709.8A
Other languages
Chinese (zh)
Other versions
CN103795943A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to CN201210431709.8A priority Critical patent/CN103795943B/en
Publication of CN103795943A publication Critical patent/CN103795943A/en
Application granted granted Critical
Publication of CN103795943B publication Critical patent/CN103795943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

本公开提供一种用于去除图像中的闪烁噪声的图像处理装置和图像处理方法。该图像处理装置包括:划分单元,用于将像素值域划分为至少两个区间;噪声去除单元,用于针对图像中像素值分别落入至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声,其中,噪声去除单元对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。

The present disclosure provides an image processing device and an image processing method for removing flicker noise in an image. The image processing device comprises: a division unit, which is used to divide the pixel value domain into at least two intervals; a noise removal unit, which is used to perform filtering with different smoothness on pixels whose pixel values in the image respectively fall into at least two intervals, so as to flicker noise in the image is removed, wherein the noise removal unit performs smoother filtering on pixels falling in intervals with higher pixel values and smoothes pixels falling in intervals with lower pixel values lower filtering.

Description

图像处理装置和图像处理方法Image processing device and image processing method

技术领域technical field

本公开一般地涉及图像处理领域,尤其涉及一种用于去除图像中的闪烁噪声的图像处理装置和图像处理方法。The present disclosure generally relates to the field of image processing, and in particular, relates to an image processing device and an image processing method for removing flicker noise in an image.

背景技术Background technique

在图像和视频处理领域,有几种闪烁噪声的形式。视频的闪烁噪声是时间上随机出现、空间上图像像素值变化。通常由存储介质的退化、不同标准的转换,或者每副图曝光时间的不同引起。在CMOS成像中,闪烁噪声是由光源的交流信号引起的周期性的横带。而在当前被越来越多使用的线性传感器中,由于诸如顶置式线传感器的线传感器的操作机制(线传感器的电机驱动),由线传感器获得的扫描图像中的闪烁噪声的横带可能是不等间隔的。图1中示意性示出了使用顶置式线传感器进行扫描所获得的图像。为清楚起见,图1中省略了诸如文档等内容,仅显示出成横带状的、不等间隔的闪烁噪声NfIn the field of image and video processing, there are several forms of flicker noise. The flicker noise of the video is random in time and changes in image pixel values in space. Usually caused by degradation of the storage medium, conversion to different standards, or differences in exposure time for each image. In CMOS imaging, flicker noise is a periodic horizontal band caused by the AC signal of the light source. Whereas in the current linear sensors that are more and more used, due to the operating mechanism of the line sensor such as the top-mounted line sensor (motor drive of the line sensor), the horizontal band of the flicker noise in the scanned image obtained by the line sensor may be Unequally spaced. An image obtained by scanning with an overhead line sensor is schematically shown in FIG. 1 . For the sake of clarity, content such as documents and the like are omitted in FIG. 1 , and only flicker noise N f in the shape of a horizontal band with unequal intervals is shown.

传统的减少闪烁噪声的方法需要多幅连续的图像;或者使用单幅图像,但闪烁噪声图案是周期性的并该周期已知。或者,可以通过硬件处理的办法进行闪烁噪声去除。Traditional flicker noise reduction methods require multiple consecutive images; or use a single image, but the flicker noise pattern is periodic and the period is known. Alternatively, flicker noise removal can be performed by hardware processing.

发明内容Contents of the invention

然而,对多幅连续图像进行处理增大了系统的计算负荷。而且,在一些情况下,难以得到多幅连续图像,从而难以进行噪声的去除。此外,对于非等间隔的闪烁噪声,应用适用于等间隔闪烁噪声的办法来去除噪声,噪声去除的效率和准确性都变低。另外,通过硬件处理进行噪声去除大大增加了运行成本。However, processing multiple consecutive images increases the computational load on the system. Moreover, in some cases, it is difficult to obtain multiple consecutive images, so it is difficult to remove noise. In addition, for non-equally spaced flicker noise, the method suitable for equal spaced flicker noise is applied to remove the noise, and the efficiency and accuracy of noise removal become lower. In addition, noise removal by hardware processing greatly increases the running cost.

考虑到上述问题,期望提供一种图像处理装置和图像处理方法,能够在仅通过对单幅图像进行处理来执行等间隔或不等间隔的闪烁噪声的去除。注意到闪烁噪声在图像中像素值高的位置比在像素值低的位置更明显,发明人根据噪声明显程度的不同对具有不同像素值的位置进行不同平滑程度的滤波。In view of the above problems, it is desired to provide an image processing device and an image processing method capable of removing flicker noises at equal or unequal intervals only by processing a single image. Noticing that the flicker noise is more obvious in the image where the pixel value is high than in the position where the pixel value is low, the inventors filter the positions with different pixel values with different degrees of smoothness according to the degree of obviousness of the noise.

根据本发明的一方面,提供了一种图像处理装置,用于去除图像中的闪烁噪声,包括:划分单元,用于将像素值域划分为至少两个区间;噪声去除单元,用于针对图像中像素值分别落入至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声,其中,噪声去除单元对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。According to an aspect of the present invention, there is provided an image processing device for removing flicker noise in an image, including: a division unit for dividing the pixel value range into at least two intervals; a noise removal unit for Pixels with middle pixel values falling into at least two intervals are filtered with different degrees of smoothness to remove flicker noise in the image, wherein the noise removal unit performs smoothing on pixels falling in intervals with higher pixel values. , and less smooth filtering for pixels that fall in the interval with lower pixel values.

在一个实施例中,噪声去除单元可以通过应用高斯滤波器来对像素进行滤波,其中,噪声去除单元可以对落入具有较高像素值的区间中的像素应用具有较大方差的高斯滤波器,并对落入具有较低像素值的区间中的像素应用具有较小方差的高斯滤波器。In one embodiment, the noise removal unit may filter the pixels by applying a Gaussian filter, wherein the noise removal unit may apply a Gaussian filter with a larger variance to pixels falling in an interval with a higher pixel value, And apply a Gaussian filter with smaller variance to the pixels that fall in the bin with lower pixel values.

在一个实施例中,噪声去除单元可以通过对图像的每一行的累积直方图进行处理来对每一行中的像素进行滤波,以去除图像中的噪声。噪声去除单元可以包括:累积直方图生成单元,用于针对图像中的每一行生成累积直方图,作为原始累积直方图;加权处理单元,用于通过将每一行的邻近行的原始累积直方图与每一行的原始累积直方图一起进行加权处理,得到每一行的目标累积直方图;规定化单元,用于通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像。针对原始累积直方图的与划分单元划分的至少两个区间相对应的各部分,加权处理单元使用不同的权重进行加权处理。In one embodiment, the noise removal unit can filter the pixels in each row by processing the cumulative histogram of each row of the image, so as to remove the noise in the image. The noise removal unit may include: a cumulative histogram generating unit for generating a cumulative histogram for each row in the image as an original cumulative histogram; a weighting processing unit for combining the original cumulative histograms of adjacent rows of each row with The original cumulative histogram of each row is weighted together to obtain the target cumulative histogram of each row; the regularization unit is used to perform histogram regularization from the original cumulative histogram to the target cumulative histogram to obtain the noise-removed image. For each part of the original cumulative histogram corresponding to at least two intervals divided by the dividing unit, the weighting processing unit uses different weights to perform weighting processing.

在一个实施例中,加权处理单元可以通过应用高斯函数进行加权处理。其中,加权处理单元可以对与具有较高像素值的区间相对应的部分应用较大的高斯方差;对与具有较低像素值的区间相对应的部分应用较小的高斯方差。In one embodiment, the weighting processing unit may perform weighting processing by applying a Gaussian function. Wherein, the weighting processing unit may apply a larger Gaussian variance to a portion corresponding to an interval with a higher pixel value; apply a smaller Gaussian variance to a portion corresponding to an interval with a lower pixel value.

在一个实施例中,噪声去除单元可以通过对图像的每一行的累积直方图进行处理来对每一行中的像素进行滤波,以去除图像中的噪声,图像的每一行具有一个或更多个像素的高度。该噪声去除单元可以包括:直方图生成单元,用于针对图像中的每一行生成直方图,作为原始直方图;加权处理单元,用于通过将每一行的邻近行的原始直方图与每一行的原始直方图一起进行加权处理,得到每一行的目标直方图;累积直方图生成单元,用于分别根据每一行的原始直方图和目标直方图生成针对每一行的原始累积直方图和目标累积直方图;规定化单元,用于通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像,其中,针对原始直方图的与划分单元划分的至少两个区间相对应的各小区,加权处理单元使用不同的权重进行加权处理。In one embodiment, the noise removal unit may filter the pixels in each row to remove noise in the image by processing the cumulative histogram of each row of the image, each row of the image has one or more pixels the height of. The noise removal unit may include: a histogram generating unit for generating a histogram for each row in the image as an original histogram; a weighting processing unit for combining the original histograms of adjacent rows of each row with each row The original histograms are weighted together to obtain the target histogram of each row; the cumulative histogram generation unit is used to generate the original cumulative histogram and target cumulative histogram for each row according to the original histogram and target histogram of each row ; A regularization unit for obtaining a noise-removed image by performing histogram regularization from the original cumulative histogram to the target cumulative histogram, wherein the original histogram corresponds to at least two intervals divided by the division unit For each cell, the weighting processing unit uses different weights to perform weighting processing.

在一个实施例中,规定化单元可以包括:查询表生成单元,用于根据原始累积直方图和目标累积直方图生成像素的原始像素值到目标像素值的查询表;以及规定化处理单元,用于基于特定像素的原始像素值和从查询表中读取的相应目标像素值来按照预定规则对相应目标像素值进行修正,并使得在规定化结果图像中特定像素的像素值等于经修正的像素值。In one embodiment, the specification unit may include: a lookup table generation unit, configured to generate a lookup table from an original pixel value to a target pixel value of a pixel according to the original cumulative histogram and the target cumulative histogram; and a specification processing unit, configured to Correcting the corresponding target pixel value based on the original pixel value of the specific pixel and the corresponding target pixel value read from the lookup table according to a predetermined rule, and making the pixel value of the specific pixel in the specified result image equal to the corrected pixel value.

在一个实施例中,当特定像素的原始像素值与相应目标像素值的差的绝对值小于等于预定阈值时,规定化处理单元使得经修正的目标像素值为相应目标像素值本身;当特定像素的原始像素值与相应目标像素值的差的绝对值大于预定阈值时,规定化处理单元使得原始像素值与经修正的目标像素值的差的绝对值等于预定阈值。In one embodiment, when the absolute value of the difference between the original pixel value of a specific pixel and the corresponding target pixel value is less than or equal to a predetermined threshold, the stipulation processing unit makes the corrected target pixel value the corresponding target pixel value itself; when the specific pixel When the absolute value of the difference between the original pixel value and the corresponding target pixel value is greater than the predetermined threshold, the stipulation processing unit makes the absolute value of the difference between the original pixel value and the corrected target pixel value equal to the predetermined threshold.

在一个实施例中,规定化处理单元使得经修正的目标像素值等于原始像素值与相应目标像素值的加权和。In one embodiment, the prescriptive processing unit makes the corrected target pixel value equal to a weighted sum of the original pixel value and the corresponding target pixel value.

在一个实施例中,图像处理装置还可以包括:色彩分离与组合单元,用于将待处理的彩色图像分离为单独的单通道图像,以及将分别进行了噪声去除处理的单通道图像组合为彩色图像。In one embodiment, the image processing device may further include: a color separation and combination unit, configured to separate the color image to be processed into separate single-channel images, and combine the single-channel images that have undergone noise removal processing into color image.

根据本发明的另一方面,提供了一种图像处理方法,用于去除图像中的闪烁噪声,包括:划分步骤,将像素值域划分为至少两个区间;噪声去除步骤,针对图像中像素值分别落入至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声,其中,对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。According to another aspect of the present invention, there is provided an image processing method for removing flicker noise in an image, comprising: a division step, dividing the pixel value domain into at least two intervals; a noise removal step, aiming at the pixel value in the image Pixels falling into at least two intervals are filtered with different degrees of smoothness to remove flicker noise in the image, wherein, pixels falling into the interval with a higher pixel value are filtered with a higher degree of smoothness, and pixels falling into Pixels in the interval with lower pixel values are filtered less smoothly.

通过使用本公开描述的图像处理装置和图像处理方法,可以在不提高系统计算量和运行成本的情况下,仅通过对单幅图像进行处理来高效地执行等间隔以及不等间隔的闪烁噪声的去除。By using the image processing device and the image processing method described in the present disclosure, it is possible to efficiently implement equal-spaced and non-equal-spaced flicker noise by only processing a single image without increasing the amount of calculation and running cost of the system. remove.

应当理解,前述的一般说明和下面的详细说明都是示例性和说明性的,而不是对请求保护的本发明的限制。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory in nature and are not restrictive of the invention, as claimed.

附图说明Description of drawings

参照下面结合附图对本发明实施例的说明,会更加容易地理解本发明的以上和其它目的、特点和优点。在附图中,相同的或对应的技术特征或部件将采用相同或对应的附图标记来表示。在附图中不必依照比例绘制出单元的尺寸和相对位置。The above and other objects, features and advantages of the present invention will be more easily understood with reference to the following description of the embodiments of the present invention in conjunction with the accompanying drawings. In the drawings, the same or corresponding technical features or components will be indicated by the same or corresponding reference numerals. The dimensions and relative positions of elements are not necessarily drawn to scale in the drawings.

图1是示出使用顶置式线传感器进行扫描所获得的图像的示意图。FIG. 1 is a schematic diagram showing an image obtained by scanning using an overhead line sensor.

图2是示出根据本发明实施例的图像处理装置的结构的框图。FIG. 2 is a block diagram showing the configuration of an image processing apparatus according to an embodiment of the present invention.

图3是示出根据本发明实施例的图像处理方法的流程图。FIG. 3 is a flowchart illustrating an image processing method according to an embodiment of the present invention.

图4是示出根据本发明另一个实施例的图像处理装置的结构的框图。FIG. 4 is a block diagram showing the structure of an image processing apparatus according to another embodiment of the present invention.

图5是示出根据本发明另一个实施例的图像处理方法的流程图。FIG. 5 is a flowchart illustrating an image processing method according to another embodiment of the present invention.

图6是示出根据本发明另一个实施例的图像处理装置的结构的框图。FIG. 6 is a block diagram showing the structure of an image processing apparatus according to another embodiment of the present invention.

图7是示出根据本发明另一个实施例的图像处理方法的流程图。FIG. 7 is a flowchart illustrating an image processing method according to another embodiment of the present invention.

图8是示出根据本发明实施例的改进的规定化单元的结构的框图。FIG. 8 is a block diagram showing the structure of an improved specification unit according to an embodiment of the present invention.

图9是示出实现本发明的图像处理装置的计算机的示例性结构的框图。FIG. 9 is a block diagram showing an exemplary structure of a computer realizing the image processing apparatus of the present invention.

具体实施方式detailed description

下面参照附图来说明本发明的实施例。应当注意,为了清楚的目的,附图和说明中省略了与本发明无关的、本领域技术人员已知的部件和处理的表示和描述。Embodiments of the present invention will be described below with reference to the drawings. It should be noted that representation and description of components and processes that are not related to the present invention and known to those skilled in the art are omitted from the drawings and descriptions for the purpose of clarity.

对于图1中所示具有非等间隔的闪烁噪声Nf的扫描图像,无论是灰度图像还是彩色图像,都可以使用本发明所描述的图像处理装置和图像处理方法进行噪声去除。所不同的是,对于彩色图像,首先需要将彩色图像分离成例如R、G、B通道的单通道图像。分别对每个通道的图像进行本公开所教导的处理。然后,合并处理后的三个通道的图像,以得到去除了闪烁噪声的彩色图像。下面,将针对灰度图像或者R、G、B三个通道的图像之一的单通道图像的处理进行描述。另外,无需说明,本发明同样适用于具有等间隔闪烁噪声的图像。For the scanned image with non-equally spaced flicker noise N f shown in FIG. 1 , whether it is a grayscale image or a color image, the image processing device and image processing method described in the present invention can be used for noise removal. The difference is that for a color image, it is first necessary to separate the color image into single-channel images such as R, G, and B channels. The processing taught in this disclosure is performed on the images of each channel separately. Then, the processed images of the three channels are combined to obtain a color image with flicker noise removed. In the following, the processing of a grayscale image or a single-channel image of one of the images of R, G, and B channels will be described. In addition, needless to say, the present invention is also applicable to images with equally spaced flicker noise.

图2是示出根据本发明实施例的图像处理装置200的结构的框图。如图2中所示,图像处理装置200包括:划分单元210和噪声去除单元220。FIG. 2 is a block diagram showing the configuration of an image processing apparatus 200 according to an embodiment of the present invention. As shown in FIG. 2 , the image processing device 200 includes: a division unit 210 and a noise removal unit 220 .

划分单元210用于将像素值域划分为至少两个区间。噪声去除单元220用于针对图像中像素值分别落入划分单元210所划分的至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声。具体地,噪声去除单元220对落入像素值域中具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。下文中将对各单元进行详细说明。The dividing unit 210 is used for dividing the pixel value range into at least two intervals. The noise removal unit 220 is configured to perform filtering with different degrees of smoothness on pixels whose pixel values in the image respectively fall into at least two intervals divided by the division unit 210 , so as to remove flicker noise in the image. Specifically, the noise removal unit 220 performs smoother filtering on pixels falling in an interval with a higher pixel value in the pixel value domain, and performs smoother filtering on pixels falling in an interval with a lower pixel value. low filtering. Each unit will be described in detail below.

首先,说明“像素值域”的概念。在计算机图像处理领域中,使用二进制数对单通道的灰度图像进行量化,以使用不同的像素值来表示像素的灰度。例如,可以对灰度图像进行8位量化,从而得到256个像素值(0至255)。在本领域中通常地,并且,在本公开的上下文中默认地,像素值0代表灰度最深的黑色,像素值255代表灰度最浅的白色。而从0至255(包含)的整数值即为采用8位量化时的像素值域,在下文中将以[0,255]来表示。类似地,如果采用10位量化,则像素值域为0至1023(包含)的整数值即为10位量化时的像素值域,可以以[0,1023]来表示。在下文中,以8位量化的情况为例进行说明。First, the concept of "pixel range" will be described. In the field of computer image processing, binary numbers are used to quantize single-channel grayscale images, so that different pixel values are used to represent the grayscale of pixels. For example, a grayscale image can be quantized to 8 bits, resulting in 256 pixel values (0 to 255). Typically in the art, and by default in the context of this disclosure, a pixel value of 0 represents the darkest shade of black, and a pixel value of 255 represents the lightest shade of white. The integer value from 0 to 255 (inclusive) is the pixel value range when 8-bit quantization is used, which will be represented by [0, 255] in the following. Similarly, if 10-bit quantization is used, the integer value of the pixel value range from 0 to 1023 (inclusive) is the pixel value range during 10-bit quantization, which can be represented by [0, 1023]. In the following, the case of 8-bit quantization is taken as an example for description.

划分单元210可以根据需要对像素值域进行不同的划分。例如,按照预先设定的一个或更多个划分点(作为区间边界的像素值)对像素值域进行划分。或者,按照预先设定的份数对像素值域进行均分。划分点或者份数的设定可以依据不同的标准、取决于不同的设计要求。例如,在本发明的一个实施例中,考虑到扫描图像中的闪烁噪声在像素值较低的位置处较不明显,而在像素值较高的位置处较明显来设置一个或更多个划分点。在一个实施例中,可以只划分两个区间,并且在0至255的像素值域中,可以取170至200范围中的一个像素值作为划分点。当然,在其它实施例中,也可以在整个像素值域中取两个或更多的划分点,从而将像素值域划分为三个或更多的区间。此外,划分单元210也可以依据待处理图像的特点自适应地进行划分。The division unit 210 can perform different divisions on the pixel value range as required. For example, the pixel value range is divided according to one or more preset dividing points (pixel values serving as interval boundaries). Alternatively, the pixel value range is equally divided according to a preset number of copies. The division points or the number of copies can be set according to different standards and depending on different design requirements. For example, in one embodiment of the present invention, one or more divisions are set considering that the flicker noise in the scanned image is less noticeable at positions with lower pixel values and more noticeable at positions with higher pixel values. point. In one embodiment, only two intervals can be divided, and in the pixel value range of 0 to 255, a pixel value in the range of 170 to 200 can be taken as the division point. Of course, in other embodiments, two or more dividing points may also be used in the entire pixel value range, so as to divide the pixel value range into three or more intervals. In addition, the division unit 210 may also perform adaptive division according to the characteristics of the image to be processed.

噪声去除单元220对待处理的图像进行处理,以去除图像中的闪烁噪声。具体地,噪声去除单元220针对图像中像素值分别落入划分单元210所划分的至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声。在一个实施例中,考虑到闪烁噪声在像素值较高的位置比在像素值较低的位置更加明显,噪声去除单元220对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。The noise removal unit 220 processes the image to be processed to remove flicker noise in the image. Specifically, the noise removal unit 220 performs filtering with different degrees of smoothness on the pixels whose pixel values in the image respectively fall into at least two intervals divided by the division unit 210 , so as to remove the flicker noise in the image. In one embodiment, considering that the flicker noise is more obvious at the position of higher pixel value than at the position of lower pixel value, the noise removal unit 220 smoothes the pixels falling in the interval with higher pixel value to a higher degree. , and less smooth filtering for pixels that fall in the interval with lower pixel values.

例如,在将像素值域划分为3个区间的例子中(例如,两个划分点可以分别是160和200),噪声去除单元220可以对像素值为0至160(例如,[0,160),不含160)的区间上的像素进行平滑程度较低的滤波,对像素值为160至200(例如[160,200))的区间上的像素进行中等平滑程度的滤波,而对像素值为200至255(例如[200,255])的区间上的像素进行平滑程度较高的滤波。下文中,为了简便起见,将以划分两个区间的实施例为例进行详细说明。For example, in the example of dividing the pixel value range into 3 intervals (for example, the two division points may be 160 and 200 respectively), the noise removal unit 220 may perform a pixel value ranging from 0 to 160 (for example, [0,160), without The pixels on the interval containing 160) are filtered with low smoothness, the pixels on the interval with pixel values from 160 to 200 (such as [160,200)) are filtered with medium smoothness, and the pixels with values from 200 to 255 ( For example [200,255]), the pixels on the interval are filtered with a higher degree of smoothness. Hereinafter, for the sake of simplicity, the embodiment of dividing two intervals will be taken as an example for detailed description.

在将像素值域划分为2个区间的例子中(例如,划分点是180),噪声去除单元220可以对像素值为0至180(例如[0,180),不含180)的区间上的像素进行平滑程度较低的滤波,而对像素值为180至255(例如[180,255])的区间上的像素进行平滑程度较高的滤波。下面描述进一步的具体例子。In the example of dividing the pixel value range into two intervals (for example, the division point is 180), the noise removal unit 220 can perform the Filtering with a lower degree of smoothness, and filtering with a higher degree of smoothness for pixels on the interval of pixel values from 180 to 255 (such as [180,255]). Further specific examples are described below.

在一个实施例中,噪声去除单元220可以通过应用诸如高斯滤波器的图像处理滤波器来对像素进行滤波。噪声去除单元220可以对落入具有较高像素值的区间(例如[180,255])中的像素应用具有较大方差的高斯滤波器,并对落入具有较低像素值的区间(例如[0,180))中的像素应用具有较小方差的高斯滤波器。在本实施例中,所使用的高斯滤波器可以是二维高斯滤波器,如式(1)所示:In one embodiment, the noise removal unit 220 may filter the pixels by applying an image processing filter such as a Gaussian filter. The noise removal unit 220 may apply a Gaussian filter with a larger variance to pixels falling in an interval with higher pixel values (eg, [180,255]), and apply a Gaussian filter with a larger variance to pixels falling in an interval with lower pixel values (eg, [0,180]). ) to apply a Gaussian filter with a small variance. In this embodiment, the Gaussian filter used may be a two-dimensional Gaussian filter, as shown in formula (1):

其中,σ2为二维高斯函数的方差。Among them, σ 2 is the variance of the two-dimensional Gaussian function.

在本实施例中,对像素值落入具有较高像素值的区间的像素,选用较大的方差σ2,对像素值落入具有较低像素值的区间的像素,选用较小的方差σ2。例如,对像素值落入区间[180,255]的像素,可以使得σ2=2;对像素值落入区间[0,180)的像素,可以使得σ2=0.2。In this embodiment, a larger variance σ 2 is selected for pixels whose pixel values fall into the interval with higher pixel values, and a smaller variance σ 2 is selected for pixels whose pixel values fall into the interval with lower pixel values 2 . For example, for pixels whose pixel values fall within the interval [180, 255], σ 2 =2 may be set; for pixels whose pixel values fall within the interval [0,180), σ 2 =0.2 may be set.

需要说明的是:除了高斯滤波器,还可以使用本领域已知的各种图像处理滤波器来进行根据本发明的平滑处理。例如,使用诸如双边滤波器的图像处理滤波器在具有较高像素值的位置进行平滑程度较高的滤波,而在具有较低像素值的位置进行平滑程度较低的滤波。It should be noted that, in addition to the Gaussian filter, various image processing filters known in the art can also be used to perform the smoothing process according to the present invention. For example, using an image processing filter such as a bilateral filter performs smoother filtering at positions with higher pixel values and less smooth filtering at positions with lower pixel values.

图3是示出与图2所示图像处理装置进行的处理相对应的图像处理方法的流程图。FIG. 3 is a flowchart showing an image processing method corresponding to the processing performed by the image processing apparatus shown in FIG. 2 .

如图3中所示,在步骤S301中,将像素值域划分为至少两个区间。可以根据需要对像素值域进行不同的划分。例如,按照预先设定的一个或更多个划分点对像素值域进行划分。或者,按照预先设定的份数对像素值域进行均分。划分点或者份数的设定可以依据不同的标准、取决于不同的设计要求。例如,在本发明的一个实施例中,考虑到扫描图像中的闪烁噪声在像素值较低的位置处较不明显,而在像素值较高的位置处较明显来设置一个或更多个划分点。在一个实施例中,在0至255的像素值域中,可以取像素值170至200中的一个作为划分点,由此划分两个区间。As shown in FIG. 3, in step S301, the pixel value range is divided into at least two intervals. The pixel value range can be divided differently according to needs. For example, the pixel value range is divided according to one or more preset dividing points. Alternatively, the pixel value range is equally divided according to a preset number of copies. The division points or the number of copies can be set according to different standards and depending on different design requirements. For example, in one embodiment of the present invention, one or more divisions are set considering that the flicker noise in the scanned image is less noticeable at positions with lower pixel values and more noticeable at positions with higher pixel values. point. In one embodiment, in the pixel value range from 0 to 255, one of the pixel values from 170 to 200 may be used as the dividing point, thereby dividing two intervals.

在步骤S302中,针对图像中像素值分别落入至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声。具体地,可以对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。In step S302, filtering with different degrees of smoothness is performed on pixels whose pixel values in the image respectively fall into at least two intervals, so as to remove flicker noise in the image. Specifically, pixels falling in an interval with a higher pixel value may be filtered with a higher degree of smoothness, and pixels falling in an interval with a lower pixel value may be filtered with a lower degree of smoothness.

一个实施例是通过应用本领域已知的各种图像处理滤波器来对像素进行滤波。例如,可以应用高斯滤波器对图像中的像素进行滤波。具体地,对落入具有较高像素值的区间中的像素应用具有较大方差的高斯滤波器,并对落入具有较低像素值的区间中的像素应用具有较小方差的高斯滤波器。详细示例以结合图2进行了说明,这里不再重复。One embodiment is to filter the pixels by applying various image processing filters known in the art. For example, a Gaussian filter can be applied to filter pixels in an image. Specifically, a Gaussian filter with a larger variance is applied to pixels falling in an interval with a higher pixel value, and a Gaussian filter with a smaller variance is applied to pixels falling in an interval with a lower pixel value. A detailed example is described in conjunction with FIG. 2 , and will not be repeated here.

图4是示出根据本发明实施例的图像处理装置400的结构的框图。如图4所示,图像处理装置400可以包括划分单元410和噪声去除单元420。其中,划分单元410与如图2中示出的划分单元210具有相同的功能和结构,因而,这里省略其详细描述。噪声去除单元420可以通过对待处理图像的每一行的累积直方图进行处理来对该每一行中的像素进行滤波,以去除图像中的噪声。噪声去除单元420可以包括:累积直方图生成单元422、加权处理单元424和规定化单元426。下文中,逐个单元进行详细说明。FIG. 4 is a block diagram showing the structure of an image processing apparatus 400 according to an embodiment of the present invention. As shown in FIG. 4 , the image processing device 400 may include a division unit 410 and a noise removal unit 420 . Wherein, the division unit 410 has the same function and structure as the division unit 210 shown in FIG. 2 , and thus, its detailed description is omitted here. The noise removal unit 420 can filter the pixels in each row of the image to be processed by processing the cumulative histogram of the row, so as to remove the noise in the image. The noise removal unit 420 may include: a cumulative histogram generation unit 422 , a weighting processing unit 424 and a specification unit 426 . Hereinafter, detailed description will be given unit by unit.

累积直方图生成单元422可以针对图像中的每一行生成累积直方图,作为原始累积直方图。The cumulative histogram generating unit 422 can generate a cumulative histogram for each row in the image as an original cumulative histogram.

在一个例子中,当接收到待处理的图像时,噪声去除单元420的累积直方图生成单元422首先针对该待处理图像的每一行生成直方图。这里所说的“每一行”的高度既可以是一个像素,也可以是若干像素。累积直方图生成单元422可以采用现有的各种方法来生成直方图。In one example, when receiving an image to be processed, the cumulative histogram generation unit 422 of the noise removal unit 420 first generates a histogram for each row of the image to be processed. The height of "each row" mentioned here can be one pixel or several pixels. The cumulative histogram generating unit 422 can generate a histogram using various existing methods.

例如,假设一个单通道图像的宽和高分别表示为w和h,在图像点(x,y)的像素值坐标为I(x,y),则对于该单通道图像的第i行的直方图计算公式可以如式(2)所示:For example, assuming that the width and height of a single-channel image are expressed as w and h respectively, and the pixel value coordinates at the image point (x, y) are I(x, y), then for the histogram of the i-th row of the single-channel image The graph calculation formula can be shown in formula (2):

u=0,1...255 (2) u=0,1...255 (2)

其中,u代表小区(bin)的编号。请注意:式(2)是把一个像素值当成一个小区,采用8位量化的灰度图像,所以共256个小区。在式(2)中,δ算子代表这样的映射关系:δ(0)=1(或非零值)且δ(非0)=0。Among them, u represents the number of the cell (bin). Please note: Equation (2) regards a pixel value as a small area, and adopts an 8-bit quantized grayscale image, so there are 256 small areas in total. In formula (2), the δ operator represents such a mapping relationship: δ(0)=1 (or non-zero value) and δ(non-zero)=0.

式(2)示出当将一个像素值作为一个小区时求取直方图的例子,按照直方图的定义,也可以将多个像素值对应为一个小区。例如,u=0,...,7,如下面的式(3)所示:Equation (2) shows an example of obtaining a histogram when one pixel value is regarded as one small area. According to the definition of a histogram, multiple pixel values may also be corresponding to one small area. For example, u=0,...,7, as shown in the following formula (3):

u=0,1...7 (3) u=0,1...7 (3)

其中,B表示像素值I到小区u的映射,当像素值I的映射值B落入小区u时,δ=1(或非零值),否则δ=0。Among them, B represents the mapping from pixel value I to cell u, when the mapped value B of pixel value I falls into cell u, δ=1 (or non-zero value), otherwise δ=0.

然后,累积直方图生成单元422基于图像的每一行的直方图生成每一行的累积直方图。例如,累积直方图生成单元422可以基于下面的等式(4)生成累积直方图:Then, the cumulative histogram generation unit 422 generates a cumulative histogram for each row based on the histogram for each row of the image. For example, the cumulative histogram generating unit 422 can generate a cumulative histogram based on the following equation (4):

加权处理单元424通过将每一行的邻近行的原始累积直方图与每一行的原始累积直方图一起进行加权处理,得到每一行的目标累积直方图。针对由累积直方图生成单元422生成的原始累积直方图中与划分单元410所划分的至少两个区间相对应的各部分,例如原始累积直方图的分别与区间[0,180)和[180,255]相对应的部分,加权处理单元424使用不同的权重进行加权处理。The weighting processing unit 424 obtains the target cumulative histogram of each row by weighting the original cumulative histogram of adjacent rows of each row together with the original cumulative histogram of each row. For each part in the original cumulative histogram generated by the cumulative histogram generation unit 422 corresponding to at least two intervals divided by the division unit 410, for example, the original cumulative histogram corresponds to the intervals [0, 180) and [180, 255] respectively The weighting processing unit 424 performs weighting processing using different weights.

在一个例子中,加权处理单元424通过将第i行的邻近行(第i±k行)的原始累积直方图Hi±k与第i行的原始累积直方图Hi一起进行加权处理,以得到第i行的目标累积直方图。其中,k可以取值1、2、3,或更多。In one example, the weighting processing unit 424 performs weighting processing on the original cumulative histogram H i±k of the adjacent row of the i-th row (i±k-th row) together with the original cumulative histogram H i of the i-th row, to Get the target cumulative histogram for row i. Wherein, k can take a value of 1, 2, 3, or more.

在本发明的一个实施例中,可以使用本领域已知的各种图像处理滤波函数进行该加权处理。例如,可以使用高斯函数对Hi和Hi±k进行加权处理,以得到第i行的目标累积直方图如式(5)所示:In one embodiment of the present invention, various image processing filter functions known in the art can be used to perform the weighting process. For example, Gaussian functions can be used to weight Hi and Hi±k to obtain the target cumulative histogram for row i As shown in formula (5):

其中, k表示上下方向的邻近行数,σ2是高斯方差,并且,有:in, k represents the number of adjacent rows in the up and down direction, σ 2 is the Gaussian variance, and, there are:

其中σ1 2<σ2 2,T是分离低像素值区间和高像素值区间的阈值,即划分点。在一个例子中,T可以取值170~200。这里,只采用一个划分点划分了两个区间。在其它实施例中,也可以通过采用一个以上的划分点来划分两个以上的区间。并且,依据各区间的像素值采用不同的方差。 Where σ 1 22 2 , T is the threshold separating the low pixel value interval from the high pixel value interval, that is, the dividing point. In one example, T can take on a value of 170-200. Here, only one dividing point is used to divide two intervals. In other embodiments, it is also possible to divide more than two intervals by using more than one dividing point. Also, different variances are employed depending on the pixel values in each section.

规定化单元426通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像。The normalization unit 426 obtains a noise-removed image by performing histogram normalization from the original cumulative histogram to the target cumulative histogram.

在得到目标累积直方图之后,噪声去除单元420中的规定化单元426通过从原始累积直方图Hi到目标累积直方图执行直方图规定化,获得噪声去除的图像。例如,规定化单元426可以使用传统的规定化方法,通过调整图像的像素值将原始累积直方图Hi转化为目标累积直方图与转化的目标累积直方图相对应的图像即为噪声被去除的图像。After getting the target cumulative histogram Afterwards, the specification unit 426 in the noise removal unit 420 passes from the original cumulative histogram H i to the target cumulative histogram Perform histogram normalization to obtain a noise-removed image. For example, the normalization unit 426 can use a traditional normalization method to transform the original cumulative histogram H i into the target cumulative histogram by adjusting the pixel values of the image Cumulative histogram vs converted goal The corresponding image is the image from which the noise has been removed.

图5是示出与图4所示图像处理装置进行的处理相对应的图像处理方法的流程图。在步骤S501中,将像素值域划分为至少两个区间。其处理与结合图3的步骤S301说明的处理相同,这里不进行重复描述。FIG. 5 is a flowchart showing an image processing method corresponding to the processing performed by the image processing apparatus shown in FIG. 4 . In step S501, the pixel value range is divided into at least two intervals. Its processing is the same as that described in connection with step S301 in FIG. 3 , and will not be repeated here.

在步骤S502中,针对图像中的每一行生成累积直方图,作为原始累积直方图。In step S502, a cumulative histogram is generated for each row in the image as an original cumulative histogram.

在一个例子中,当接收到待处理的图像时,首先针对该待处理图像的每一行生成直方图。可以采用现有的各种方法来生成直方图。然后,基于图像的每一行的直方图生成每一行的累积直方图。直方图和累积直方图的生成式例如上面的式(2)或(3),以及(4)所示。In one example, when an image to be processed is received, a histogram is first generated for each row of the image to be processed. Various existing methods can be used to generate the histogram. A cumulative histogram for each row is then generated based on the histogram for each row of the image. The generation formulas of histogram and cumulative histogram are shown in formula (2) or (3) and (4) above.

在步骤S503中,通过将每一行的邻近行的原始累积直方图与每一行的原始累积直方图一起进行加权处理,得到每一行的目标累积直方图。具体地,针对原始累积直方图的与在步骤S301中划分的像素值域的至少两个区间相对应的部分,使用不同的权重进行加权处理。In step S503, the target cumulative histogram of each row is obtained by weighting the original cumulative histogram of adjacent rows of each row together with the original cumulative histogram of each row. Specifically, for the part of the original cumulative histogram corresponding to at least two intervals of the pixel value range divided in step S301, different weights are used for weighting processing.

例如,在一个实施例中,在步骤S503中,可以通过应用高斯函数进行加权处理。具体地,对原始累积直方图的与具有较高像素值的区间相对应的部分应用较大的高斯方差;对与具有较低像素值的区间相对应的部分应用较小的高斯方差。For example, in one embodiment, in step S503, weighting processing may be performed by applying a Gaussian function. Specifically, a larger Gaussian variance is applied to the portion of the original cumulative histogram corresponding to the interval with higher pixel values; a smaller Gaussian variance is applied to the portion corresponding to the interval with lower pixel values.

在步骤S504中,通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像。可以使用传统的规定化方法,通过调整图像的像素值将原始累积直方图转化为目标累积直方图,与转化的目标累积直方图相对应的图像即为噪声被去除的图像。In step S504, a noise-removed image is obtained by performing histogram specification from the original cumulative histogram to the target cumulative histogram. The traditional prescriptive method can be used to transform the original cumulative histogram into the target cumulative histogram by adjusting the pixel values of the image, and the image corresponding to the converted target cumulative histogram is the image from which the noise has been removed.

在上面的实施例中,通过对图像的每一行的累积直方图进行加权处理来去除图像的闪烁噪声。在另外的实施例中,也可以通过直接对图像的直方图进行加权处理,然后再获得累积直方图以供进行规定化的方式去除图像的闪烁噪声。In the above embodiments, the flicker noise of the image is removed by weighting the cumulative histogram of each row of the image. In another embodiment, the flicker noise of the image may also be removed by directly performing a weighting process on the histogram of the image, and then obtaining a cumulative histogram for prescribing.

图6是示出根据本发明另一个实施例的图像处理装置600的结构的框图。如图6所示,图像处理装置600可以包括划分单元610和噪声去除单元620。其中,划分单元610与如图2和4中示出的划分单元210和410具有相同的功能和结构,因而,这里省略其详细描述。噪声去除单元620可以通过对待处理图像的每一行的累积直方图进行处理来对该每一行中的像素进行滤波,以去除图像中的噪声。噪声去除单元620可以包括:直方图生成单元622、加权处理单元624、累积直方图生成单元626和规定化单元628。下文中,逐个单元进行详细说明。FIG. 6 is a block diagram showing the structure of an image processing apparatus 600 according to another embodiment of the present invention. As shown in FIG. 6 , the image processing device 600 may include a division unit 610 and a noise removal unit 620 . Wherein, the division unit 610 has the same function and structure as the division units 210 and 410 shown in FIGS. 2 and 4 , and thus, its detailed description is omitted here. The noise removal unit 620 can filter the pixels in each row of the image to be processed by processing the cumulative histogram of the row, so as to remove the noise in the image. The noise removal unit 620 may include: a histogram generation unit 622 , a weighting processing unit 624 , a cumulative histogram generation unit 626 and a specification unit 628 . Hereinafter, detailed description will be given unit by unit.

直方图生成单元622可以针对待处理图像中的每一行生成直方图,作为原始直方图。这里,图像的每一行的高度可以是一个或更多个像素。换句话说,图像的每一行具有一个或更多个像素的高度。直方图生成可以参考上面参考式(2)或(3)所说明的例子。The histogram generation unit 622 may generate a histogram for each row in the image to be processed as an original histogram. Here, the height of each row of the image may be one or more pixels. In other words, each row of the image has a height of one or more pixels. For histogram generation, reference may be made to the example described above with reference to formula (2) or (3).

加权处理单元624可以通过将每一行的邻近行的原始直方图与每一行的原始直方图一起进行加权处理,得到每一行的目标直方图。对每一行与其邻近行的原始直方图进行加权处理,即对原始直方图中相应的小区所对应的像素数目进行加权处理。The weighting processing unit 624 can obtain the target histogram of each row by weighting the original histograms of adjacent rows of each row together with the original histogram of each row. The weighting process is performed on the original histograms of each row and its adjacent rows, that is, the weighting process is performed on the number of pixels corresponding to the corresponding sub-districts in the original histogram.

以划分为两个区间[0,180)和[180,255]为例,假设在区间[0,180)上,第i行图像的原始直方图对应的加权系数为Qi,其邻近行i±k对应的加权系数为Qi±k;而在区间[180,255]上,第i行图像的原始直方图对应的加权系数为Pi,其邻近行i±k对应的加权系数为Pi±k。其中,Qi、Qi±k、Pi、Pi±k的设置使得相比较而言,对落入区间[0,180)的第i行图像的像素进行平滑程度较低的滤波,而对落入区间[180,255]的第i行图像的像素进行平滑程度较高的滤波。Taking the division into two intervals [0,180) and [180,255] as an example, assuming that on the interval [0,180), the weighting coefficient corresponding to the original histogram of the i-th row image is Q i , and the weighting coefficient corresponding to its adjacent row i±k is Q i±k ; and on the interval [180,255], the weighting coefficient corresponding to the original histogram of the i-th row image is P i , and the weighting coefficient corresponding to the adjacent row i±k is P i±k . Among them, the settings of Q i , Q i±k , P i , P i±k make it possible to filter the pixels of the i-th row image falling in the interval [0,180) with a relatively low degree of smoothness, while the pixels falling into The pixels of the i-th row of image in the interval [180, 255] are filtered with a higher degree of smoothness.

累积直方图生成单元626可以分别根据每一行的原始直方图和目标直方图生成针对每一行的原始累积直方图和目标累积直方图。本领域技术人员可以得知生成直方图的方法,这里不再进行详细描述。The cumulative histogram generating unit 626 may generate an original cumulative histogram and a target cumulative histogram for each row from the original histogram and the target histogram of each row, respectively. Those skilled in the art can know the method of generating the histogram, which will not be described in detail here.

规定化单元628可以通过从原始累积直方图到目标累积直方图执行直方图规定化来获得去除了噪声的图像。例如,规定化单元628可以使用传统的规定化方法,通过调整图像的像素值将原始累积直方图转化为目标累积直方图,与转化的目标累积直方图相对应的图像即为噪声被去除的图像。The normalization unit 628 may obtain a noise-removed image by performing histogram normalization from the original cumulative histogram to the target cumulative histogram. For example, the regularization unit 628 can use a traditional regularization method to transform the original cumulative histogram into a target cumulative histogram by adjusting the pixel values of the image, and the image corresponding to the converted target cumulative histogram is the image with noise removed .

尽管参考图6说明的实施例与参考图4说明的实施例分别对直方图和累积直方图进行加权处理,但是由于它们都对落入不同像素值区间的像素进行不同程度的滤波,因而都可以达到良好的噪声去除效果。Although the embodiment described with reference to FIG. 6 and the embodiment described with reference to FIG. 4 perform weighting processing on the histogram and the cumulative histogram respectively, since they all perform different degrees of filtering on pixels falling into different pixel value intervals, they can all be achieve a good noise removal effect.

图7是示出与根据图6的图像处理装置600所执行的处理相对应的图像处理方法的流程图。在步骤S701中,将像素值域划分为至少两个区间。其处理与结合图3和图5的步骤S301和S501说明的处理相同,这里不进行重复描述。FIG. 7 is a flowchart showing an image processing method corresponding to the processing performed by the image processing apparatus 600 according to FIG. 6 . In step S701, the pixel value range is divided into at least two intervals. Its processing is the same as that described in conjunction with steps S301 and S501 in FIG. 3 and FIG. 5 , and will not be repeated here.

在步骤S702中,针对图像中的每一行生成直方图,作为原始直方图。然后,在步骤S703中,通过将每一行的邻近行的原始直方图与每一行的原始直方图一起进行加权处理,得到每一行的目标直方图。具体地,针对该行与邻近行的原始直方图的与划分单元划分的至少两个区间相对应的各小区,使用不同的权重进行加权处理,从而对图像的像素值进行滤波。例如,对落入具有较高像素值的区间中的像素值进行平滑程度较高的滤波,对落入具有较低像素值的区间中的像素值进行平滑程度较低的滤波。示例方法可以参见在对图6的图像处理装置进行描述时所做的说明。In step S702, a histogram is generated for each row in the image as an original histogram. Then, in step S703, the target histogram of each row is obtained by weighting the original histogram of the adjacent row of each row together with the original histogram of each row. Specifically, different weights are used to carry out weighting processing on the original histograms of the row and adjacent rows corresponding to at least two intervals divided by the division unit, so as to filter the pixel values of the image. For example, pixel values falling in the interval with higher pixel values are filtered more smoothly, and pixel values falling in the interval with lower pixel values are filtered less smoothly. For an example method, reference may be made to the description made when describing the image processing device in FIG. 6 .

在步骤S704中,分别根据每一行的原始直方图和目标直方图生成针对该行的原始累积直方图和目标累积直方图。在步骤S705中,通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像。可以使用传统的规定化方法进行该直方图规定化。In step S704, an original cumulative histogram and a target cumulative histogram for each row are generated respectively according to the original histogram and the target histogram of the row. In step S705, a noise-removed image is obtained by performing histogram specification from the original cumulative histogram to the target cumulative histogram. This histogram normalization can be performed using conventional normalization methods.

上面以示例的方式对根据本发明的图像处理装置和方法进行了描述。使用如上方案,可以对相邻行直方图或累积直方图具有较大差异的彩色图像进行非等间隔的闪烁噪声消除。下面,为了得到更加优质的噪声去除效果,将结合其它实例讨论进一步的改进。上面的方案中,已经通过对像素直接进行滤波处理,或对直方图或累积直方图进行平滑以间接对像素进行滤波处理的方式,通过对具有不同像素值的位置进行不同平滑程度的滤波得到了去除了闪烁噪声的图像。下文中,参考图8,描述能够避免噪声去除引起的线性失真或溢出等问题的进一步的改进方案。The image processing apparatus and method according to the present invention have been described above by way of example. Using the scheme above, non-equally spaced flicker noise removal can be performed on color images with large differences in adjacent row histograms or cumulative histograms. Next, in order to obtain a better noise removal effect, further improvements will be discussed in conjunction with other examples. In the above scheme, the pixels have been directly filtered, or the histogram or cumulative histogram is smoothed to indirectly filter the pixels, and the positions with different pixel values are filtered with different degrees of smoothness. Image with flicker noise removed. Hereinafter, with reference to FIG. 8 , a further improvement solution capable of avoiding problems such as linear distortion or overflow caused by noise removal is described.

图8是示出根据本发明实施例的改进的规定化单元800的结构的框图。如图8所示,根据本实施例的图像处理装置中的规定化单元800包括:查询表生成单元810以及规定化处理单元820。FIG. 8 is a block diagram showing the structure of an improved specification unit 800 according to an embodiment of the present invention. As shown in FIG. 8 , the specification unit 800 in the image processing apparatus according to this embodiment includes: a lookup table generation unit 810 and a specification processing unit 820 .

查询表生成单元810可以根据原始累积直方图和目标累积直方图生成像素的原始像素值到目标像素值的查询表。然后,规定化处理单元820可以基于特定像素的原始像素值和从查询表中读取的相应目标像素值来按照预定规则对相应目标像素值进行修正,并使得在规定化结果图像中该特定像素的像素值等于经修正的像素值。The lookup table generation unit 810 may generate a lookup table from the original pixel value to the target pixel value of the pixel according to the original cumulative histogram and the target cumulative histogram. Then, the specification processing unit 820 can modify the corresponding target pixel value according to a predetermined rule based on the original pixel value of the specific pixel and the corresponding target pixel value read from the lookup table, and make the specific pixel in the specified result image The pixel value of is equal to the corrected pixel value.

对目标像素进行修正的规则可以根据不同需要进行设计。在根据本发明的一个实施例中,当特定像素的原始像素值与相应目标像素值的差的绝对值小于等于预定阈值α时,规定化处理单元820可以使得经修正的目标像素值为相应目标像素值本身;而当该特定像素的原始像素值与相应目标像素值的差的绝对值大于预定阈值α时,规定化处理单元820可以使得原始像素值与经修正的目标像素值的差的绝对值等于预定阈值α。如式(6)所示:The rules for correcting target pixels can be designed according to different needs. In one embodiment of the present invention, when the absolute value of the difference between the original pixel value of a specific pixel and the corresponding target pixel value is less than or equal to a predetermined threshold α, the specification processing unit 820 can make the corrected target pixel value the corresponding target The pixel value itself; and when the absolute value of the difference between the original pixel value and the corresponding target pixel value of the specific pixel is greater than the predetermined threshold α, the stipulation processing unit 820 can make the absolute value of the difference between the original pixel value and the corrected target pixel value The value is equal to the predetermined threshold α. As shown in formula (6):

根据原始累积直方图和目标累积直方图,查询表生成单元810得到查询表F(),把原始像素值I(x,y)对应到目标像素值F(I(x,y))。但为了进一步避免溢出等特殊情况,如式(6)所示,规定化处理单元820根据预先设定的阈值α确定是否使用查询表中的目标像素值本身作为规定化结果图像中相应像素的像素值在|F(I(x,y))-I(x,y)|>α时,规定化处理单元820放弃查询表中的目标像素值,而使以生成经修正的目标像素值用于规定化结果图像。这里,对α的“±”取决于F(I(x,y))-I(x,y)的符号。具体地,当F(I(x,y))-I(x,y)>0时,为“+”;当F(I(x,y))-I(x,y)<0时,为“-”。另外,在一些情况下,当I(x,y)±α<0或I(x,y)±α>255时,可以分别使得I(x,y)±α等于0或255。According to the original cumulative histogram and the target cumulative histogram, the lookup table generating unit 810 obtains a lookup table F(), which maps the original pixel value I(x,y) to the target pixel value F(I(x,y)). But in order to further avoid special situations such as overflow, as shown in formula (6), the specification processing unit 820 determines whether to use the target pixel value itself in the lookup table as the pixel of the corresponding pixel in the specification result image according to the preset threshold α value When |F(I(x,y))-I(x,y)|>α, the specification processing unit 820 discards the target pixel value in the lookup table, and uses to generate corrected target pixel values for specifying the resulting image. Here, "±" to α depends on the sign of F(I(x,y))-I(x,y). Specifically, when F(I(x,y))-I(x,y)>0, it is "+"; when F(I(x,y))-I(x,y)<0, for"-". In addition, in some cases, when I(x,y)±α<0 or I(x,y)±α>255, I(x,y)±α may be made equal to 0 or 255, respectively.

例如,假设原始像素值为120,其在查询表中对应的目标像素值为80,则原始像素值与目标像素值的差的绝对值为40。在预先设定的阈值为20的情况下,规定化处理单元820对目标像素值进行修正,使得经修正的目标像素值等于100(120-20)。然后,规定化处理单元820将经修正的像素值(100)写入作为处理结果的图像的相应位置。For example, assuming that the original pixel value is 120 and its corresponding target pixel value is 80 in the lookup table, the absolute value of the difference between the original pixel value and the target pixel value is 40. In the case where the preset threshold value is 20, the stipulation processing unit 820 corrects the target pixel value so that the corrected target pixel value is equal to 100 (120−20). Then, the specification processing unit 820 writes the corrected pixel value (100) into the corresponding position of the image as the processing result.

在本发明的另一个实施例中,当特定像素的原始像素值与相应目标像素值的差的绝对值小于等于预定阈值时,规定化处理单元820可以使得经修正的目标像素值为相应目标像素值本身;而当特定像素的原始像素值与相应目标像素值的差的绝对值大于预定阈值时,规定化处理单元820可以对目标像素值进行修正,使得经修正的目标像素值等于原始像素值与相应目标像素值的加权和。如下面式(7)例示出的一种通过求取加权和生成修正的目标像素值的方式:In another embodiment of the present invention, when the absolute value of the difference between the original pixel value of a specific pixel and the corresponding target pixel value is less than or equal to a predetermined threshold, the specification processing unit 820 can make the corrected target pixel value corresponding to the target pixel value itself; and when the absolute value of the difference between the original pixel value of a specific pixel and the corresponding target pixel value is greater than a predetermined threshold, the stipulation processing unit 820 can modify the target pixel value so that the corrected target pixel value is equal to the original pixel value and the weighted sum of the corresponding target pixel values. As shown in the following formula (7), a way to generate a corrected target pixel value by calculating the weighted sum:

其中,0≤m≤1。Among them, 0≤m≤1.

当然,也可以不设定任何阈值,而使规定化处理单元820直接对目标像素值进行修正。例如,如式(7)所示,使得经修正的目标像素值等于原始像素值与相应目标像素值的加权和。Of course, it is also possible not to set any threshold, and to make the specification processing unit 820 directly correct the target pixel value. For example, as shown in formula (7), the corrected target pixel value is equal to the weighted sum of the original pixel value and the corresponding target pixel value.

规定化单元800所使用的改进的规定化处理方法与在上面结合图8详细说明的规定化单元800所进行的规定化处理步骤相对应,这里不再进行详细描述。The improved prescriptive processing method used by the prescriptive unit 800 corresponds to the prescriptive processing steps performed by the prescriptive unit 800 described above in detail in conjunction with FIG. 8 , and will not be described in detail here.

对于彩色图像的闪烁噪声去除。根据本发明的图像处理装置还可以包括色彩分离与组合单元。色彩分离与组合单元可以将待处理的彩色图像分离为单独的单通道图像(例如R、G、B),以及将分别进行了噪声去除处理的单通道图像组合为彩色图像。在相应的处理中,在对彩色图像进行噪声去除之前,将彩色图像分离为单独的单通道图像;并且,在对各单通道图像进行了噪声去除之后,将各单通道图像组合为彩色图像。Flicker noise removal for color images. The image processing apparatus according to the present invention may further include a color separation and combination unit. The color separation and combination unit can separate the color image to be processed into separate single-channel images (such as R, G, B), and combine the single-channel images that have undergone noise removal processing respectively into a color image. In the corresponding processing, the color image is separated into individual single-channel images before noise removal is performed on the color image; and, after noise removal is performed on each single-channel image, each single-channel image is combined into a color image.

下文中,参考图9描述实现本发明的图像处理装置的计算机的示例性结构。图9是示出实现本发明的计算机的示例性结构的框图。Hereinafter, an exemplary structure of a computer implementing the image processing apparatus of the present invention is described with reference to FIG. 9 . FIG. 9 is a block diagram showing an exemplary structure of a computer implementing the present invention.

在图9中,中央处理单元(CPU)901根据只读存储器(ROM)902中存储的程序或从存储部分908加载到随机存取存储器(RAM)903的程序执行各种处理。在RAM 903中,也根据需要存储当CPU 901执行各种处理时所需的数据。In FIG. 9 , a central processing unit (CPU) 901 executes various processes according to programs stored in a read only memory (ROM) 902 or programs loaded from a storage section 908 to a random access memory (RAM) 903 . In the RAM 903, data required when the CPU 901 executes various processes is also stored as necessary.

CPU 901、ROM 902和RAM 903经由总线904彼此连接。输入/输出接口905也连接到总线904。The CPU 901 , ROM 902 , and RAM 903 are connected to each other via a bus 904 . An input/output interface 905 is also connected to the bus 904 .

下述部件连接到输入/输出接口905:输入部分906,包括键盘、鼠标等;输出部分907,包括显示器,诸如阴极射线管(CRT)、液晶显示器(LCD)等,以及扬声器等;存储部分908,包括硬盘等;以及通信部分909,包括网络接口卡诸如LAN卡、调制解调器等。通信部分909经由网络诸如因特网执行通信处理。The following components are connected to the input/output interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 908 , including a hard disk, etc.; and a communication section 909, including a network interface card such as a LAN card, a modem, and the like. The communication section 909 performs communication processing via a network such as the Internet.

根据需要,驱动器910也连接到输入/输出接口905。可拆卸介质911诸如磁盘、光盘、磁光盘、半导体存储器等根据需要被安装在驱动器910上,使得从中读出的计算机程序根据需要被安装到存储部分908中。A drive 910 is also connected to the input/output interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read therefrom is installed into the storage section 908 as necessary.

在通过软件实现上述步骤和处理的情况下,从网络诸如因特网或存储介质诸如可拆卸介质911安装构成软件的程序。In the case of implementing the above-described steps and processing by software, the programs constituting the software are installed from a network such as the Internet or a storage medium such as the removable medium 911 .

本领域的技术人员应当理解,这种存储介质不局限于图9所示的其中存储有程序、与方法相分离地分发以向用户提供程序的可拆卸介质911。可拆卸介质911的例子包含磁盘、光盘(包含光盘只读存储器(CD-ROM)和数字通用盘(DVD))、磁光盘(包含迷你盘(MD))和半导体存储器。或者,存储介质可以是ROM 902、存储部分908中包含的硬盘等,其中存有程序,并且与包含它们的方法一起被分发给用户。Those skilled in the art should understand that such a storage medium is not limited to the removable medium 911 shown in FIG. 9 in which the program is stored and distributed separately from the method to provide the program to users. Examples of the removable medium 911 include magnetic disks, optical disks (including compact disk read only memory (CD-ROM) and digital versatile disk (DVD)), magneto-optical disks (including MiniDisc (MD)), and semiconductor memories. Alternatively, the storage medium may be the ROM 902, a hard disk contained in the storage section 908, or the like, in which programs are stored and distributed to users together with a method containing them.

在上面对本发明具体实施例的描述中,针对一种实施例描述和/或示出的特征可以以相同或类似的方式在一个或更多个其它实施例中使用,与其它实施例中的特征相组合,或替代其它实施例中的特征。In the above description of specific embodiments of the present invention, features described and/or illustrated for one embodiment can be used in one or more other embodiments in the same or similar manner, and features in other embodiments Combination, or replacement of features in other embodiments.

应该强调,术语“包括/”在本文使用时指特征、要素、步骤或组件的存在,但并不排除一个或更多个其它特征、要素、步骤或组件的存在或附加。It should be emphasized that the term "comprising/" when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

此外,本发明的各实施例的方法不限于按照说明书中描述的或者附图中示出的时间顺序来执行,也可以按照其它的时间顺序、并行地或独立地执行。因此,本说明书中描述的方法的执行顺序不对本发明的技术范围构成限制。In addition, the methods in the various embodiments of the present invention are not limited to being executed in the time sequence described in the description or shown in the drawings, and may also be executed in other time sequences, in parallel or independently. Therefore, the execution order of the methods described in this specification does not limit the technical scope of the present invention.

综上,在根据本发明的实施例中,本发明提供了如下方案:To sum up, in the embodiments according to the present invention, the present invention provides the following solutions:

1.一种图像处理装置,用于去除图像中的闪烁噪声,包括:1. An image processing device for removing flicker noise in an image, comprising:

划分单元,用于将像素值域划分为至少两个区间;A division unit, configured to divide the pixel value range into at least two intervals;

噪声去除单元,用于针对所述图像中像素值分别落入所述至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声,其中,A noise removal unit, configured to perform filtering with different degrees of smoothness on pixels whose pixel values in the image respectively fall into the at least two intervals, so as to remove flicker noise in the image, wherein,

所述噪声去除单元对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。The noise removal unit performs smoother filtering on pixels falling in a section with a higher pixel value, and performs smoother filtering on pixels falling in a section with a lower pixel value.

2.根据项1所述的图像处理装置,其中,所述噪声去除单元通过应用高斯滤波器来对像素进行滤波,其中,所述噪声去除单元对落入具有较高像素值的区间中的像素应用具有较大方差的高斯滤波器,并对落入具有较低像素值的区间中的像素应用具有较小方差的高斯滤波器。2. The image processing device according to item 1, wherein the noise removal unit filters pixels by applying a Gaussian filter, wherein the noise removal unit filters pixels falling in a section with a higher pixel value Apply a Gaussian filter with a larger variance, and apply a Gaussian filter with a smaller variance to pixels that fall in an interval with lower pixel values.

3.根据项1所述的图像处理装置,其中,所述噪声去除单元通过对所述图像的每一行的累积直方图进行处理来对所述每一行中的像素进行滤波,以去除图像中的噪声,所述图像的每一行具有一个或更多个像素的高度,所述噪声去除单元包括:3. The image processing device according to item 1, wherein the noise removal unit filters pixels in each row of the image by processing a cumulative histogram of each row of the image to remove noise in the image noise, each row of the image has a height of one or more pixels, and the noise removal unit includes:

累积直方图生成单元,用于针对所述图像中的每一行生成累积直方图,作为原始累积直方图;A cumulative histogram generating unit, configured to generate a cumulative histogram for each row in the image as an original cumulative histogram;

加权处理单元,用于通过将所述每一行的邻近行的原始累积直方图与所述每一行的原始累积直方图一起进行加权处理,得到所述每一行的目标累积直方图;a weighting processing unit, configured to perform weighting processing on the original cumulative histogram of adjacent rows of each row and the original cumulative histogram of each row to obtain the target cumulative histogram of each row;

规定化单元,用于通过从原始累积直方图到目标累积直方图的直方图规定化,来获得去除了噪声的图像,其中,A regularization unit for obtaining a noise-removed image by normalizing the histogram from the original cumulative histogram to the target cumulative histogram, wherein,

针对所述原始累积直方图的与所述划分单元划分的所述至少两个区间相对应的各部分,所述加权处理单元使用不同的权重进行所述加权处理。For each part of the original cumulative histogram corresponding to the at least two intervals divided by the dividing unit, the weighting processing unit uses different weights to perform the weighting process.

4.根据项3所述的图像处理装置,其中,所述加权处理单元通过应用高斯函数进行所述加权处理,其中,4. The image processing device according to item 3, wherein the weighting processing unit performs the weighting processing by applying a Gaussian function, wherein

所述加权处理单元对与具有较高像素值的所述区间相对应的部分应用较大的高斯方差;对与具有较低像素值的所述区间相对应的部分应用较小的高斯方差。The weighting processing unit applies a larger Gaussian variance to a portion corresponding to the interval with a higher pixel value; applies a smaller Gaussian variance to a portion corresponding to the interval with a lower pixel value.

5.根据项1所述的图像处理装置,其中,所述噪声去除单元通过对所述图像的每一行的累积直方图进行处理来对所述每一行中的像素进行滤波,以去除图像中的噪声,所述图像的每一行具有一个或更多个像素的高度,所述噪声去除单元包括:5. The image processing device according to item 1, wherein the noise removal unit filters pixels in each row of the image by processing a cumulative histogram of each row of the image to remove noise in the image noise, each row of the image has a height of one or more pixels, and the noise removal unit includes:

直方图生成单元,用于针对所述图像中的每一行生成直方图,作为原始直方图;A histogram generating unit, configured to generate a histogram for each row in the image as an original histogram;

加权处理单元,用于通过将所述每一行的邻近行的原始直方图与所述每一行的原始直方图一起进行加权处理,得到所述每一行的目标直方图;a weighting processing unit, configured to obtain the target histogram of each row by weighting the original histogram of the adjacent row of each row and the original histogram of each row;

累积直方图生成单元,用于分别根据所述每一行的原始直方图和目标直方图生成针对所述每一行的原始累积直方图和目标累积直方图;a cumulative histogram generating unit, configured to generate an original cumulative histogram and a target cumulative histogram for each row according to the original histogram and the target histogram for each row;

规定化单元,用于通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像,其中,A specification unit for obtaining a noise-removed image by performing histogram specification from the original cumulative histogram to the target cumulative histogram, wherein,

针对所述原始直方图的与所述划分单元划分的所述至少两个区间相对应的各小区,所述加权处理单元使用不同的权重进行所述加权处理。The weighting processing unit uses different weights to perform the weighting processing for each cell in the original histogram corresponding to the at least two intervals divided by the dividing unit.

6.根据项3至5中任一个所述的图像处理装置,其中,所述规定化单元包括:6. The image processing device according to any one of clauses 3 to 5, wherein the specifying unit comprises:

查询表生成单元,用于根据所述原始累积直方图和所述目标累积直方图生成像素的原始像素值到目标像素值的查询表;以及a lookup table generation unit, configured to generate a lookup table from the original pixel value of the pixel to the target pixel value according to the original cumulative histogram and the target cumulative histogram; and

规定化处理单元,用于基于特定像素的原始像素值和从所述查询表中读取的相应目标像素值来按照预定规则对所述相应目标像素值进行修正,并使得在规定化结果图像中所述特定像素的像素值等于经修正的像素值。A prescriptive processing unit, configured to modify the corresponding target pixel value according to a predetermined rule based on the original pixel value of a specific pixel and the corresponding target pixel value read from the look-up table, and make the specified result image The pixel value of the particular pixel is equal to the corrected pixel value.

7.根据项6所述的图像处理装置,其中,当特定像素的原始像素值与相应目标像素值的差的绝对值小于等于预定阈值时,所述规定化处理单元使得经修正的目标像素值为所述相应目标像素值本身;当所述特定像素的原始像素值与相应目标像素值的差的绝对值大于预定阈值时,所述规定化处理单元使得所述原始像素值与经修正的目标像素值的差的绝对值等于所述预定阈值。7. The image processing device according to item 6, wherein when the absolute value of the difference between the original pixel value of a specific pixel and the corresponding target pixel value is less than or equal to a predetermined threshold, the specification processing unit makes the corrected target pixel value is the corresponding target pixel value itself; when the absolute value of the difference between the original pixel value of the specific pixel and the corresponding target pixel value is greater than a predetermined threshold, the specification processing unit makes the original pixel value and the corrected target pixel value The absolute value of the difference in pixel values is equal to said predetermined threshold.

8.根据项6所述的图像处理装置,其中,所述规定化处理单元使得经修正的目标像素值等于原始像素值与相应目标像素值的加权和。8. The image processing device according to item 6, wherein the specification processing unit makes the corrected target pixel value equal to a weighted sum of the original pixel value and the corresponding target pixel value.

9.根据项1至8中任一个所述的图像处理装置,还包括:色彩分离与组合单元,用于将待处理的彩色图像分离为单独的单通道图像,以及将分别进行了噪声去除处理的单通道图像组合为彩色图像。9. The image processing device according to any one of items 1 to 8, further comprising: a color separation and combination unit, which is used to separate the color image to be processed into separate single-channel images, and perform noise removal processing respectively The single-channel images are combined into color images.

10.一种图像处理方法,用于去除图像中的闪烁噪声,包括:10. An image processing method for removing flicker noise in an image, comprising:

划分步骤,将像素值域划分为至少两个区间;A division step, dividing the pixel value range into at least two intervals;

噪声去除步骤,针对所述图像中像素值分别落入所述至少两个区间的像素进行不同平滑程度的滤波,以去除图像中的闪烁噪声,其中,The noise removal step is to perform filtering with different degrees of smoothness on pixels whose pixel values in the image respectively fall into the at least two intervals, so as to remove flicker noise in the image, wherein,

对落入具有较高像素值的区间中的像素进行平滑程度较高的滤波,并对落入具有较低像素值的区间中的像素进行平滑程度较低的滤波。Pixels falling in bins with higher pixel values are filtered more smoothly, and pixels falling in bins with lower pixel values are filtered less smoothly.

11.根据项10所述的图像处理方法,其中,在所述噪声去除步骤中,通过应用高斯滤波器来对像素进行滤波,其中,对落入具有较高像素值的区间中的像素应用具有较大方差的高斯滤波器,并对落入具有较低像素值的区间中的像素应用具有较小方差的高斯滤波器。11. The image processing method according to item 10, wherein, in the noise removal step, pixels are filtered by applying a Gaussian filter, wherein pixels falling in intervals with higher pixel values are applied with Gaussian filter with larger variance and applies a Gaussian filter with smaller variance to pixels that fall in the interval with lower pixel values.

12.根据项10所述的图像处理方法,其中,在所述噪声去除步骤中,通过对所述图像的每一行的累积直方图进行处理来对所述每一行中的像素进行滤波,以去除图像中的噪声,所述每一行具有一个或更多个像素的高度,所述噪声去除步骤包括:12. The image processing method according to item 10, wherein, in the noise removal step, the pixels in each row of the image are filtered by processing the cumulative histogram of each row to remove Noise in the image, each row has a height of one or more pixels, and the noise removal step includes:

累积直方图生成步骤,针对所述图像中的每一行生成累积直方图,作为原始累积直方图;A cumulative histogram generation step, generating a cumulative histogram for each row in the image as an original cumulative histogram;

加权处理步骤,通过将所述每一行的邻近行的原始累积直方图与所述每一行的原始累积直方图一起进行加权处理,得到所述每一行的目标累积直方图;A weighting processing step, by weighting the original cumulative histogram of the adjacent row of each row and the original cumulative histogram of each row to obtain the target cumulative histogram of each row;

规定化步骤,通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像,其中,A regularization step, by performing histogram regularization from the original cumulative histogram to the target cumulative histogram, to obtain a noise-removed image, wherein,

在所述加权处理步骤中,针对所述原始累积直方图的与所述至少两个区间相对应的部分,使用不同的权重进行所述加权处理。In the weighting processing step, different weights are used to perform the weighting processing on the parts of the original cumulative histogram corresponding to the at least two intervals.

13.根据项12所述的图像处理方法,其中,在所述加权处理步骤中,通过应用高斯函数进行所述加权处理,其中,13. The image processing method according to item 12, wherein, in the weighting processing step, the weighting processing is performed by applying a Gaussian function, wherein,

对与具有较高像素值的所述区间相对应的部分应用较大的高斯方差;对与具有较低像素值的所述区间相对应的部分应用较小的高斯方差。A larger Gaussian variance is applied to portions corresponding to said intervals with higher pixel values; a smaller Gaussian variance is applied to portions corresponding to said intervals with lower pixel values.

14.根据项10所述的图像处理方法,其中,在所述噪声去除步骤中,通过对所述图像的每一行的累积直方图进行处理来对所述每一行中的像素进行滤波,以去除图像中的噪声,所述图像的每一行具有一个或更多个像素的高度,所述噪声去除步骤包括:14. The image processing method according to item 10, wherein, in the noise removal step, the pixels in each row of the image are filtered by processing the cumulative histogram of each row to remove Noise in the image, each row of the image has a height of one or more pixels, and the noise removal step includes:

直方图生成步骤,针对所述图像中的每一行生成直方图,作为原始直方图;A histogram generating step, generating a histogram for each row in the image as an original histogram;

加权处理步骤,通过将所述每一行的邻近行的原始直方图与所述每一行的原始直方图一起进行加权处理,得到所述每一行的目标直方图;A weighting processing step, by weighting the original histogram of the adjacent row of each row and the original histogram of each row together to obtain the target histogram of each row;

累积直方图生成步骤,分别根据所述每一行的原始直方图和目标直方图生成针对所述每一行的原始累积直方图和目标累积直方图;A cumulative histogram generation step, generating an original cumulative histogram and a target cumulative histogram for each row according to the original histogram and the target histogram of each row respectively;

规定化步骤,通过从原始累积直方图到目标累积直方图执行直方图规定化,来获得去除了噪声的图像,其中,A regularization step, by performing histogram regularization from the original cumulative histogram to the target cumulative histogram, to obtain a noise-removed image, wherein,

在所述加权处理步骤中,针对所述原始直方图的与所述划分单元划分的所述至少两个区间相对应的各小区,使用不同的权重进行所述加权处理。In the weighting processing step, different weights are used to perform the weighting processing for each of the cells in the original histogram corresponding to the at least two intervals divided by the dividing unit.

15.根据项10至14中任一个所述的图像处理方法,其中,所述规定化步骤包括:15. The image processing method according to any one of clauses 10 to 14, wherein the step of specifying comprises:

查询表生成步骤,根据所述原始累积直方图和所述目标累积直方图生成像素的原始像素值到目标像素值的查询表;以及A look-up table generation step, generating a look-up table from the original pixel value of the pixel to the target pixel value according to the original cumulative histogram and the target cumulative histogram; and

规定化处理步骤,基于特定像素的原始像素值和从所述查询表中读取的相应目标像素值来按照预定规则对所述相应目标像素值进行修正,并使得在规定化结果图像中所述特定像素的像素值等于经修正的像素值。A prescriptive processing step, based on the original pixel value of a specific pixel and the corresponding target pixel value read from the look-up table, correcting the corresponding target pixel value according to a predetermined rule, and making the specified pixel value described in the prescriptive result image The pixel value of a particular pixel is equal to the corrected pixel value.

16.根据项15所述的图像处理方法,其中,当特定像素的原始像素值与相应目标像素值的差的绝对值小于等于预定阈值时,在所述规定化处理步骤中,使得经修正的目标像素值为所述相应目标像素值本身;并且当所述特定像素的原始像素值与相应目标像素值的差的绝对值大于预定阈值时,在所述规定化处理步骤中,使得所述原始像素值与经修正的目标像素值的差的绝对值等于所述预定阈值。16. The image processing method according to item 15, wherein, when the absolute value of the difference between the original pixel value of a specific pixel and the corresponding target pixel value is less than or equal to a predetermined threshold, in the prescribed processing step, the corrected The target pixel value is the corresponding target pixel value itself; and when the absolute value of the difference between the original pixel value of the specific pixel and the corresponding target pixel value is greater than a predetermined threshold value, in the prescribing processing step, the original The absolute value of the difference between the pixel value and the corrected target pixel value is equal to the predetermined threshold.

17.根据项15所述的图像处理方法,其中,在所述规定化处理步骤中,使得经修正的目标像素值等于原始像素值与相应目标像素值的加权和。17. The image processing method according to item 15, wherein, in the prescribing processing step, the corrected target pixel value is made equal to the weighted sum of the original pixel value and the corresponding target pixel value.

18.根据项10至17中任一个所述的图像处理方法,还包括:18. The image processing method according to any one of items 10 to 17, further comprising:

色彩分离步骤,将待处理的彩色图像分离为单独的单通道图像;以及色彩组合步骤,将分别进行了噪声去除处理的单通道图像组合为彩色图像。The color separation step is to separate the color image to be processed into individual single-channel images; and the color combination step is to combine the single-channel images respectively subjected to noise removal processing into a color image.

Claims (10)

1. An image processing apparatus for removing flicker noise in an image, comprising:
a dividing unit for dividing the pixel value range into at least two sections;
a noise removing unit, configured to perform filtering with different degrees of smoothness on pixels in the image whose pixel values respectively fall into the at least two sections to remove flicker noise in the image,
the noise removing unit performs filtering with a higher degree of smoothing on pixels falling in an interval with a higher pixel value, and performs filtering with a lower degree of smoothing on pixels falling in an interval with a lower pixel value.
2. The image processing apparatus according to claim 1, wherein the noise removal unit filters the pixels by applying a gaussian filter, wherein the noise removal unit applies a gaussian filter having a large variance to pixels falling in an interval having a higher pixel value and applies a gaussian filter having a small variance to pixels falling in an interval having a lower pixel value.
3. The image processing apparatus according to claim 1, wherein the noise removing unit filters pixels in each line of the image by processing a cumulative histogram of the each line to remove noise in the image, each line of the image having a height of one or more pixels, the noise removing unit includes:
a cumulative histogram generating unit for generating a cumulative histogram for each row in the image as an original cumulative histogram;
a weighting processing unit, configured to perform weighting processing on the original cumulative histogram of the adjacent row of each row and the original cumulative histogram of each row to obtain a target cumulative histogram of each row;
a prescribing unit for obtaining an image from which noise is removed by histogram specification from an original cumulative histogram to a target cumulative histogram, wherein,
the weighting processing unit performs the weighting processing using different weights for respective portions of the original cumulative histogram corresponding to the at least two bins divided by the dividing unit.
4. The image processing apparatus according to claim 1, wherein the noise removing unit filters pixels in each line of the image by processing a cumulative histogram of the each line to remove noise in the image, each line of the image having a height of one or more pixels, the noise removing unit includes:
a histogram generating unit configured to generate a histogram for each line in the image as an original histogram;
a weighting processing unit, configured to perform weighting processing on the original histograms of the adjacent rows of each row and the original histogram of each row to obtain a target histogram of each row;
a cumulative histogram generating unit configured to generate an original cumulative histogram and a target cumulative histogram for each line from the original histogram and the target histogram of each line, respectively;
a regularization unit for obtaining an image from which noise is removed by performing histogram regularization from an original cumulative histogram to a target cumulative histogram, wherein,
the weighting processing unit performs the weighting processing using different weights for each cell of the original histogram corresponding to the at least two bins divided by the dividing unit.
5. The image processing apparatus according to claim 3 or 4, wherein the prescribing unit includes:
a look-up table generating unit for generating a look-up table of original pixel values to target pixel values of pixels according to the original cumulative histogram and the target cumulative histogram; and
a prescribing processing unit for correcting a corresponding target pixel value read from the lookup table according to a predetermined rule based on an original pixel value of a specific pixel and the corresponding target pixel value, and making a pixel value of the specific pixel equal to the corrected pixel value in a prescribing result image.
6. An image processing method for removing flicker noise in an image, comprising:
a dividing step of dividing the pixel value domain into at least two sections;
a noise removing step of performing filtering of different degrees of smoothness on pixels of which pixel values respectively fall into the at least two sections in the image to remove flicker noise in the image,
pixels falling in an interval having a higher pixel value are subjected to filtering with a higher degree of smoothing, and pixels falling in an interval having a lower pixel value are subjected to filtering with a lower degree of smoothing.
7. The image processing method according to claim 6, wherein in the noise removal step, the pixels are filtered by applying a gaussian filter, wherein a gaussian filter having a larger variance is applied to pixels falling in an interval having a higher pixel value, and a gaussian filter having a smaller variance is applied to pixels falling in an interval having a lower pixel value.
8. The image processing method according to claim 6, wherein in the noise removing step, the pixels in each line of the image are filtered by processing a cumulative histogram of each line to remove noise in the image, the each line having a height of one or more pixels, the noise removing step includes:
a cumulative histogram generating step of generating a cumulative histogram for each line in the image as an original cumulative histogram;
a weighting processing step of obtaining a target cumulative histogram of each line by weighting the original cumulative histograms of the adjacent lines of each line together with the original cumulative histogram of each line;
a prescribing step of obtaining an image from which noise is removed by performing histogram specification from an original cumulative histogram to a target cumulative histogram, wherein,
in the weighting processing step, the weighting processing is performed using different weights for portions of the original cumulative histogram corresponding to the at least two bins.
9. The image processing method according to claim 6, wherein in the noise removing step, the pixels in each line of the image are filtered by processing a cumulative histogram of the each line to remove noise in the image, each line of the image having a height of one or more pixels, the noise removing step includes:
a histogram generation step of generating a histogram for each line in the image as an original histogram;
a weighting processing step of performing weighting processing on the original histograms of the adjacent rows of each row and the original histogram of each row to obtain a target histogram of each row;
a cumulative histogram generating step of generating an original cumulative histogram and a target cumulative histogram for each line from the original histogram and the target histogram for each line, respectively;
a prescribing step of obtaining an image from which noise is removed by performing histogram specification from an original cumulative histogram to a target cumulative histogram, wherein,
in the weighting processing step, the weighting processing is performed using different weights for each cell of the original histogram corresponding to the at least two bins divided by the dividing unit.
10. The image processing method according to claim 8 or 9, wherein the prescribing step includes:
a look-up table generating step of generating a look-up table of original pixel values to target pixel values of pixels according to the original cumulative histogram and the target cumulative histogram; and
a specification processing step of correcting, according to a predetermined rule, a corresponding target pixel value read from the lookup table based on an original pixel value of a specific pixel and the corresponding target pixel value, and making the pixel value of the specific pixel in a specification result image equal to the corrected pixel value.
CN201210431709.8A 2012-11-01 2012-11-01 Image processing apparatus and image processing method Active CN103795943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210431709.8A CN103795943B (en) 2012-11-01 2012-11-01 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210431709.8A CN103795943B (en) 2012-11-01 2012-11-01 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
CN103795943A CN103795943A (en) 2014-05-14
CN103795943B true CN103795943B (en) 2017-05-17

Family

ID=50671181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210431709.8A Active CN103795943B (en) 2012-11-01 2012-11-01 Image processing apparatus and image processing method

Country Status (1)

Country Link
CN (1) CN103795943B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115631101A (en) * 2022-09-21 2023-01-20 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Data noise reduction method, device, computer equipment, storage medium, program product

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633159A (en) * 2005-01-26 2005-06-29 北京中星微电子有限公司 A Method for Removing Image Noise

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6064776A (en) * 1995-10-27 2000-05-16 Kabushiki Kaisha Toshiba Image processing apparatus
US20060274962A1 (en) * 2005-06-03 2006-12-07 Yi-Jen Chiu Systems and methods for improved Gaussian noise filtering
JP2007201541A (en) * 2006-01-23 2007-08-09 Ricoh Co Ltd Image processing apparatus, imaging apparatus, image processing method, and image processing program
JP4746575B2 (en) * 2007-03-16 2011-08-10 株式会社東芝 Image processing apparatus and method
CN100478993C (en) * 2007-07-13 2009-04-15 天津大学 Image reinforcement method for self-adaptive regulation according to edge and brightness
JP4465002B2 (en) * 2007-11-16 2010-05-19 オリンパス株式会社 Noise reduction system, noise reduction program, and imaging system.
CN100512374C (en) * 2007-12-05 2009-07-08 北京航空航天大学 A method for image edge detection based on threshold sectioning
CN101908208B (en) * 2010-07-27 2011-11-09 浙江大学 Self-adaptive confirming method of smooth wave-filtering spatial scale facing to picture edge detection
CN101937562A (en) * 2010-08-27 2011-01-05 天津大学 Method for Constructing Gray Level Information Amount Histogram

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633159A (en) * 2005-01-26 2005-06-29 北京中星微电子有限公司 A Method for Removing Image Noise

Also Published As

Publication number Publication date
CN103795943A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
US8035871B2 (en) Determining target luminance value of an image using predicted noise amount
CN103218778B (en) The disposal route of a kind of image and video and device
CN105025282B (en) Adaptive contrast enhancement device and method
CN1292576C (en) Signal processing equipment and method, recording medium and program
US20190362505A1 (en) Image processing apparatus, method, and storage medium to derive optical flow
CN112598612A (en) Flicker-free dim light video enhancement method and device based on illumination decomposition
US8248662B2 (en) Image forming apparatus and method thereof
CN111696052A (en) Underwater image enhancement method and system based on red channel weakness
CN112991240A (en) Image self-adaptive enhancement algorithm for real-time image enhancement
JP2014010776A (en) Image processing apparatus, image processing method, and program
US8265419B2 (en) Image processing apparatus and image processing method
CN103793892B (en) Image processing apparatus and image processing method
JP2018174470A (en) Noise reduction device and program
CN103795943B (en) Image processing apparatus and image processing method
US10909669B2 (en) Contrast adjustment system and contrast adjustment method
US9154671B2 (en) Image processing apparatus, image processing method, and program
US7773824B2 (en) Signal processing device and method, recording medium, and program
Wu et al. Quick Response Code Binary Research Based on Basic Image Processing
CN115546067B (en) Low-illumination image enhancement method and image enhancement device
CN113393397B (en) Method and system for enhancing image contrast
KR100625576B1 (en) Image processing method and image processing apparatus of plasma display panel
JP2010258502A (en) Image processing apparatus and method
CN110717862B (en) Contrast enhancement method based on dynamic range compression and electronic device thereof
JP2006031682A (en) Lookup table creation device, method and program
WO2024018906A1 (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant