The instant application claims priority to Italian Patent Application No. VI2012A000291, filed Oct. 29, 2012, which application is incorporated herein by reference in its entirety.
An embodiment relates to the field of image processing, in particular, to color processing of digital images and, particularly, to a color-processing system employing color-space matrix transforms.
Digital imaging devices for capturing images, for example, mobile and digital still cameras or video cameras or LCD imaging signal processors, operate by means of image sensors. The spectral sensitivities of the sensor color channels usually do not match those of a desired output color space. Therefore, some color processing (matrixing) is typically needed to achieve colors of the desired color space.
A typical image-reconstruction (color-correction) pipeline implemented in an imaging device, for example, a digital camera reads (for a gamma correction of 1)
where Ri, Gi, Bi, are the device raw RGB values and Ro, Go, Bo are the desired output RGB values. The RGB space is used for exemplary purposes. The diagonal matrix diag (rgw, ggw, bgw) performs white balancing, i.e., it is provided for luminance compensation. The 3×3 matrix with matrix elements a11, . . . , a33 is a color matrix for color-space transform (matrixing) from the device RGB space to a standard color space (e.g., sRGB, AdobeRGB, etc).
However, the color-space transform can produce artifacts resulting in a degradation of the image quality in the desired, e.g., sRGB space. In particular, in the case of small-gamut sensors, the noise in the output color space typically exceeds the original noise in the device color space, i.e., for example, for the red channel, under the assumption that the noise in the device color space is the same for all RGB channels:
where σR
Thus, typically, color processing leads to noise amplification.
Therefore, an embodiment is a method for color processing that alleviates noise amplification significantly as compared to conventional schemes.
An embodiment addresses the above-mentioned problem and provides a method for color processing of a (digital) input image, the method including the steps of:
Low-pass filtering of the (e.g., color channels of the) input image to obtain a low-pass component (e.g., for each color channel);
High-pass filtering of the (e.g., color channels of the) input image to obtain a high-pass component (e.g., for each color channel);
processing the input image for edge detection to obtain edginess parameters (e.g., one edginess parameter for each pixel of the input image); and
performing a color-space transformation of the input image based on the low-pass component, the high-pass component, and the edginess parameters. The input image is, for example, an RGB image.
By low-pass filtering, slowly varying background patterns that can be interpreted as wave patterns with long wavelengths (low frequencies) are stressed, whereas by high-pass filtering, highly varying details with short wavelengths (high frequencies) are stressed. Both low- and high-pass filtering can, in principle, be performed in the spatial or frequency domain in a conventional manner.
The low-pass filtering can, for example, be performed by means of a low-pass filter with a bandwidth selected based on the resolution (number of pixels) of the input image.
If m and n are respectively the number of rows and columns of the input image, then the size of the low-pass filter convolution kernel can be calculated, for example, in the following way: LPk=(m*n)/S, where S is a suitable scaling factor.
Whereas gamut mapping based on color matrix operations of conventional digital cameras leads to a set of correction coefficients that causes significant reduction of the signal-to-noise ratio (SNR), according to an embodiment little or no significant noise is produced. This is achieved by adapting matrixing (color matrix application) based on the total information given by the low- and high-pass components and the edginess information. The edge detection is performed in order to discriminate between pixels belonging to flat or edge regions of the input image. In particular, the edge detection may include corner detection.
The edginess parameter represents the edginess of a pixel. For each pixel of the input image, a respective edginess parameter can be determined. For example, a normalized edginess parameter of the interval [0, 1], wherein 0 and 1 represent a likelihood of 0% and 100% probability, respectively, that a pixel belongs to an edge of the input image (or a corner of the input image), can be determined (see also detailed description below). The edginess parameters can, particularly, be determined based on a set of mask patterns used to identify vertical, horizontal and diagonal edges and corners. Moreover, the edginess parameters can be determined in the spatial RGB domain and based on the entire information of one or more RGB color channels.
According to an example where the color space has three dimensions or channels (e.g., RGB), the color-space transformation of the input image is performed for each pixel of the input image according to:
Ci′=(C1
where Ci
The color-matrix coefficients depend mainly on the response of the camera color filters and the target standard color space. They also could be dynamically calculated for the white-balancing estimation results. An example reads
The above-described examples of an embodiment can also be implemented in the context of image processing for tone mapping (dynamic range compression). In general, an application of digital gain greater than 1.0 produces a signal degradation in terms of SNR.
Both the application of digital gains to input RGBi signals for white-balancing compensation and the gamma encoding applied to linear output RGBo signals can benefit from an embodiment.
Another embodiment is a computer-program product including one or more computer-readable media having computer-executable instructions for performing the steps of a method according to an embodiment such as according to one of the above-described examples.
The above-mentioned problem can also be solved by an image-processing device, including a processor (for example, an imaging signal processor or an LCD imaging signal processor) configured for:
Low-pass filtering of the input image to obtain a low-pass component;
high-pass filtering of the input image to obtain a high-pass component;
processing the input image for edge detection to obtain edginess parameters; and
performing a color-space transformation of the input image based on the low-pass component, the high-pass component, and the edginess parameters.
In particular, the processor may be configured to perform the color-space transformation of the input image for each pixel of the input image according to:
Ci′=(C1
where Ci
The image-processing device can, for example, include or consist of a digital (still) camera. It can also be some LCD display device including a display-driver circuit wherein an embodiment of the above-described method is implemented.
Another embodiment is an image-processing device including a low-pass filter for low-pass filtering of the input image to obtain a low-pass component, a high-pass filter for high-pass filtering of the input image to obtain a high-pass component, an edge-detection means for processing the input image for edge detection to obtain edginess parameters, and a color-matrix-application means for performing a color-space transformation of the input image based on the low-pass component, the high-pass component, and the edginess parameters.
According to a particular example, the high-pass component is obtained based on the difference of the input image and the low-pass component. For example, the pixel values of the low-pass component are subtracted from the pixel values of the input image.
One or more features and advantages will be described with reference to the drawings. In the description, reference is made to the accompanying figures, which are meant to illustrate one or more embodiments, although it is understood that such embodiments may not represent the full scope of the teachings of the disclosure.
An example for adaptive color-matrix application for color-space transform of an image is illustrated in
In detail, according to an example, the edge-detection means 3 adopts six mask patterns as illustrated in
The number of potential masks to be used for edge detection can be extended, thus leading to the possibility of detecting edges of any orientation with a greater accuracy. The herein disclosed embodiment for edge detection has been initially based on a the following paper, Yeong-Hwa Kim, and Jaeheon Lee, “Image Feature and Noise Detection Based on Statistical Hypothesis, Tests and Their Applications in Noise Reduction”, IEEE Transactions on Consumer Electronics, vol. 51, n. 4, November 2005, which is incorporated by reference. However, an embodiment of the disclosed accumulation function has been modified, and, to an embodiment, pattern masks for corner detection, and the possibility of using weighting masks, has been added.
Consider n color channels and m pattern masks of size s each. An edginess level of a pixel of the input image for the i-th channel related to the k-th edge pattern can be determined by:
where Cij
Normalization to the interval [0, 1] is obtained by:
where b is the bit depth of the i-th color channel quantifying how many unique colors are available in an image's color palette. Consequently, the overall normalized edginess parameter for the pixel is given by:
As already mentioned, the low-pass and high-pass components, as well as the edginess parameters α, for each pixel are input into the color-matrix application means 4. For a 3-channel color image, for example, an RGB image, the color-matrix application means 4 calculates, for each pixel, the i-th output channel of the matrix-transformed input image (i.e., of the desired color-transformed output image) as follows:
Ci′=(C1
where Ci
An example color matrix is:
All previously described embodiments are not intended as limitations, but serve as examples illustrating features and advantages of the disclosed concepts. It is also understood that some or all of the above-described features can be combined in ways different from the ways described.
For example, an apparatus that performs the above-described calculations may be a computing machine such as a microprocessor, microcontroller, or non-instruction-executing circuit. And such a computing machine may be on a same die as, or on a different die than, the image-capture device that captures an image and that generates one or more color components for each pixel of the image.
From the foregoing it will be appreciated that, although specific embodiments have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the disclosure. Furthermore, where an alternative is disclosed for a particular embodiment, this alternative may also apply to other embodiments even if not specifically stated.
Number | Date | Country | Kind |
---|---|---|---|
VI2012A0291 | Oct 2012 | IT | national |
Number | Name | Date | Kind |
---|---|---|---|
5231677 | Mita et al. | Jul 1993 | A |
6317157 | Takayama | Nov 2001 | B1 |
6768514 | Tsuchiya et al. | Jul 2004 | B1 |
20020149685 | Kobayashi et al. | Oct 2002 | A1 |
20030086606 | Hunter et al. | May 2003 | A1 |
20030169941 | Lin et al. | Sep 2003 | A1 |
20040057630 | Schuhrke et al. | Mar 2004 | A1 |
20040252316 | Miyagi et al. | Dec 2004 | A1 |
20070292041 | Ito | Dec 2007 | A1 |
20080101716 | Ho | May 2008 | A1 |
20080143844 | Innocent | Jun 2008 | A1 |
20140355904 | Olsson | Dec 2014 | A1 |
Number | Date | Country |
---|---|---|
1936952 | Jun 2008 | EP |
Entry |
---|
Search Report for Italian patent application No. VI20120291; Munich, Germany, Jun. 26, 2013; 2 pages. |
Igor Kharitonenko, Sue Twelves, and Chaminda Weerasinghe, “Suppression of Noise Amplification During Colour Correction”, IEEE, vol. 48, No. 2, May 2002, pp. 229-233. |
SukHwan Lim, and Amnon Silverstein, “Spatially Varying Color Correction (SVCC) Matrices for Reduced Noise”, HP Technical Reports, HP Laboratories Palo Alto, CA; HPL-2004-99, Jun. 2, 2004; 6 pages. |
Y.H. Kim, and J. Lee, “Image Feature and Noise Detection Based on Statistical Hypothesis Tests and Their Applications in Noise Reduction”, IEEE Transactions on Consumer Electronics, vol. 51, No. 4, Nov. 2005, pp. 1367-1378. |
Ford et al., “Colour Space Conversions,” Aug. 11, 1998, 31 pages. |
Number | Date | Country | |
---|---|---|---|
20140118585 A1 | May 2014 | US |