CN101873503B - Method and device for adjusting image property - Google Patents

Method and device for adjusting image property Download PDF

Info

Publication number
CN101873503B
CN101873503B CN 200910253944 CN200910253944A CN101873503B CN 101873503 B CN101873503 B CN 101873503B CN 200910253944 CN200910253944 CN 200910253944 CN 200910253944 A CN200910253944 A CN 200910253944A CN 101873503 B CN101873503 B CN 101873503B
Authority
CN
China
Prior art keywords
brightness
image
regulated
adjusting
value
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
CN 200910253944
Other languages
Chinese (zh)
Other versions
CN101873503A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN 200910253944 priority Critical patent/CN101873503B/en
Publication of CN101873503A publication Critical patent/CN101873503A/en
Application granted granted Critical
Publication of CN101873503B publication Critical patent/CN101873503B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for adjusting image property, wherein the method comprises the following steps that: obtaining the image property parameters of a YUV image; and adjusting the image property parameters according to a preset strategy, and obtaining the adjusted image property. After being applied, the method and the device provided by the embodiment for adjusting the image property omit two times of module conversion of YUV to RGB and RGB to HSV, prevent the problems of excessive calculation and to many consumed resources when the image property of the YUV image is adjusted, so that the occupied resources during the adjustment are very few because the property of the YUV image data is directly adjusted, thereby greatly improving the adjustment efficiency. In addition, the embodiment increases methods for dynamically adjusting the brightness of the image and improves the video effect of image adjustment. Through test and comparison, the adjustment effect of the invention is better than the method for adjusting the color property after converting through a color model.

Description

A kind of method and apparatus of adjusting image property
Technical field
The present invention relates to the image attributes technical field, particularly a kind of method and apparatus of adjusting image property.
Background technology
For image attributes better is described, the below does first a simple declaration to color model:
The YUV model: the colour coding method that a kind of television system adopts for the compatibling problem that solves color television set and black and white television set, is one of color model commonly used at present.Y, U, V represent respectively luminance signal and blue difference signal and red color difference signal.YUV is mainly used in optimizing the transmission of colour-video signal, makes its backward compatible old-fashioned black-and-white TV.Compare with rgb video signal transmission, the advantage of its maximum is only need take few frequency range (RGB requirement three independently vision signal transmit simultaneously).Wherein " Y " represents brightness (Luminance or Luma), namely GTG value; That " U " and " V " represents then is colourity (Chrominance or Chroma), and effect is to describe colors of image and saturation, is used to specify the color of pixel." brightness " sees through the RGB input signal and sets up, and method is that the specific part with rgb signal is superimposed together." colourity " has then defined two aspect-tones and the saturation of color.
The RGB model: the color model that a kind of three primary colors colour mixture principle produces, three primary colors are red, green, blue, are represented by R, G, B respectively, the occurring in nature shades of colour can be mixed by the different proportion addition by three primary colors.
The HSV model: a kind of color model that relatively meets human-eye visual characteristic has advantages of the light tone separation.H, S, V represent respectively carrier chrominance signal, saturation signal and luminance signal.
Image attributes is regulated: image attributes comprises brightness, contrast, and the color harmony saturation can reach the purpose that the image vision characteristic is regulated by image attributes is regulated.
At present, regulate for the image attributes that the YUV model carries out, generally adopt the method for color model conversion to realize, that is, at first the YUV modular form is converted to the RGB model, and then is converted to the HSV model, then the hsv color model is carried out color attribute and regulate.
As seen, be the conversion that the HSV model needs twice color model by the YUV model conversion, the conversion of each color model all needs very large amount of calculation, need to expend a lot of resources.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of adjusting image property, and is excessive to avoid when regulating the image attributes of YUV image amount of calculation, the problem that consumes resources is many.
The embodiment of the invention provides a kind of method of adjusting image property, comprising:
Obtain the image attributes parameter of YUV image;
Described image attributes parameter is regulated the image attributes after obtaining to regulate according to default strategy.
Wherein, described image attributes parameter comprises following one of them or combination in any:
Brightness, contrast, saturation and colourity.
Wherein, when the image attributes parameter is brightness, the Y component in the YUV image is regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
When the direction of brightness Y-direction increase is regulated,
Y′=Y+B
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and B is the value of brightness regulation;
When the direction that reduces when the brightness Y-direction is regulated,
Y′=min(Y,Y″)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, Y " is the maximum after the brightness regulation.
Wherein, when the image attributes parameter is contrast, the Y component in the YUV image is regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
When contrast is regulated to the direction that increases,
Y′=Y*C
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value;
When contrast is regulated to the direction that reduces,
Y′=A+(Y-A)*C
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value, and A is a radix value.
Wherein, when the image attributes parameter is saturation, the U in the YUV image and V component are regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
U′=((U-128)*S)+128
V′=((V-128)*S)+128
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and S is the saturation regulated value.
Wherein, when the image attributes parameter is colourity, the U in the YUV image and V component are regulated; The step of then described image attributes parameter being transferred according to default strategy comprises:
U′=(U-128)*cosθ+(V-128)*sinθ+128
V′=(V-128)*cosθ-(U-128)*sinθ+128
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and θ is the colourity regulated quantity.
Wherein, described method further comprises: practical adjustments amount and slide block regulated quantity are the non-linear increasing relation, and the variation of B value increases with the regulated quantity of brightness, reduces thereupon reducing.
Wherein, brightness regulation to image is carried out self adaptation to the mean picture brightness before regulating, if the integral body of image before regulating is brighter, then the odds ratio of practical adjustments amount and slide block regulated quantity is larger, if image overall brightness before regulating is less, then the ratio of practical adjustments amount and slide block regulated quantity is also smaller.
Wherein, described method further comprises:
The regulated quantity of described saturation is carried out adaptive change to image brightness, and the practical adjustments amount of saturation reduces along with the increase of brightness, increases along with the increase of contrast, reduces when the brightness and contrast reduces simultaneously thereupon.
The embodiment of the invention also provides a kind of device of adjusting image property, comprising:
Parameter acquisition module is for the image attributes parameter of obtaining the YUV image;
Adjustment module is used for described image attributes parameter is regulated according to default strategy, the image attributes after obtaining to regulate.
Wherein, described image attributes parameter comprises following one of them or combination in any:
Brightness, contrast, saturation and colourity.
Wherein, further comprise:
The brightness adaptation module, when being used for the brightness regulation to image, if the integral body of image is brighter, then regulated quantity is larger, if integral image brightness is less, then regulated quantity is also less.
Wherein, further comprise:
The comprehensive adjustment module, the regulated quantity that is used for controlling described saturation reduces along with the increase of brightness, increases along with the increase of contrast, and when reducing simultaneously along with the brightness and contrast and reduce.
Use the adjusting image property method and apparatus that the embodiment of the invention provides, saved twice module converts of YUV~RGB and RGB~HSV, avoid when regulating the image attributes of YUV image amount of calculation excessive, the problem that consumes resources is many, because can directly carry out attribute for the YUV view data regulates, transfer so that the resource that adjustment process takies seldom, has improved the efficient of regulating greatly.
Have, the embodiment of the present application has increased the method for the brightness of image self being carried out dynamic adjustments again, has improved the video effect of image adjustment, and through test comparison, regulating effect of the present invention is better than through carrying out the control method of color attribute after the color model conversion.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the flow chart according to a kind of adjusting image property method of the embodiment of the invention;
Fig. 2 is the schematic diagram according to the employing slide block adjusting image property of the embodiment of the invention;
Fig. 3 is according to the schematic diagram that concerns between the B value of the embodiment of the invention and the brightness adjustment;
Fig. 4 is according to the schematic diagram that concerns between the C value of the embodiment of the invention and the contrast adjustment amount;
Fig. 5 is the schematic diagram that concerns according to the color harmony saturation of the embodiment of the invention;
Fig. 6 is the schematic diagram that concerns according to the regulated quantity S of the saturation of the embodiment of the invention and saturation slide block adjusting position and brightness, contrast;
Fig. 7 is the apparatus structure schematic diagram according to the adjusting image property of the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Referring to Fig. 1, it is the flow chart according to a kind of adjusting image property method of the embodiment of the invention.Specifically comprise:
Step 101 is obtained the image attributes parameter of YUV image;
Concrete, the image attributes parameter comprises following one of them or combination in any: brightness, contrast, saturation and colourity;
Step 102 is regulated according to default strategy described image attributes parameter, the image attributes after obtaining to regulate.
Use the adjusting image property method that the embodiment of the invention provides, saved twice module converts of YUV~RGB and RGB~HSV, avoid when regulating the image attributes of YUV image amount of calculation excessive, the problem that consumes resources is many, because can directly carry out attribute for the YUV view data regulates, transfer so that the resource that adjustment process takies seldom, has improved the efficient of regulating greatly.
Have, the embodiment of the present application has increased the method for the brightness of image self being carried out dynamic adjustments again, has improved the video effect of image adjustment, and through test comparison, regulating effect of the present invention is better than through carrying out the control method of color attribute after the color model conversion.
The mode that a kind of possible image attributes to the YUV image is regulated can adopt the regulative mode of slide block, as shown in Figure 2, can design respectively a slider bar for brightness, contrast, saturation and colourity, when slide block is in the centre position of slider bar, show and regulate, when slide block is moved to the left, show that this component is to the direction adjusting that reduces, when slide block is wanted to move right, show that this component is to the direction adjusting that increases.Among Fig. 2, regulated quantity is divided into 100 grades, the centre position is 50, and this position shows to be regulated this moment.Regulating maximum magnitude left is 0, and regulating maximum magnitude to the right is 100, about the adjusting grade all be 50.Reset button is used for after brightness, contrast, saturation and colourity are regulated four sliding shoes being returned to the centre position.
The below respectively brightness regulation, contrast adjustment, saturation is regulated and the colourity adjusting is elaborated.
Actual to the adjusting of brightness is that the Y component in the YUV image is regulated.The step of in the step 102 described image attributes parameter being regulated according to default strategy at this moment, comprises:
When the direction of brightness Y-direction increase is regulated,
Y′=Y+B (1)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and B is the value of brightness regulation;
When the direction that reduces when the brightness Y-direction is regulated,
Y′=min(Y,Y″) (2)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, Y " is the maximum after the brightness regulation.
The situation that the direction that reduces for the brightness Y-direction is regulated, the tonal range of default image is 0~255 before regulating, tonal range is 0~Y after regulating ", the value B=|255-Y of brightness regulation ".
When brightness was regulated to the direction that increases, the variation of B value increased with the regulated quantity of brightness, reducing and reduce with regulated quantity.When brightness was regulated to the direction that reduces, the variation of B value increased with the regulated quantity of brightness, reducing and reduce with regulated quantity.The relation of regulated quantity and B value is nonlinear monotonically increasing.The B value is relevant with the attribute of image own in addition, be designed in the embodiment of the present application the mean flow rate of image is carried out self adaptation, first the mean picture brightness before regulating is carried out self adaptation during also namely to the brightness regulation of image, if the integral body brighter (namely mean flow rate larger) of image before regulating, then practical adjustments amount and slide block regulated quantity is larger frequently, if image overall brightness before regulating is less, then the ratio of practical adjustments amount and slide block regulated quantity is also smaller.Namely the brightness regulation curve carries out self adaptation to the original brightness value of image.
Referring to Fig. 3, it is according to the schematic diagram that concerns between the B value of the embodiment of the invention and the brightness adjustment.Among Fig. 3, abscissa is the regulated quantity of brightness slide block, and scope is 0-100, and ordinate is the practical adjustments amount, and scope is 0-255, i.e. B in the corresponding adjusting of the value of the ordinate formula, and abscissa is actual regulated quantity.Dotted line is the regulating effect of integral image brightness when larger among the figure, and solid line is the overall brightness regulating effect hour of image.
Adjusting reality to contrast also is that the Y component in the YUV image is regulated.The step of in the step 102 described image attributes parameter being regulated according to default strategy at this moment, comprises:
When contrast is regulated to the direction that increases,
Y′=Y*C (3)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value;
When contrast is regulated to the direction that reduces,
Y′=A+(Y-A)*C (4)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value, and A is a radix value.In actual applications, A can get arbitrary value, and A can get 30 in a preferred embodiment.
The variation of above-mentioned C value increases with the regulated quantity of contrast, reduce thereupon reducing, but discord contrast adjustment amount is proportional, but in the contrast adjustment amount more hour, gray scale (also being brightness Y) increases sooner, and when the contrast adjustment amount was larger, it is slower that gray scale increases.The C value is affected by brightness adjustment, and when brightness adjustment was larger, the C value reduced thereupon.Equally, the C value has been carried out self adaptation to the overall brightness of image, for the difference of image averaging gray scale, and C value big or small different.
Referring to Fig. 4, it is according to the schematic diagram that concerns between the C value of the embodiment of the invention and the contrast adjustment amount.Among Fig. 4, abscissa represents the regulated quantity of contrast slide block, and scope is 0-100, ordinate represents the practical adjustments effect of contrast, and scope is 0-2, and solid line a is that integral image brightness is less, when brightness is regulated to the direction that reduces, the relation of contrast slide block regulated quantity and actual contrast regulated value.Dotted line b is that integral image brightness is larger, when brightness is regulated to the direction that reduces, and the relation of contrast slide block regulated quantity and actual contrast regulated value.
Need to prove, the embodiment of the present application combines brightness and contrast's adjusting, and brightness regulation and contrast adjustment are combined, and interacts, to reach better regulating effect.
When preventing that the integral image gray scale is larger, the brightness and contrast regulates the excessive phenomenon of adjusting that causes to the direction that increases simultaneously, and the safeguard measure when being provided with this kind situation suppresses excessively to regulate phenomenon.Braking measure is, regulates and regulated quantity when all large to the direction that increases simultaneously the brightness and contrast, reduces brightness and contrast's practical adjustments amount.
The adjusting of saturation is the mould of regulating the vector of carrier chrominance signal U, V component composition, and the larger saturation of mould is larger, otherwise less.
The relation of color harmony saturation as shown in Figure 5, among Fig. 5, U is blue difference signal, V is red color difference signal, the value of angle θ is the regulated quantity of tone, the mould of vectorial b is the regulated quantity of saturation.The below elaborates to the adjustment process of saturation and colourity again.
Actual to the adjusting of saturation is that the U in the YUV image and V component are regulated.The step of in the step 102 described image attributes parameter being regulated according to default strategy at this moment, comprises:
U′=((U-128)*S)+128 (5)
V′=((V-128)*S)+128 (6)
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and S is the saturation regulated value.Wherein, value centered by 128.
In the YUV image space, the change of Y component can cause the change of colourity, and in order to obtain better effect, the regulated quantity of the saturation of image is affected by brightness and contrast's regulated quantity, the regulated quantity of saturation reduces along with the increase of brightness, increases along with the increase of contrast; And reduce along with reducing of brightness and contrast.That is to say, the regulated quantity of saturation is carried out adaptive change to image brightness, and the practical adjustments amount of saturation reduces along with the increase of brightness, increases along with the increase of contrast, reduces when the brightness and contrast reduces simultaneously thereupon.
Referring to Fig. 6, it is the schematic diagram that concerns according to the regulated quantity S of the saturation of the embodiment of the invention and saturation slide block adjusting position and brightness, contrast.Among Fig. 6, abscissa represents the position of saturation adjusting slider, and ordinate represents the practical adjustments amount of saturation.The adjustable range of abscissa is 0~100,50 centers when regulating for slide block, and this moment, saturation was not regulated.The adjustable range of ordinate is 0~2.0 for to be adjusted to minimum with saturation, and this moment, saturation was 0, and namely image does not have colouring information.Among Fig. 6, solid line a is in initial position for brightness and contrast's adjusting slider, when being unadjusted state, regulate separately the position of saturation slide block and the relation of actual saturation, when dotted line b regulates to the direction that reduces for the brightness and contrast, regulate the position of saturation slide block and the relation of actual saturation, dotted line c is brightness or contrast when regulating to the direction that increases, and regulates the position of saturation slide block and the relation of actual saturation.
In the adjusting of tone, adopt the regulative mode of colour circle in the embodiment of the invention.
Adjusting reality to colourity also is that the U in the YUV image and V component are regulated.The step of in the step 102 described image attributes parameter being regulated according to default strategy at this moment, comprises:
U′=(U-128)*cosθ+(V-128)*sinθ+128 (7)
V′=(V-128)*cosθ-(U-128)*sinθ+128 (8)
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and θ is the colourity regulated quantity.Wherein, value centered by 128.
Use the method that the embodiment of the invention provides, each width of cloth picture is processed, also just can be processed each two field picture of video, therefore be not subjected to the restriction of the scope of application of picture and video, both be applicable to picture and regulated pattern, and also be applicable to video and regulate pattern.
The embodiment of the invention also provides a kind of device of adjusting image property, referring to Fig. 7, specifically comprises:
Parameter acquisition module 701 is for the image attributes parameter of obtaining the YUV image;
Adjustment module 702 is used for described image attributes parameter is regulated according to default strategy, the image attributes after obtaining to regulate.
Above-mentioned image attributes parameter comprises following one of them or combination in any: brightness, contrast, saturation and colourity.
Said apparatus may further include:
The brightness adaptation module, when being used for the brightness regulation to image, if the integral body of image is brighter, then regulated quantity is larger, if integral image brightness is less, then regulated quantity is also less.
Said apparatus can further include:
The comprehensive adjustment module, the regulated quantity that is used for controlling described saturation reduces along with the increase of brightness, increases along with the increase of contrast, and when reducing simultaneously along with the brightness and contrast and reduce.
Use the adjusting image property device that the embodiment of the invention provides, saved twice module converts of YUV~RGB and RGB~HSV, avoid when regulating the image attributes of YUV image amount of calculation excessive, the problem that consumes resources is many, because can directly carry out attribute for the YUV view data regulates, so that the resource that adjustment process takies seldom, improved greatly the efficient of regulating.
Have, the embodiment of the present application has increased the method for the brightness of image self being carried out dynamic adjustments again, has improved the video effect of image adjustment, and through test comparison, regulating effect of the present invention is better than through carrying out the control method of color attribute after the color model conversion.
For device embodiment because its basic simlarity is in embodiment of the method, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Need to prove, in this article, such as term " comprise ", " comprising " or its any other variant be intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, article or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the said method execution mode is to come the relevant hardware of instruction to finish by program, described program can be stored in the computer read/write memory medium, here alleged storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.All any modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., all be included in protection scope of the present invention.

Claims (7)

1. the method for an adjusting image property is characterized in that, comprising:
Obtain the image attributes parameter of YUV image; Described image attributes parameter comprises following one of them or combination in any: brightness, contrast, saturation and colourity;
Described image attributes parameter is regulated the image attributes after obtaining to regulate according to default strategy;
Wherein, when described image attributes parameter is brightness, the Y component in the YUV image is regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
When the direction of brightness Y-direction increase is regulated,
Y′=Y+B
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and B is the value of brightness regulation;
When the direction that reduces when the brightness Y-direction is regulated,
Y′=min(Y,Y″)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, Y " is the maximum after the brightness regulation;
When described image attributes parameter is contrast, the Y component in the YUV image is regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
When contrast is regulated to the direction that increases,
Y′=Y*C
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value;
When contrast is regulated to the direction that reduces,
Y′=A+(Y-A)*C
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value, and A is a radix value;
When described image attributes parameter is saturation, the U in the YUV image and V component are regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
U′=((U-128)*S)+128
V′=((V-128)*S)+128
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and S is the saturation regulated value;
When described image attributes parameter is colourity, the U in the YUV image and V component are regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
U′=(U-128)*cosθ+(V-128)*sinθ+128
V′=(V-128)*cosθ-(U-128)*sinθ+128
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and θ is the colourity regulated quantity.
2. described method according to claim 1 is characterized in that, described method further comprises: practical adjustments amount and slide block regulated quantity are the non-linear increasing relation, and the variation of B value increases with the regulated quantity of brightness, reduces thereupon reducing.
3. described method according to claim 1, it is characterized in that, brightness regulation to image is carried out self adaptation to the mean picture brightness before regulating, if the integral body of image before regulating is brighter, then the odds ratio of practical adjustments amount and slide block regulated quantity is larger, if image overall brightness before regulating is less, then the ratio of practical adjustments amount and slide block regulated quantity is also smaller.
4. described method according to claim 1 is characterized in that, described method further comprises:
The regulated quantity of described saturation is carried out adaptive change to image brightness, and the practical adjustments amount of saturation reduces along with the increase of brightness, increases along with the increase of contrast, reduces when the brightness and contrast reduces simultaneously thereupon.
5. the device of an adjusting image property is characterized in that, comprising:
Parameter acquisition module is for the image attributes parameter of obtaining the YUV image; Described image attributes parameter comprises following one of them or combination in any: brightness, contrast, saturation and colourity;
Adjustment module is used for described image attributes parameter is regulated according to default strategy, the image attributes after obtaining to regulate;
Wherein, when described image attributes parameter is brightness, the Y component in the YUV image is regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
When the direction of brightness Y-direction increase is regulated,
Y′=Y+B
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and B is the value of brightness regulation;
When the direction that reduces when the brightness Y-direction is regulated,
Y′=min(Y,Y″)
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, Y " is the maximum after the brightness regulation;
When described image attributes parameter is contrast, the Y component in the YUV image is regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
When contrast is regulated to the direction that increases,
Y′=Y*C
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value;
When contrast is regulated to the direction that reduces,
Y′=A+(Y-A)*C
Wherein, Y is the brightness value before the Image Adjusting, and Y ' is the brightness value behind the brightness adjustment, and C is the contrast adjustment value, and A is a radix value;
When described image attributes parameter is saturation, the U in the YUV image and V component are regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
U′=((U-128)*S)+128
V′=((V-128)*S)+128
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and S is the saturation regulated value.
When described image attributes parameter is colourity, the U in the YUV image and V component are regulated; The step of then described image attributes parameter being regulated according to default strategy comprises:
U′=(U-128)*cosθ+(V-128)*sinθ+128
V′=(V-128)*cosθ-(U-128)*sinθ+128
Wherein, U is the blue difference signal value before the Image Adjusting, and U ' is the red color difference signal value before the Image Adjusting for the blue difference signal value after adjusting, V, and V ' is the red color difference signal value after adjusting, and θ is the colourity regulated quantity.
6. described device according to claim 5 is characterized in that, further comprises:
The brightness adaptation module, when being used for the brightness regulation to image, if the integral body of image is brighter, then regulated quantity is larger, if integral image brightness is less, then regulated quantity is also less.
7. described method according to claim 6 is characterized in that, further comprises:
The comprehensive adjustment module, the regulated quantity that is used for controlling described saturation reduces along with the increase of brightness, increases along with the increase of contrast, and when reducing simultaneously along with the brightness and contrast and reduce.
CN 200910253944 2009-12-09 2009-12-09 Method and device for adjusting image property Active CN101873503B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910253944 CN101873503B (en) 2009-12-09 2009-12-09 Method and device for adjusting image property

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910253944 CN101873503B (en) 2009-12-09 2009-12-09 Method and device for adjusting image property

Publications (2)

Publication Number Publication Date
CN101873503A CN101873503A (en) 2010-10-27
CN101873503B true CN101873503B (en) 2013-02-13

Family

ID=42998120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910253944 Active CN101873503B (en) 2009-12-09 2009-12-09 Method and device for adjusting image property

Country Status (1)

Country Link
CN (1) CN101873503B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102280096B (en) * 2011-07-15 2013-09-18 杭州米加科技有限公司 Method for combining image scaling and color space switching
CN104883552B (en) * 2015-05-22 2017-01-11 深圳市载德光电技术开发有限公司 YUV (Luma and Chroma) coded format-based image adjusting method and system
US9514706B1 (en) * 2015-05-28 2016-12-06 Chunghwa Picture Tubes, Ltd. Transparent display apparatus and image adjustment method thereof
CN105893885A (en) * 2016-03-28 2016-08-24 努比亚技术有限公司 Adjustment method and device for input interface
CN107247551A (en) * 2017-06-30 2017-10-13 京东方科技集团股份有限公司 Brightness adjusting method and device
CN107909553B (en) * 2017-11-02 2021-10-26 海信视像科技股份有限公司 Image processing method and device
CN108200420B (en) * 2018-01-16 2020-05-19 奇酷互联网络科技(深圳)有限公司 Image adjusting method and device, readable storage medium and terminal
CN110288570A (en) * 2019-05-31 2019-09-27 东南大学 A kind of weak iridescent image detection method of the rotor winding of view-based access control model attention mechanism
CN111182351A (en) * 2020-03-17 2020-05-19 惠州Tcl移动通信有限公司 Video playing processing method and device, storage medium and terminal
CN111416950B (en) * 2020-03-26 2023-11-28 腾讯科技(深圳)有限公司 Video processing method and device, storage medium and electronic equipment
CN111526366B (en) * 2020-04-28 2021-08-06 深圳市思坦科技有限公司 Image processing method, image processing apparatus, image capturing device, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972456A (en) * 2005-11-22 2007-05-30 逐点半导体(上海)有限公司 Color space conversion apparatus and conversion method
CN101009851A (en) * 2007-01-19 2007-08-01 北京中星微电子有限公司 Image processing method and its device
CN101340510A (en) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 Method for video enhancement and apparatus thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1972456A (en) * 2005-11-22 2007-05-30 逐点半导体(上海)有限公司 Color space conversion apparatus and conversion method
CN101009851A (en) * 2007-01-19 2007-08-01 北京中星微电子有限公司 Image processing method and its device
CN101340510A (en) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 Method for video enhancement and apparatus thereof

Also Published As

Publication number Publication date
CN101873503A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN101873503B (en) Method and device for adjusting image property
CN103843058B (en) Apparatus and method for the dynamic range transform of image
CN104364820B (en) Brightness with color constraint changes image procossing
CN102611897B (en) Method and system for carrying out vision perception high-fidelity transformation on color digital image
CN101715141B (en) Method and equip for joint enhancement of lightness, color and contrast of images and video
US10129511B2 (en) Image processing apparatus, image projection apparatus, and image processing method
US9842385B2 (en) Display management for images with enhanced dynamic range
CN101414440B (en) Display system and method of adaptive backlight control
CN105744114B (en) Method and apparatus for image data transformation
CN109937444A (en) Display device
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
US20100020242A1 (en) Device and method for processign color image data
CN109155060A (en) Image processing apparatus, image processing method and program
CN102638688A (en) Method and apparatus for brightness-controlling image conversion
CN104935902A (en) Image color enhancement method and device, and electronic equipment
CN101764913B (en) Color replacement method base on HSV space
US20080259007A1 (en) Method for dynamically adjusting brightness of image
US20090268961A1 (en) Color-saturation control method
CN101383138B (en) Color regulating method, system and display
US20100156956A1 (en) Grayscale characteristic for non-crt displays
WO2023241339A1 (en) Color cast correction method and apparatus, device, storage medium and program product
CN109346015B (en) Color display method based on energy-saving idea
CN102164289B (en) Method and/or apparatus for implementing a color management module
TWI383333B (en) Method and system for adjusting saturation of image
Safaee-Rad et al. Comparative performance analysis of two picture adjustment methods: HSV vs. YCbCr

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: HANGZHOU HAIKANG WEISHI SOFTWARE CO., LTD.

Effective date: 20120905

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20120905

Address after: Hangzhou City, Zhejiang province 310012 Binjiang District East Road Haikang Science Park No. 700, No. 1

Applicant after: Hangzhou Hikvision Digital Technology Co., Ltd.

Address before: Ma Cheng Road Hangzhou City, Zhejiang province 310012 No. 36

Applicant before: Hangzhou Haikang Weishi Software Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant