CN100420279C - Method and device for reducing image noise under low illumination - Google Patents
Method and device for reducing image noise under low illumination Download PDFInfo
- Publication number
- CN100420279C CN100420279C CNB2005100597812A CN200510059781A CN100420279C CN 100420279 C CN100420279 C CN 100420279C CN B2005100597812 A CNB2005100597812 A CN B2005100597812A CN 200510059781 A CN200510059781 A CN 200510059781A CN 100420279 C CN100420279 C CN 100420279C
- Authority
- CN
- China
- Prior art keywords
- image
- value
- values
- processing system
- grayscale
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000005286 illumination Methods 0.000 title abstract description 5
- 238000001914 filtration Methods 0.000 claims abstract description 13
- 238000012935 Averaging Methods 0.000 claims description 2
- 238000003672 processing method Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
- 230000016776 visual perception Effects 0.000 description 1
Images
Landscapes
- Color Television Image Signal Generators (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
- Picture Signal Circuits (AREA)
Abstract
本发明提供在低照度下降低图像噪声从而改善图像质量的影像处理方法和装置。该方法包括如下步骤:确定拍摄环境是否为暗处;若是,将图像的输出模式从彩色图像切换为灰度图像;以及,对切换后的灰度图像进行低通滤波。
The invention provides an image processing method and device for reducing image noise under low illumination so as to improve image quality. The method includes the following steps: determining whether the shooting environment is a dark place; if so, switching the output mode of the image from a color image to a grayscale image; and performing low-pass filtering on the switched grayscale image.
Description
发明领域field of invention
本发明涉及数字影像处理系统,尤其涉及在较低照度下降低噪声、提高图像质量的方法和系统。The invention relates to a digital image processing system, in particular to a method and system for reducing noise and improving image quality under relatively low illuminance.
背景技术 Background technique
现有的彩色摄像设备一般都带有自动曝光调整功能,使得设备可以随着环境光照强度的变化自动保持稳定的图像亮度输出。随着光照强度的降低,设备所采用的影像处理系统延长感光器件的曝光时间,某些情况下还相应地提高亮度的增益。这样做的结果是,尽管感光器件的输出幅值较小,经过较长时间的曝光,再加上亮度增益的调整后,图像亮度仍然能基本维持在同一水平。Existing color camera equipment generally has an automatic exposure adjustment function, so that the equipment can automatically maintain a stable image brightness output as the ambient light intensity changes. As the light intensity decreases, the image processing system adopted by the device prolongs the exposure time of the photosensitive device, and in some cases increases the brightness gain accordingly. The result of this is that although the output amplitude of the photosensitive device is small, the image brightness can still be basically maintained at the same level after a long exposure time and the adjustment of the brightness gain.
当环境照度降至某一临界值以下时,如夜晚,能明显感觉到图像噪声增大。这主要有两方面的原因。其一是感光器件在较长时间感光状态下,由于白噪声、暗电流等的影响,输出的信号已经含有很多噪声的成分,而这些噪声有很大的随机性。其二,环境亮度较暗时,系统不得不把亮度增益调到很大,这又对感光器件输出信号中的噪声起了放大的作用。由于这些原因的影响,图像中含有很多噪声,在彩色图像中更加明显。因此,在低照度环境下,彩色图像质量差。When the ambient illuminance drops below a certain critical value, such as at night, the image noise increases obviously. There are two main reasons for this. One is that when the photosensitive device is in the photosensitive state for a long time, due to the influence of white noise, dark current, etc., the output signal already contains a lot of noise components, and these noises are very random. Second, when the ambient brightness is relatively dark, the system has to adjust the brightness gain to a large value, which in turn amplifies the noise in the output signal of the photosensitive device. Due to the influence of these reasons, the image contains a lot of noise, which is more obvious in the color image. As a result, color image quality is poor in low-light environments.
发明内容 Contents of the invention
本发明的目的是提供克服上述问题的影像处理方法和装置。The object of the present invention is to provide an image processing method and device that overcome the above-mentioned problems.
根据本发明的第一方面,提供一种降低影像处理系统中图像噪声的方法,该方法包括如下步骤:确定拍摄环境是否为暗处;若是,将图像的输出模式从彩色图像切换为灰度图像;以及,对切换后的灰度图像进行低通滤波。According to a first aspect of the present invention, there is provided a method for reducing image noise in an image processing system, the method comprising the steps of: determining whether the shooting environment is a dark place; if so, switching the output mode of the image from a color image to a grayscale image ; and, perform low-pass filtering on the switched grayscale image.
在第一方面中,优选的是确定拍摄环境是否为暗处的步骤包括检测影像处理系统的曝光时间是否大于第一预定值的步骤。In the first aspect, preferably, the step of determining whether the shooting environment is a dark place includes the step of detecting whether the exposure time of the image processing system is greater than a first predetermined value.
优选的是,确定拍摄环境是否为暗处的步骤包括检测影像处理系统的亮度增益系数是否大于第二预定值的步骤。Preferably, the step of determining whether the shooting environment is a dark place includes the step of detecting whether the brightness gain coefficient of the image processing system is greater than a second predetermined value.
优选的是,所述切换的步骤包括对每个像素的R、G、B值进行平均后作为输出图像中对应像素的R、G、B值。Preferably, the switching step includes averaging the R, G, and B values of each pixel as the R, G, and B values of the corresponding pixel in the output image.
优选的是,所述切换的步骤包括对每个像素的R、G、B值根据如下公式求出Y值:Y=0.299R+0.587G+0.114B,然后将Y值做为输出图像中对应像素的R、G、B值。Preferably, the switching step includes calculating the Y value according to the following formula for the R, G, and B values of each pixel: Y=0.299R+0.587G+0.114B, and then using the Y value as the corresponding value in the output image The R, G, and B values of the pixel.
优选的是,所述切换的步骤包括对每个像素的R、G、B值按如下公式求出X值:X=max(R,G,B),然后将X值做为输出图像中对应像素的R、G、B值。Preferably, the step of switching includes calculating the X value according to the following formula for the R, G, and B values of each pixel: X=max(R, G, B), and then using the X value as the corresponding value in the output image The R, G, and B values of the pixel.
优选的是,所述低通滤波由高斯低通滤波器完成。Preferably, the low-pass filtering is performed by a Gaussian low-pass filter.
根据本发明的第二方面,提供一种影像处理系统,该系统包括:确定拍摄环境是否为暗处的装置;当确定装置确定拍摄环境为暗处的时候,将图像的输出模式从彩色图像切换为灰度图像的灰度切换装置;和,对切换后的灰度图像进行低通滤波的滤波装置。According to a second aspect of the present invention, there is provided an image processing system, the system comprising: a device for determining whether the shooting environment is a dark place; when the determining device determines that the shooting environment is a dark place, the output mode of the image is switched from a color image a grayscale switching device for a grayscale image; and a filtering device for performing low-pass filtering on the switched grayscale image.
在第二方面中,优选的是确定拍摄环境是否为暗处的装置检测影像处理系统的曝光时间是否大于第一预定值。In the second aspect, preferably, the means for determining whether the shooting environment is a dark place detects whether the exposure time of the image processing system is greater than a first predetermined value.
优选的是,确定拍摄环境是否为暗处的装置检测影像处理系统的亮度增益系数是否大于第二预定值。Preferably, the device for determining whether the shooting environment is a dark place detects whether the brightness gain coefficient of the image processing system is greater than a second predetermined value.
优选的是,所述灰度切换装置对每个像素的R、G、B值进行平均后作为输出图像中对应像素的R、G、B值。Preferably, the grayscale switching device averages the R, G, and B values of each pixel as the R, G, and B values of the corresponding pixels in the output image.
优选的是,所述灰度切换装置对每个像素的R、G、B值根据如下公式求出Y值:Y=0.299R+0.587G+0.114B,然后将Y值做为输出图像中对应像素的R、G、B值。Preferably, the grayscale switching device calculates the Y value according to the following formula for the R, G, and B values of each pixel: Y=0.299R+0.587G+0.114B, and then uses the Y value as the corresponding value in the output image The R, G, and B values of the pixel.
优选的是,所述灰度切换装置对每个像素的R、G、B值按如下公式求出X值:X=max(R,G,B),然后将X值做为输出图像中对应像素的R、G、B值。Preferably, the grayscale switching device calculates the X value according to the following formula for the R, G, and B values of each pixel: X=max(R, G, B), and then uses the X value as the corresponding value in the output image. The R, G, and B values of the pixel.
优选的是,所述滤波装置是高斯低通滤波器。Preferably, said filtering means is a Gaussian low-pass filter.
本发明将彩色图像切换为灰度图像,因此各彩色分量的噪声所带来的相互影响得以消除。同时,低通滤波灰色图像也使图像噪声降低,使得图像的质量进一步改善。The present invention switches the color image into a grayscale image, so the mutual influence brought by the noise of each color component is eliminated. At the same time, low-pass filtering the gray image also reduces the noise of the image, further improving the quality of the image.
附图说明 Description of drawings
下面将参照附图对本发明进行更详细的说明,其中:The present invention will be described in more detail below with reference to accompanying drawing, wherein:
图1是根据本发明的低照度环境下降低图像噪声的方法;和Fig. 1 is the method for reducing image noise under low illumination environment according to the present invention; With
图2是本发明的影像处理系统的结构示意框图。FIG. 2 is a schematic block diagram of the structure of the image processing system of the present invention.
具体实施方式 Detailed ways
图1示意的是根据本发明的一种低照度环境下降低图像噪声的方法。如图1所示,在步骤110,首先计算系统的曝光时间或者亮度增益系数。然后,进入步骤120,判断曝光时间是否大于某个预定值T,或者亮度增益系数是否大于某个值Gmax;如果满足上述两个条件之一,则程序进入步骤130,判定当前拍摄环境为暗处。当然,也可以由使用者直接设定当前拍摄环境为暗处。FIG. 1 schematically shows a method for reducing image noise in a low-light environment according to the present invention. As shown in FIG. 1 , at
然后,程序进入步骤140。在该步骤,将图像的输出模式从彩色图像切换为灰度图像。在灰度图像中,避免了由于各彩色分量的噪声所带来的相互影响,例如在人脸的图像上随机出现很多红色、蓝色等噪声点,使得图像看起来不至于很杂乱。另外,在非常暗的环境中,人的视觉感知对物体颜色的依赖程度也大大降低,而主要是靠对比度、轮廓、相对运动等来感知物体的,所以保留彩色图像也完全没有必要。Then, the program goes to
从彩色图像切换为灰度图像的具体实现方法有例如下列三种:There are three specific implementation methods for switching from a color image to a grayscale image:
方法1:对每个像素的R、G、B值进行平均后作为输出图像中对应像素的R、G、B值。这样,三个色彩通道的值都相同,就等效为灰度图像。Method 1: Average the R, G, and B values of each pixel as the R, G, and B values of the corresponding pixels in the output image. In this way, the values of the three color channels are the same, which is equivalent to a grayscale image.
方法2:对每个像素的R、G、B值根据如下公式求出Y值:Method 2: For the R, G, and B values of each pixel, calculate the Y value according to the following formula:
Y=0.299R+0.587G+0.114B。Y=0.299R+0.587G+0.114B.
然后,将Y值做为输出图像中对应像素的R、G、B值。Then, take the Y value as the R, G, and B values of the corresponding pixel in the output image.
方法3:对每个像素的R、G、B值按如下公式求出X值:Method 3: For the R, G, and B values of each pixel, calculate the X value according to the following formula:
X=max(R,G,B)。X = max(R, G, B).
然后,将X值做为输出图像中对应像素的R、G、B值。Then, use the X value as the R, G, B value of the corresponding pixel in the output image.
当然,其它形式的图像切换方法也是可行的。Certainly, other forms of image switching methods are also feasible.
接下来,程序在步骤150对图像进行低通滤波。低通滤波可以在一定程度上抑制随机噪声的影响。因为随机噪声在频谱中分布比较均匀,而正常信号的频谱分布是有一定宽度的,这样通过低频滤波器,可以较好的保留正常信号的频谱成分,去掉很大一部分随机噪声。由于是对灰度图像进行滤波,滤波器可以设计得相对比较简单。比如,该滤波器可以是高斯低通滤波器。Next, the program low-pass filters the image at
图2是本发明的影像处理系统的结构示意框图。如图2所示,数字感光器件210在光的作用下产生图像(影像),产生的图像输入到数字增益调节装置220和亮度统计装置230。FIG. 2 is a schematic block diagram of the structure of the image processing system of the present invention. As shown in FIG. 2 , the digital
亮度统计装置230对该图像的亮度进行统计,得出该图像的一个统计数值,比如平均亮度。该平均亮度送入曝光时间计算装置240和增益系数计算装置250。The
曝光时间计算装置240根据输入的亮度值,计算出恰当的曝光时间值,并且将该数值送入数字感光器件210,控制该器件210的曝光时间。该数值还同时送入低照度确定装置260。The exposure
增益系数计算装置250根据输入的亮度值,计算出恰当的增益系数值,并且将该数值送入数字增益装置220和低照度确定装置260。The gain
数字增益调节装置220根据输入的增益系数,对图像进行增益调节,经过增益调节后的图像输入到灰度切换装置270。The digital
低照度确定装置260根据输入的曝光时间值或者增益系数值,确定当前拍摄环境是否属暗处。若曝光时间是否大于某个预定值T,或者亮度增益系数是否大于某个值Gmax,则判定当前拍摄环境为暗处。当然,也可以由使用者直接设定当前拍摄环境为暗处。The low illumination determining means 260 determines whether the current shooting environment is a dark place according to the input exposure time value or gain coefficient value. If the exposure time is greater than a certain predetermined value T, or whether the brightness gain coefficient is greater than a certain value Gmax, it is determined that the current shooting environment is a dark place. Of course, the user can also directly set the current shooting environment as a dark place.
灰度切换装置260将输入的图像切换为灰度图像。具体的切换方法如上文所述。然后将切换后的灰度图像送入低通滤波装置280,进行低通滤波。The
本发明主要应用在包括但不限于手机摄像装置、PC摄像头和数码相机等的场合。The present invention is mainly applied to occasions including but not limited to mobile phone cameras, PC cameras and digital cameras.
虽然上文较详尽地描述了本发明,但是这些描述仅是示意性的而非限制性的。显然,对于普通技术人员而言本发明会以许多方式进行变化。While the invention has been described in some detail, such description is illustrative only and not restrictive. It will be obvious to a person skilled in the art that the invention can be varied in many ways.
比如,各装置220-280既可以实现在单片的集成电路中,也可以按照分立的电路或装置实现。For example, each of the devices 220-280 may be implemented in a monolithic integrated circuit, or may be implemented as discrete circuits or devices.
所有这样的变化都属于本发明的范围之内,而不应当被认为偏离本发明的范围。本发明仅受后附的权利要求书的精髓和范围限制。All such variations are within the scope of the invention and should not be considered as a departure from the scope of the invention. The invention is to be limited only by the spirit and scope of the appended claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100597812A CN100420279C (en) | 2005-03-31 | 2005-03-31 | Method and device for reducing image noise under low illumination |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100597812A CN100420279C (en) | 2005-03-31 | 2005-03-31 | Method and device for reducing image noise under low illumination |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1655591A CN1655591A (en) | 2005-08-17 |
| CN100420279C true CN100420279C (en) | 2008-09-17 |
Family
ID=34894596
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100597812A Expired - Fee Related CN100420279C (en) | 2005-03-31 | 2005-03-31 | Method and device for reducing image noise under low illumination |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100420279C (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103270746B (en) * | 2010-11-19 | 2016-09-07 | 美国亚德诺半导体公司 | Component filtering for low-light noise reduction |
| CN102903081A (en) * | 2012-09-07 | 2013-01-30 | 西安电子科技大学 | Low-light Image Enhancement Method Based on RGB Color Model |
| CN103280174B (en) * | 2013-04-28 | 2016-02-10 | 四川长虹电器股份有限公司 | A kind of method eliminating color noise under weak signal of liquid crystal display |
| CN107770438B (en) * | 2017-09-27 | 2019-11-29 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
| CN119254904A (en) * | 2024-02-24 | 2025-01-03 | 荣耀终端有限公司 | Image processing method, chip system and electronic device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1172312A (en) * | 1996-05-21 | 1998-02-04 | 三星电子株式会社 | Image enhancing method using lowpass filtering and histogram equalization and device thereof |
| JP2001045512A (en) * | 1999-08-04 | 2001-02-16 | Sanyo Electric Co Ltd | Black.white/color switching camera |
| CN1426228A (en) * | 2001-10-31 | 2003-06-25 | 三星电子株式会社 | Method for determining environment brightness and method for controlling display brightness using said method |
| CN1434630A (en) * | 2002-01-25 | 2003-08-06 | 松下电器产业株式会社 | Video camera with image recording mode switching function |
-
2005
- 2005-03-31 CN CNB2005100597812A patent/CN100420279C/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1172312A (en) * | 1996-05-21 | 1998-02-04 | 三星电子株式会社 | Image enhancing method using lowpass filtering and histogram equalization and device thereof |
| JP2001045512A (en) * | 1999-08-04 | 2001-02-16 | Sanyo Electric Co Ltd | Black.white/color switching camera |
| CN1426228A (en) * | 2001-10-31 | 2003-06-25 | 三星电子株式会社 | Method for determining environment brightness and method for controlling display brightness using said method |
| CN1434630A (en) * | 2002-01-25 | 2003-08-06 | 松下电器产业株式会社 | Video camera with image recording mode switching function |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1655591A (en) | 2005-08-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8169500B2 (en) | Dynamic range compression apparatus, dynamic range compression method, computer-readable recording medium, integrated circuit, and imaging apparatus | |
| US8160381B2 (en) | Method and apparatus for image noise reduction using noise models | |
| KR20110048922A (en) | Integrated noise modeling method of image sensor and noise reduction method using same | |
| US20100177203A1 (en) | Apparatus and method for local contrast enhanced tone mapping | |
| US8493458B2 (en) | Image capture apparatus and image capturing method | |
| US9355327B2 (en) | Image processing apparatus and imaging apparatus with noise correction function and signal level correction function | |
| CN103856721A (en) | Apparatus and method for calculating flicker-evaluation value | |
| CN102209200B (en) | Automatic exposure control method | |
| CN106550227B (en) | A kind of image saturation method of adjustment and device | |
| KR20160104960A (en) | A device and method for removing the noise on the image using cross-kernel type median filter | |
| JP2009510587A (en) | Image detail enhancement | |
| CN106488080A (en) | Method and apparatus for high dynamic range dynamic noise reduction in digital imaging | |
| CN100420279C (en) | Method and device for reducing image noise under low illumination | |
| CN100508559C (en) | Processing method of image outputting of pick-up device under low luminance condition | |
| KR100624862B1 (en) | Image processing apparatus and method | |
| JP6543787B2 (en) | Image processing apparatus and image processing method | |
| JP6376339B2 (en) | Image processing apparatus and image processing method | |
| JP6324235B2 (en) | Image processing apparatus and image processing method | |
| KR100613912B1 (en) | Image processing apparatus and method | |
| JP2002290987A (en) | Video signal processing device and video signal processing method | |
| KR20130012749A (en) | Video enhancer and video image processing method | |
| US20080043262A1 (en) | Method and apparatus for applying tonal correction to images | |
| JP2015139082A (en) | Image processing apparatus, image processing method, program, and electronic apparatus | |
| CN110876042B (en) | Circuit for controlling image capture device and related control method | |
| JP6200687B2 (en) | Image processing apparatus and image processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080917 Termination date: 20120331 |
