This application claims the benefit of Taiwan application Serial No. 102101664, filed Jan. 16, 2013, the subject matter of which is incorporated herein by reference.
1. Field of the Invention
The invention relates in general to an image processing technology, and more particularly, to a technology for enhancing image saturation.
2. Description of the Related Art
Accompanied with various prospering electronic products in the recent years, multimedia systems, such as home theaters, continue to gain prevalence. Among the diversified multimedia systems, an image display apparatus is regarded as a critical hardware device. Therefore, how to appropriately adjust an image displayed by the display apparatus to satisfy user preferences has long been a focus of product manufacturers. For example, an image may become clearer by increasing the sharpness of the image, and colors of an image may become more vibrant by increasing the saturation of the image.
Image processing is mostly carried out in a YCbCr color space in current image processing systems (e.g., video cameras, digital televisions and DVD players). In other words, for an input signal in image data represented by the RGB color space, the input signal is first converted to image data represented by the YCbCr color space before further image processing. As known to a person having ordinary skill in the art, three color components Y, Cb and Cr in the YCbCr color space represent luma (brightness), blue-difference chroma and red-difference chroma, respectively, and do not contain saturation. In the YCbCr color space, the saturation of a particular set of image data is indicated by a relationship between the two chroma components Cb and Cr. Therefore, to analyze the saturation of an image in the YCbCr color space, values of Cb and Cr of respective pixels are analyzed. More specifically, a two-dimensional (2D) array formed by values of Cb and Cr of respective pixels is calculated. Such analysis requires a vast amount of computation (more particularly when analyzing high-definition video streams), giving rise to increased hardware costs of the image processing system. As a result, current image processing systems frequently lack the function for individually adjusting the saturation of frames in a dynamic image.
The invention is directed to an image processing apparatus and associated method. By converting image data to a color space with color component including a saturation component, saturation information of an image can be effectively identified without involving complicated computations, so that the saturation of the image can be accordingly increased or decreased.
According to an embodiment of the present invention, an image processing apparatus for processing multiple sets of first image data of an image in a first color space is provided. The first color space is defined by multiple color components excluding a saturation component. The image processing apparatus includes a converting module, a gain determining module and an adjusting module. The converting module converts the multiple sets of first image data to multiple sets of image data in a second color space. The second color space is defined by multiple second color components including the saturation component. The gain determining module determines a saturation gain according to a part of the multiple sets of second data associated with the saturation component. The adjusting module adjusts the image according to the saturation gain.
According to another embodiment of the present invention, an image processing method for processing multiple sets of image data of an image in a first color space is provided. The image processing method includes: converting the multiple sets of first image data to multiple sets of second image data in a second color space, wherein the second color space is defined by multiple second color components including a saturation component; determining a saturation gain according to a part of the multiple sets of second data associated with the saturation component; and adjusting the image according to the saturation gain.
The above and other aspects of the invention will become better understood with regard to the following detailed description of the preferred but non-limiting embodiments. The following description is made with reference to the accompanying drawings.
The converting module 12 converts image data between different color spaces. In the embodiment, a first color space is defined by a plurality of first color components, which exclude a saturation component. On the other hand, a second color space is defined by a plurality of second color components, which include the saturation component. In one embodiment, the first color space may be a RGB color space or a YCbCr color space, and the second color space may be an HSV color space, an HSL color space or an HIS color space. In the embodiments below, an example of taking the RGB color space as the first color space and the HSV color space as the second color space is described for illustrating the present invention, not limiting the present invention.
In the embodiment, an input signal inputted into the converting module 12 includes multiple sets of image data (hereinafter, RGB image data) of an image in the RGB color space. In practice, a video stream provided to the image processing apparatus 100 may include multiple images, including the image inputted into the converting module 12, and the image processing apparatus 100 performs image processing on the multiple images in the video stream, respectively. The converting module 12 converts the multiple sets of RGB image data to multiple sets of image data in the HSV color space (hereinafter, HSV image data) according to equations below:
The three color components H, S and V of the HSV color space are defined as hue, saturation and luminance, respectively. That is to say, an output signal from the converting module 12 includes respective saturation information of the multiple sets of image data.
From the HSV image data provided by the converting module 12, the gain determining module 14 determines a saturation gain according to a part associated with the saturation component S. In one embodiment, the gain determining module 14 establishes a histogram of the HSV image data, with the horizontal axis representing the value of the saturation, and the vertical axis representing the quantity of pixels of a specific saturation value in the image. In the exemplary histogram of saturation in
In practice, there are numerous methods for calculating the saturation gain. In one embodiment, the saturation gain is set as a saturation upper limit divided by the representative saturation (in the above embodiment, dividing 32 by 28). In another embodiment, the saturation gain is set as the representative saturation multiplying a predetermined weighting (e.g., 28 multiplying 1.05 or 0.95). The predetermined weighting may be selected according to the user preference, or may be a fixed value preset before the product is shipped out of the factory.
It should be noted that, regardless of the actual method for generating the saturation gain, since the HSV image data provided to the gain determining module 14 directly includes the respective saturation information of the pixels, the gain determining module 14 is capable of identifying the representative saturation of an image without complex statistics and calculations. In other words, given the definition of the color space corresponding to the output signal of the converting module 12 includes the saturation component, the gain determining module 14 is capably and quickly identifying the saturation information of the image. It should be further noted that, as visual perceptions of different users may vary, there is no absolute optimum standard for the level of saturation of images. Therefore, the gain determining module 14 may determine the method for determining the saturation gain according to the rule of thumb.
The adjusting module 16 adjusts the image according to the saturation gain generated by the gain determining module 14. In practice, a target to be adjusted by the adjusting module 16 may be determined by a rear-end requirement. In one embodiment, as shown in
In another embodiment, as shown in
In practice, the adjusting module 16 may directly utilize the saturation gain provided by the gain determining module 14 as a product for adjusting the image data, or may alternatively identify the product corresponding to the saturation gain according to a look-up table or a predetermined calculation to adjust the image data.
The first color space is defined by a plurality of first color components excluding a saturation component. A second color space is defined by a plurality of second color components including the saturation component. The image processing method begins with step S31. In step S31, the multiple sets of first image data is converted to multiple sets of second image data in the second color space. In step S32, a saturation gain is determined according to a part of the multiple sets of second image data associated with the saturation component. In step S33, the image is adjusted according to the saturation gain.
Operation details and variations of the circuits (e.g., the method for determining the saturation gain) given in the description associated with the foregoing image processing apparatus 100 are applicable to the image processing method in
As disclosed, in the image processing apparatus and associated method of the present invention, image data is converted to a color space having color components including a saturation component. Accordingly, without involving complex calculations, saturation information of an image can be effectively identified to increase or reduce the saturation of the image. The apparatus and method of the present invention are applicable to electronic systems with an image saturation adjustment requirement (e.g., video cameras, digital televisions and DVD players), for both dynamic images and still images.
While the invention has been described by way of example and in terms of the preferred embodiments, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Number | Date | Country | Kind |
---|---|---|---|
102101664 | Jan 2013 | TW | national |