Summary of the invention
In view of this, the object of the present invention is to provide a kind of method and apparatus that improves picture quality,,, obtain the better pictures quality by regulating saturation, acutance, contrast, color enhancement function and the decrease of noise functions of image according to the exposure of image.
In order to achieve the above object, the invention provides a kind of method that improves picture quality, this method may further comprise the steps:
Obtain the exposure of image;
In the exposure of described image when changing to less than first predetermined threshold greater than first predetermined threshold, reduce image saturation, and carry out following one or more step: reduce image sharpness, reduce picture contrast, reduce the color enhancement function and open decrease of noise functions;
In the exposure of described image when changing to greater than second predetermined threshold less than second predetermined threshold, increase image saturation, and carry out following one or more step: increase image sharpness, increase picture contrast, increase the color enhancement function and close decrease of noise functions;
Described reduction or increase image saturation are realized by the saturation regulatory factor is set;
Utilize exposure and saturation regulatory factor to form coordinate and take out, different exposure correspondences are provided with different saturation regulatory factors, form different straight slopes, and wherein, slope represents to regulate by the saturation regulatory factor speed of image color gradual change.
As one embodiment of the present of invention, described exposure is the product of time for exposure and luminance gain coefficient, and wherein, the luminance gain coefficient comprises analog gain and digital gain.As one embodiment of the present of invention, when changing to less than first predetermined threshold, reduce image sharpness, remove acutance or carry out anti-acutance greater than first predetermined threshold in the exposure of image; And in the exposure of described image when changing to greater than second predetermined threshold less than second predetermined threshold, the performing step that increases image sharpness is: with the product of input picture and the sharpening factor output image after as adjusting, wherein, sharpening factor is an integer.
In the above-described embodiments, described sharpening factor is for being positioned at the arbitrary integer between [16,16].
The invention provides a kind of device that improves picture quality, this device comprises light exposure obtaining module, the saturation adjustment module, and the acutance adjustment module, the contrast adjustment module, color strengthens adjustment module and noise reduction module; Wherein:
Light exposure obtaining module is used to obtain the exposure of image;
The saturation adjustment module is used for according to exposure, increases or reduce the saturation of image;
The acutance adjustment module is used for according to exposure, increases or reduces image sharpness and remove acutance or carry out anti-acutance;
The contrast adjustment module is used for according to exposure, increases or reduce picture contrast;
Color strengthens adjustment module, is used for according to exposure, increases or reduces color and strengthen degree, perhaps removes the color enhancement function;
Noise reduction module is used for opening according to exposure, closes or reduce the decrease of noise functions of image.
As one embodiment of the present of invention, described exposure is the product of time for exposure and luminance gain coefficient, and wherein, the luminance gain coefficient comprises analog gain and digital gain.
As one embodiment of the present of invention, described saturation adjustment module reduces or increases image saturation and realizes by the saturation regulatory factor is set.
In the above-described embodiments, utilize exposure and saturation regulatory factor to form coordinate and take out, different exposure correspondences are provided with different saturation regulatory factors, form different straight slopes, wherein, slope represents to regulate by the saturation regulatory factor speed of image color gradual change.
As one embodiment of the present of invention, as the output image after regulating, wherein, sharpening factor is an integer to described acutance adjustment module with the product of input picture and sharpening factor.
In the above-described embodiments, described sharpening factor is for being positioned at the arbitrary integer between [16,16].
The present invention is according to the exposure of image, by regulating the saturation of image, acutance, contrast, color enhancement function and decrease of noise functions, make image color saturated true to nature, the image light and shade clearly demarcated, clear picture, reduced the noise of image simultaneously.
Embodiment
For making purpose of the present invention clearer, reach specific embodiment now in conjunction with the accompanying drawings and be described.Below by the embodiment that is described with reference to the drawings is exemplary, only is used to explain the present invention, and can not be interpreted as limitation of the present invention.
Along with environmental change, the exposure of image also constantly changes, and makes the quality of image can not reach perfect condition like this.Therefore, the present invention proposes exposure according to the image that obtains; In the exposure of described image when changing to less than first predetermined threshold greater than first predetermined threshold, reduce image saturation, and carry out following one or more step: reduce image sharpness, reduce picture contrast, reduce the color enhancement function and open decrease of noise functions; In the exposure of described image when changing to greater than second predetermined threshold less than second predetermined threshold, increase image saturation, and carry out following one or more step: increase image sharpness, increase picture contrast, increase the color enhancement function and close decrease of noise functions.The exposure of image is the product of time for exposure and luminance gain coefficient, and wherein, the luminance gain coefficient comprises analog gain and digital gain.
Wherein above-mentioned first predetermined threshold is the 10-30 level, and second predetermined threshold is the 80-100 level, but based on any conversion that does not break away from inventive concept, all should belong to protection scope of the present invention.
Reduce or increase image saturation and realize that by the saturation regulatory factor is set wherein the product of input picture and saturation regulatory factor is as output image.
, reduce image sharpness, remove acutance or carry out anti-acutance when changing to less than first predetermined threshold in the exposure of image greater than first predetermined threshold; And in the exposure of described image when changing to greater than second predetermined threshold less than second predetermined threshold, the performing step that increases image sharpness is: with the product of input picture and the sharpening factor output image after as adjusting, wherein, sharpening factor is an integer.Further, sharpening factor is for being positioned at the arbitrary integer between [16,16].
Describe the present invention below in conjunction with accompanying drawing.
Fig. 1 is the original image of the little situation of one embodiment of the invention image exposure amount;
Fig. 2 A is the image that the saturation increase of image is shown according to Fig. 1;
As can be seen from the figure, the color before of the image after the adjusting is clear more true to nature.
Fig. 2 B is the image that the saturation reduction of image is shown according to Fig. 1;
As can be seen from the figure, on the little basis of image exposure amount, further reduce the saturation of image, will make that the color of image is fuzzyyer.
The process of the saturation gradual change of image can be finished by the saturation regulatory factor is set, as shown in Figure 3, when exposure is TH1 and TH2, different saturation regulatory factors is set respectively, make that the slope K of line1 and line2 is different, slope is herein promptly represented the speed of gradual change.
When exposure<=TH1, the saturation regulatory factor is regulated along line1; When exposure>TH1 and<=during TH2, the saturation regulatory factor is regulated along line2; When exposure>TH2, the saturation regulatory factor is 0.
Along line1, when the saturation regulatory factor from diminishing greatly, then image color shoals light gradually; Along line1, when the saturation regulatory factor is big from little change, then image color becomes gorgeous gradually;
Along line2, when the saturation regulatory factor from diminishing greatly, then image becomes black and white by light colour gradually; Along line2, when the saturation regulatory factor is big from little change, then image becomes light colour by black and white gradually.
Utilize exposure and saturation regulatory factor to form coordinate and take out, different exposure correspondences are provided with different saturation regulatory factors, form different straight slopes, and wherein, slope represents to regulate by the saturation regulatory factor speed of image color gradual change.
Wherein, the product of input picture and saturation regulatory factor obtains output image.
Under the little situation of exposure, can regulate characteristics of image: increase image sharpness by following at least a mode; Increase picture contrast; Increase the degree that color strengthens; Reduce or close decrease of noise functions.
Reduce image sharpness, remove acutance or anti-acutance; And the performing step of described increase image sharpness is:
As the output image after regulating, wherein, sharpening factor is an integer with the product of input picture and sharpening factor.Preferably, sharpening factor is for being positioned at the arbitrary integer between [16,16].Based on belonging to protection scope of the present invention with any variation that does not break away from inventive concept.
Fig. 4 A is the image that the acutance increase of image is shown according to Fig. 1, and as can be seen from the figure, it is more clear that the image after acutance increases shows.Comparison diagram 4A, Fig. 4 B are the images that the acutance reduction of image is shown according to Fig. 1, and the image after acutance reduces shows fuzzyyer.Wherein, sharpening factor and acutance are proportional.
Fig. 5 A illustrates the image that picture contrast increases according to Fig. 1;
Under the situation that exposure is little in Fig. 1,, make that the image light and shade is clearly more demarcated by increasing the contrast of image; Accordingly, Fig. 5 B illustrates the image that the image adjustment contrast reduces according to Fig. 1; Under the little situation of image exposure amount, it is fuzzyyer that image can seem like this.
Equally, under the little situation of exposure, can increase the degree that color strengthens; Reduce or close decrease of noise functions, improve the quality of image.
On the contrary, in the big situation of image exposure amount, the saturation that should regulate image lowers gradually, makes image become black and white from colour, makes that the color of image is more clear.
Simultaneously, in the big situation of exposure, can be by reducing image sharpness, removing acutance or anti-acutance; Reduce picture contrast; Reduce degree or removal color enhancement function that color strengthens; Open decrease of noise functions.At least above a kind of mode realizes.
Fig. 6 is the original image of the big situation of one embodiment of the invention image exposure amount;
Fig. 7 A is the image that the adjusting saturation reduction of image is shown according to Fig. 6, and as can be seen from the figure, by reducing the saturation of the original image that obtains in the dark surrounds, noise is not obvious in this image.
Comparison diagram 7A, Fig. 7 B are the images that the adjusting saturation increase of image is shown according to Fig. 6, and as can be seen from the figure, by increasing the saturation of the original image that obtains in the dark surrounds, the noise of this image is exaggerated, and makes that the noise of image is more obvious.
Fig. 8 A is the image that the adjusting contrast reduction of image is shown according to Fig. 6, and as can be seen from the figure, by reducing the contrast of the original image that obtains in the dark surrounds, noise is not obvious in this image.
Comparison diagram 8A, Fig. 8 B are the images that the adjusting contrast increase of image is shown according to Fig. 6, and as can be seen from the figure, by increasing the contrast of the original image that obtains in the dark surrounds, the noise of this image is exaggerated, and makes that the noise of image is more obvious.
Fig. 9 A is the image according to the adjusting acutance reduction of the image shown in Fig. 6, as can be seen from the figure, and by reducing the acutance of the original image that obtains in the dark surrounds, perhaps in dark surrounds without acutance, even anti-acutance, the feasible not noise of enlarged image, and also noise is not obvious in the image.
Comparison diagram 9A, Fig. 9 B are the images according to the adjusting acutance increase of the image shown in Fig. 6, and as can be seen from the figure, by increasing the acutance of the original image that obtains in the dark surrounds, the noise of this image is exaggerated, and makes that the noise of image is more obvious.
Under dark surrounds, the coloured image that colored noise is beated is accepted than the more difficult eyes that allow of black and white image.
Equally, under the big situation of exposure, can be by reducing degree or the removal color enhancement function that color strengthens; Open decrease of noise functions, improve the quality of image.Based on belonging to protection scope of the present invention with any variation that does not break away from inventive concept.
Figure 10 is the structural representation that one embodiment of the invention improves the picture quality device.
In the device 10 that improves picture quality, comprise light exposure obtaining module, saturation adjustment module 11, acutance adjustment module 12, contrast adjustment module 13, color strengthens adjustment module 14 and noise reduction module 15; Wherein:
Light exposure obtaining module is used to obtain the exposure of image;
Saturation adjustment module 11 is used for according to exposure, increases or reduce the saturation of image;
Acutance adjustment module 12 is used for according to exposure, increases or reduces image sharpness and remove acutance or carry out anti-acutance;
Contrast adjustment module 13 is used for according to exposure, increases or reduce picture contrast;
Color strengthens adjustment module 14, is used for according to exposure, increases or reduces color and strengthen degree, perhaps removes the color enhancement function;
Noise reduction module 15 is used for opening according to exposure, closes or reduce the decrease of noise functions of image.
Wherein, exposure is the product of time for exposure and luminance gain coefficient, and wherein, the luminance gain coefficient comprises analog gain and digital gain.
Wherein, described saturation adjustment module reduces or increases image saturation by the realization of saturation regulatory factor is set.
Further, utilize exposure and saturation regulatory factor to form coordinate and take out, different exposure correspondences are provided with different saturation regulatory factors, form different straight slopes, and wherein, slope represents to regulate by the saturation regulatory factor speed of image color gradual change.
Wherein, as the output image after regulating, wherein, sharpening factor is an integer to the acutance adjustment module with the product of input picture and sharpening factor.Further, sharpening factor is for being positioned at the arbitrary integer between [16,16].
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement etc., all should be included within protection scope of the present invention.