CN102752512A - Method for adjusting image exposure effects - Google Patents

Method for adjusting image exposure effects Download PDF

Info

Publication number
CN102752512A
CN102752512A CN2011103921921A CN201110392192A CN102752512A CN 102752512 A CN102752512 A CN 102752512A CN 2011103921921 A CN2011103921921 A CN 2011103921921A CN 201110392192 A CN201110392192 A CN 201110392192A CN 102752512 A CN102752512 A CN 102752512A
Authority
CN
China
Prior art keywords
color space
value
exposure
image
yuv color
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.)
Granted
Application number
CN2011103921921A
Other languages
Chinese (zh)
Other versions
CN102752512B (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.)
China Digital Video Beijing Ltd
Original Assignee
China Digital Video Beijing 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 China Digital Video Beijing Ltd filed Critical China Digital Video Beijing Ltd
Priority to CN201110392192.1A priority Critical patent/CN102752512B/en
Publication of CN102752512A publication Critical patent/CN102752512A/en
Application granted granted Critical
Publication of CN102752512B publication Critical patent/CN102752512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Of Color Television Signals (AREA)
  • Studio Devices (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

An embodiment of the invention discloses a method for adjusting image exposure effects. The method comprises the following steps of setting a congruent relationship table between exposure compensation values of an image and exposure parameters of the image in advance; obtaining the exposure compensation values input by a user; obtaining the exposure parameters according to the exposure compensation values input by the user and the congruent relationship table; and calculating adjusted color spatial values of the image according to the exposure parameters and an original YUV color spatial value of the image. In the embodiment, the color spatial values of the image in a YUV color space are adjusted by imitating the exposure compensation values of a camera, and adjustment of exposure effects in image processing is achieved.

Description

A kind of method of regulating the image exposure effect
Technical field
The present invention relates to technical field of image processing, relate in particular to a kind of method of regulating the image exposure effect.
Background technology
Exposure compensating also is a kind of exposure control mode, and is general common about ± 2-3EV, if environment light source is dark partially, can increase exposure value (as be adjusted into+1EV ,+2EV) to highlight the definition of picture.
Digital camera if press the half shutter, will show the much the same picture with final effect figure on the liquid crystal display screen in the process of taking, focusing, and all startups make public.The exposure in this time, the exposure of final picture just.If picture is obviously bright partially or dark partially, explain that the automatic light measuring accuracy of camera has than large deviation, force to carry out exposure compensating, but sometimes, brightness that shows during shooting and actual photographed result have certain discrepancy.Digital camera can be browsed picture immediately after shooting, at this moment, can see the bright-dark degree of taking the picture that comes out more exactly, does not have discrepancy again.If shooting results is obviously bright partially or dark partially, then to take again, force to carry out exposure compensating.
Shooting environmental is more dim, need to increase brightness, and photoflash lamp can compensate exposure can't work the time, suitably increases exposure.When carrying out exposure compensating,, increase the EV value if photo is dark excessively, the every increase by 1.0 of EV value, the amount of light that is equivalent to take in doubles, if photo is bright excessively, reduce the EV value, and the EV value whenever reduces 1.0, and the amount of light that is equivalent to take in reduces one times.Backoff interval according to different cameral can be regulated with 1/2 (0.5) or 1/3 (0.3) unit.
Because the aperture time or the aperture size of camera are limited; Therefore be not the adjusting range that always can reach 2EV; Therefore exposure compensating neither be omnipotent; Still maybe be under-exposed under too dark environment, to consider this moment to cooperate the ISO luminous sensitivity of photoflash lamp or increase camera to improve picture brightness.
The exposure compensating scope of nearly all digital camera all is the same, can in positive and negative 2EV, add, subtract, but plus-minus is not continuous, but be the interval skip formula with 1/2EV or 1/3EV.Early stage old-fashioned digital camera is at interval with 1/2EV such as the DC215 of Kodak; So have-2.0 ,-1.5 ,-1 ,-0.5 and+0.5 ,+1 ,+1.5 ,+2 totally 8 class; And the digital camera stepping of main flow is thinner at present; Is at interval with 1/3EV, then just have-2.0 ,-1.7 ,-1 ,-1.0 ,-0.7 ,-0.3 and+0.3 ,+0.7 ,+1.0 ,+1.3 ,+1.7 ,+totally 12 other offsets of level such as 2.0.
By and large, the scenery brightness contrast is more little, and it is accurate more to make public, otherwise then deviation strengthens.It is low that the class of camera has height to have, and class is high, and just relatively accurately, low then deviation also can strengthen in photometry.If traditional camera, the tolerance of film is bigger, and the deviation of exposure does not have big problem within the specific limits, but the CCD tolerance of digital camera is just smaller, and slight exposure bias all possibly influence whole effect.
In realizing process of the present invention, the inventor finds to exist in the prior art following shortcoming:
When exposure compensating is taken pictures or made a video recording usually, when forming image, carry out, for the post-processed underaction of image.
Summary of the invention
The embodiment of the invention provides a kind of method of regulating the image exposure effect, and the analogue camera exposure compensating is regulated the image exposure effect easily and quickly.
The embodiment of the invention provides a kind of method of regulating the image exposure effect, may further comprise the steps:
Preestablish the exposure bias value of image and the mapping table of exposure parameter;
Obtain the exposure bias value of user's input;
Exposure bias value and said mapping table according to said user's input obtain exposure parameter;
According to color space value after the adjusting of the original YUV color space value computed image of said exposure parameter and image.
Before the said exposure bias value that obtains user input, comprising:
Obtain image,
If the color space of said image is the YUV color space, then YUV color space value is said original YUV color space value, obtains the Y component value of said YUV color space;
If the non-YUV color space of color space of said image then converts non-YUV color space into the YUV color space, the YUV color space value after the conversion is said original YUV color space value, obtains the Y component value of said YUV color space.
Color space value after the adjusting of said original color space value computed image according to said exposure parameter and image comprises:
If K>0,
Y′=Y+(Y max-Y min)*K
If K<0,
Y′=Y-(Y max-Y min)*K
If K=0,
Y′=Y
Wherein, K is an exposure parameter, and Y ' is for regulating the Y component value of back YUV color space, and Y is the Y component value of original YUV color space value, Y MaxBe the maximum of YUV color space span, Y MinMinimum value for YUV color space span.
The exposure bias value of said image is-2.0 ,-1.7 ,-1.3 ,-1.0 ,-0.7 ,-0.3,0.3,0.7,1.0,1.3,1.7 and 2.0 totally 12 other exposure bias values of level.
Said exposure parameter is-1.0 ,-0.8 ,-0.6 ,-0.4 ,-0.2,0,0,0.2,0.4,0.8,1.0 totally 12 other exposure parameters of level.
Also comprise:
The Y component value span of said YUV color space is 16 to 235.
Also comprise:
To the said Y component value limit value of regulating back YUV color space,
If Y '>235 are 235 to Y ' limit value then;
If Y '<16 are 16 to Y ' limit value then;
Wherein, Y ' is for regulating the Y component value of back YUV color space, and Y is the Y component value of original YUV color space value.
In the embodiments of the invention,, regulate the brightness value of image, realized the adjusting of exposure effect in the image processing at the YUV color space through the analogue camera exposure bias value.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of regulating the image exposure effect in the embodiment of the invention;
Fig. 2 is a kind of particular flow sheet of regulating the method for image exposure effect in the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides a kind of method of regulating the image exposure effect, and is as shown in Figure 1, may further comprise the steps:
Step S101 preestablishes the exposure bias value of image and the mapping table of exposure parameter.
Step S102 obtains the exposure bias value of user's input.
Step S103, exposure bias value and the said mapping table imported according to said user obtain exposure parameter.
Step S104 is according to color space value after the adjusting of the original YUV color space value computed image of said exposure parameter and image.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through the analogue camera exposure bias value, regulate the brightness value of image at the YUV color space, realized the adjusting of exposure effect in the image processing.
The embodiment of the invention provides a kind of method of regulating the image exposure effect, and is as shown in Figure 2, may further comprise the steps:
Step S201 preestablishes the exposure bias value of image and the mapping table of exposure parameter;
The exposure bias value of said image is-2.0 ,-1.7 ,-1.3 ,-1.0 ,-0.7 ,-0.3,0.3,0.7,1.0,1.3,1.7 and 2.0 totally 12 other exposure bias values of level;
Said exposure parameter is-1.0 ,-0.8 ,-0.6 ,-0.4 ,-0.2,0,0,0.2,0.4,0.8,1.0 totally 12 other exposure parameters of level;
Said mapping table is as shown in table 1:
Exposure bias value -2.0 -1.7 -1.3 -1.0 -0.7 -0.3 0.3 0.7 1.0 1.3 1.7 2.0
Exposure parameter -1.0 -0.8 -0.6 -0.4 -0.2 0 0 0.2 0.4 0.6 0.8 1.0
Table 1
Step S202 obtains image, converts the color space of said image into the YUV color space, comprising:
If the color space of said image is the YUV color space, then YUV color space value is said original YUV color space value, obtains the Y component value of said YUV color space;
If the non-YUV color space of color space of said image then converts non-YUV color space into the YUV color space, the YUV color space value after the conversion is said original YUV color space value, obtains the Y component value of said YUV color space;
Said non-YUV color space can be rgb color space or HSL/HSV color space.
Step S203 obtains the exposure bias value of user's input;
Step S204, exposure bias value and the said mapping table imported according to said user obtain exposure parameter;
Step S205 according to color space value after the adjusting of the original YUV color space value computed image of said exposure parameter and image, comprising:
If K>0,
Y′=Y+(Y max-Y min)*K
If K<0,
Y′=Y-(Y max-Y min)*K
If K=0,
Y′=Y
Wherein, K is an exposure parameter, and Y ' is for regulating the Y component value of back YUV color space, and Y is the Y component value of original YUV color space value, Y MaxBe the maximum of YUV color space span, Y MinMinimum value for YUV color space span;
Wherein, the Y component value span of said YUV color space can be 16 to 235;
To the said Y component value limit value of regulating back YUV color space,
If Y '>235 are 235 to Y ' limit value then;
If Y '<16 are 16 to Y ' limit value then;
Wherein, Y ' is for regulating the Y component value of back YUV color space, and Y is the Y component value of original YUV color space value.
The beneficial effect that the technical scheme of the embodiment of the invention is brought is following: through the analogue camera exposure bias value, regulate the brightness value of image at the YUV color space, realized the adjusting of exposure effect in the image processing.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform; Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
In a word, the above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. a method of regulating the image exposure effect is characterized in that, may further comprise the steps:
Preestablish the exposure bias value of image and the mapping table of exposure parameter;
Obtain the exposure bias value of user's input;
Exposure bias value and said mapping table according to said user's input obtain exposure parameter;
According to color space value after the adjusting of the original YUV color space value computed image of said exposure parameter and image.
2. a kind of according to claim 1 method of regulating the image exposure effect is characterized in that, before the said exposure bias value that obtains user input, comprising:
Obtain image,
If the color space of said image is the YUV color space, then YUV color space value is said original YUV color space value, obtains the Y component value of said YUV color space;
If the non-YUV color space of color space of said image then converts non-YUV color space into the YUV color space, the YUV color space value after the conversion is said original YUV color space value, obtains the Y component value of said YUV color space.
3. like the said a kind of method of regulating the image exposure effect of claim 2, it is characterized in that color space value after the adjusting of said original color space value computed image according to said exposure parameter and image comprises:
If K>0,
Y′=Y+(Y max-Y min)*K
If K<0,
Y′=Y-(Y max-Y min)*K
If K=0,
Y′=Y
Wherein, K is an exposure parameter, and Y ' is for regulating the Y component value of back YUV color space, and Y is the Y component value of original YUV color space value, Y MaxBe the maximum of YUV color space span, Y MinMinimum value for YUV color space span.
4. a kind of according to claim 1 method of regulating the image exposure effect; It is characterized in that the exposure bias value of said image is-2.0 ,-1.7 ,-1.3 ,-1.0 ,-0.7 ,-0.3,0.3,0.7,1.0,1.3,1.7 and 2.0 totally 12 other exposure bias values of level.
5. a kind of according to claim 1 method of regulating the image exposure effect is characterized in that, said exposure parameter is-1.0 ,-0.8 ,-0.6 ,-0.4 ,-0.2,0,0,0.2,0.4,0.8,1.0 totally 12 other exposure parameters of level.
6. like the said a kind of method of regulating the image exposure effect of claim 3, it is characterized in that, comprising:
The Y component value span of said YUV color space is 16 to 235.
7. like the said a kind of method of regulating the image exposure effect of claim 6, it is characterized in that, also comprise:
To the said Y component value limit value of regulating back YUV color space,
If Y '>235, then Y ' limit value is 235;
If Y '<16, then Y ' limit value is 16;
Wherein, Y ' is for regulating the Y component value of back YUV color space, and Y is the Y component value of original YUV color space value.
CN201110392192.1A 2011-11-30 2011-11-30 A kind of method for adjusting image exposure effect Active CN102752512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110392192.1A CN102752512B (en) 2011-11-30 2011-11-30 A kind of method for adjusting image exposure effect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110392192.1A CN102752512B (en) 2011-11-30 2011-11-30 A kind of method for adjusting image exposure effect

Publications (2)

Publication Number Publication Date
CN102752512A true CN102752512A (en) 2012-10-24
CN102752512B CN102752512B (en) 2017-06-13

Family

ID=47032394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110392192.1A Active CN102752512B (en) 2011-11-30 2011-11-30 A kind of method for adjusting image exposure effect

Country Status (1)

Country Link
CN (1) CN102752512B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208281A (en) * 2015-10-09 2015-12-30 广东欧珀移动通信有限公司 Night scene shooting method and device
CN105516702A (en) * 2015-12-18 2016-04-20 无锡天脉聚源传媒科技有限公司 Mapping method and device of color space
WO2020057198A1 (en) * 2018-09-20 2020-03-26 Oppo广东移动通信有限公司 Image processing method and device, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797166A (en) * 2004-12-30 2006-07-05 矽统科技股份有限公司 Method for controlling exposure system
CN1984260A (en) * 2005-12-14 2007-06-20 凌阳科技股份有限公司 Method for automatically controlling exposure and device for automatically compensating exposure
JP2007235786A (en) * 2006-03-03 2007-09-13 Sony Corp Imaging apparatus, exposure control method, and computer program
CN101166240A (en) * 2006-10-19 2008-04-23 索尼株式会社 Image processing device, image forming device and image processing method
CN101262567A (en) * 2008-04-07 2008-09-10 北京中星微电子有限公司 Automatic exposure method and device
CN101534453A (en) * 2008-12-12 2009-09-16 昆山锐芯微电子有限公司 Method for controlling automatic exposure, image processor and optical imaging device
CN101651775A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Image capture device and exposure method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1797166A (en) * 2004-12-30 2006-07-05 矽统科技股份有限公司 Method for controlling exposure system
CN1984260A (en) * 2005-12-14 2007-06-20 凌阳科技股份有限公司 Method for automatically controlling exposure and device for automatically compensating exposure
JP2007235786A (en) * 2006-03-03 2007-09-13 Sony Corp Imaging apparatus, exposure control method, and computer program
CN101166240A (en) * 2006-10-19 2008-04-23 索尼株式会社 Image processing device, image forming device and image processing method
CN101262567A (en) * 2008-04-07 2008-09-10 北京中星微电子有限公司 Automatic exposure method and device
CN101651775A (en) * 2008-08-14 2010-02-17 鸿富锦精密工业(深圳)有限公司 Image capture device and exposure method thereof
CN101534453A (en) * 2008-12-12 2009-09-16 昆山锐芯微电子有限公司 Method for controlling automatic exposure, image processor and optical imaging device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208281A (en) * 2015-10-09 2015-12-30 广东欧珀移动通信有限公司 Night scene shooting method and device
CN105516702A (en) * 2015-12-18 2016-04-20 无锡天脉聚源传媒科技有限公司 Mapping method and device of color space
WO2020057198A1 (en) * 2018-09-20 2020-03-26 Oppo广东移动通信有限公司 Image processing method and device, electronic device and storage medium

Also Published As

Publication number Publication date
CN102752512B (en) 2017-06-13

Similar Documents

Publication Publication Date Title
WO2020034737A1 (en) Imaging control method, apparatus, electronic device, and computer-readable storage medium
Hasinoff et al. Noise-optimal capture for high dynamic range photography
TWI433533B (en) Image capturing device and image synthesis method thereof
CN103780840B (en) Two camera shooting image forming apparatus of a kind of high-quality imaging and method thereof
US7791655B2 (en) Imaging apparatus with function of shading compensation
US20130002941A1 (en) Method of controlling adaptive auto exposure based on adaptive region weight
US8605106B2 (en) Projector and color improvement method of the projector
CN103200409B (en) Color correction method of multi-projector display system
JP2017112461A (en) Imaging device and control method, program thereof, and storage medium
CN101904166A (en) Camera using preview image to select exposure
CN103491357A (en) Auto white balance treatment method of image sensor
CN101600121A (en) A kind of computational methods of white balance correct value
US20040145674A1 (en) System and method for continuous flash
KR102144390B1 (en) Image processing device and method to perform local contrast enhancement
CN105898152A (en) Method and system for restoring ambient light luminance on image
WO2020181483A1 (en) Camera control method and apparatus
US20090021603A1 (en) Exposure adjustment methods and systems
US8279308B1 (en) Optimized log encoding of image data
CN102752512A (en) Method for adjusting image exposure effects
JP2002354244A (en) Method for compensating digital image for light falloff while minimizing light balance change
US20070110427A1 (en) Method of exposure compensation
CN106134181A (en) Photographic attachment
CN104965376B (en) The adjusting method and system of a kind of terminal camera flash lamp
TWI524279B (en) Image capturing device and method for shading compensation thereof
CN1878245A (en) Method for correcting digital image exposure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant