CN104717430B - Image processing method and image processing apparatus - Google Patents

Image processing method and image processing apparatus Download PDF

Info

Publication number
CN104717430B
CN104717430B CN201310687003.2A CN201310687003A CN104717430B CN 104717430 B CN104717430 B CN 104717430B CN 201310687003 A CN201310687003 A CN 201310687003A CN 104717430 B CN104717430 B CN 104717430B
Authority
CN
China
Prior art keywords
image
mentioned
unit
value
storage element
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
CN201310687003.2A
Other languages
Chinese (zh)
Other versions
CN104717430A (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.)
Asustek Computer Inc
Original Assignee
Asustek Computer Inc
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 Asustek Computer Inc filed Critical Asustek Computer Inc
Priority to CN201310687003.2A priority Critical patent/CN104717430B/en
Publication of CN104717430A publication Critical patent/CN104717430A/en
Application granted granted Critical
Publication of CN104717430B publication Critical patent/CN104717430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

A kind of image processing apparatus includes an image unit, a control unit, an image process unit and a storage element.Image unit obtains one first image.Control unit adjusts the exposure value of image unit, to control the contrast value of the dark portion average brightness value of the first image and the first image.Image process unit couples with image unit and storage element, and the first algorithm being stored according to the first image and one in storage element produces one second image, and the second algorithm being stored according to the first image and one in storage element produces one the 3rd image.Image process unit produces one the 4th image according to the brightness value of the first image, the brightness value of the second image, the brightness value of the 3rd image and a weight array.The present invention can avoid the image because shooting multiple different exposure values, and the problem of the committed memory space of generation, and avoid because multiple presentation contents are inconsistent, and cause the incomplete problem of image of output, and reach to produce in real time simultaneously and intend high dynamic-range image.

Description

Image processing method and image processing apparatus
Technical field
The present invention intends high dynamic on a kind of image processing method and image processing apparatus especially in regard to a kind of obtain in real time Image processing method and image processing apparatus.
Background technology
In recent years, photography has turned into one of important interest of modern.The either built-in camera of notebook computer, flat board The built-in camera of computer or the built-in camera of mobile phone, people are for wanting to take whenever and wherever possible the serious hope of fine things increasingly It is high.However, the environment at not any moment is all adapted to take pictures.Insufficient light, backlight or ambient brightness arround are height Contrast (part in environment simultaneously with high brightness and extremely low brightness), captured image out will be limited to camera sheet The hardware of body, and original appearance originally can not be showed.
In the prior art, high dynamic range imaging (High dynamic range;HDR it is) for realizing than common number Word image technique more makes a kind of technology of optical dynamic range public, and it is shot by a variety of different exposure values and produces multiple Image, then the mode that the image of these different exposure values is merged, and export the image of an optimization.However, multiple shadows As in addition to taking more storage area, because high dynamic range imaging need to use multiple exposure values, will so reduce The speed of image procossing.In addition, mode used by high dynamic range imaging, is with different exposure values, to same in different time One place is shot.If not arranging in pairs or groups foot stool or other fixing devices during shooting, it is very easy to that multiple presentation contents occur Inconsistent, the image for causing fusion to export has ghost or the incomplete problem of picture.
The content of the invention
The present invention provides a kind of image processing method, for image processing apparatus.Image processing apparatus include image unit, Control unit, image process unit and storage element.Image processing method comprises the following steps:One the is obtained by image unit One image, wherein control unit adjust the exposure value of image unit, to control the dark portion average brightness value and first of the first image The contrast value of image;Image process unit produces one the according to the first image and one first algorithm that is stored in storage element Two images;Image process unit produces one the 3rd image according to the first image and one second algorithm being stored in storage element; And image process unit is according to the brightness value of the first image, the brightness value of the second image, the brightness value of the 3rd image and a power Principal matrix row produce one the 4th image.
The present invention also provides a kind of image processing apparatus, including an image unit, a control unit, an image process unit An and storage element.Image unit obtains one first image.Control unit couples with image unit, and adjusts the exposure of image unit Light value, to control the contrast value of the dark portion average brightness value of the first image and the first image.Storage element and control unit coupling Connect.Image process unit couples with image unit, and according to the first image and one first algorithm being stored in storage element production Raw one second image, and produce one the 3rd image according to the first image and one second algorithm being stored in storage element.Image Processing unit is according to the brightness value of the first image, the brightness value of the second image, the brightness value of the 3rd image and weight array production Raw one the 4th image.
Therefore, the image of the invention that can be avoided because shooting multiple different exposure values, and the committed memory space of generation Problem, and avoid because multiple presentation contents are inconsistent, and cause the incomplete problem of image of output, and reach real-time production simultaneously It is raw to intend high dynamic-range image.
Brief description of the drawings
Fig. 1 is a kind of schematic appearance of image processing apparatus of one embodiment of the invention.
Fig. 2 is a kind of internal structure schematic diagram of image processing apparatus of one embodiment of the invention.
Fig. 3 is a kind of flow chart of image processing method of one embodiment of the invention.
Embodiment
Hereinafter with reference to correlative type, illustrate a kind of image processing method and image procossing according to present pre-ferred embodiments Device, wherein identical element will be illustrated with identical reference marks.
Fig. 1 is the schematic appearance of the image processing apparatus of an embodiment of one embodiment of the invention.It refer to Fig. 1 institutes Show, in the present embodiment, image processing apparatus 11 is the tablet personal computer for being equipped with image unit 111.So, the present invention not as Limit.In other embodiment aspects, image processing apparatus be alternatively notebook computer, intelligent mobile phone, multimedia video and audio device, Portable electronic game device or other portable electronic devices for being equipped with camera lens.In addition, image processing apparatus also may be used By be for monitoring monitoring device or save from damage camera chain fixed setting in the form of electronic installation or system.
Fig. 2 is refer to, it is a kind of internal structure schematic diagram of image processing apparatus of one embodiment of the invention.At image Reason device 21 includes an image unit 211, a control unit 212, an image process unit 213 and a storage element 214.Shooting Unit 211 obtains one first image according to the operation of user.Control unit 212 couples with image unit 211, and adjusts shooting The exposure value (Exposure Value) of unit 211, to control pair of the dark portion average brightness value of the first image and the first image Compare angle value.
Specifically, control unit 212 controls the exposure value of image unit 211, so that the acquired by image unit 211 The dark portion average brightness value of one image makes the contrast value of the first image between image unit 211 between 30 to 40 Between the 80% to 90% of built-in contrast value.Wherein, it is beneficial to through the first image caused by above-mentioned parameter follow-up Image procossing.
Image process unit 213 couples with image unit 211, storage element 214 and control unit 212 and image processing list Member 213 couples.Image process unit 213 is according to the first image acquired by image unit 211 and is stored in storage element 214 One first algorithm produce one second image, and according to the first image and one second algorithm that is stored in storage element 214 Produce one the 3rd image.In addition, image process unit 213 is by according to the brightness value of the first image, the brightness value of the second image, the The brightness value of three images and a weight array produce one the 4th image.In the present embodiment, image process unit 213 is according to storage The first algorithm in storage element 214 heightens the brightness of each pixel of the first image, and produces the second image, and image processing Unit 213 heightens the contrast of the first image according to the second algorithm being stored in storage element 214, particularly heightens region picture The contrast of element, to produce the 3rd image.
It is to be carried out with control unit 212 and image process unit 213 for two separately positioned elements in the present embodiment Illustrate, but in other embodiment aspects, control unit 212 and image process unit 213 by can according to circuit layout and set Count and be integrated into a solid memder.
In addition, in the present embodiment, weight array is the default-weight array for being stored in storage element 214.Wherein, weigh Principal matrix row can be one group of numerical value being stored in storage element 214, be, for example,:(1/3,1/3,1/3).Specifically, The quantity of stored weight array can be according to the demand of product and the design of image procossing in storage element 214, and stores one Group weight array or multigroup weight array.When storing multigroup weight array in storage element 214, image process unit 213 by can be according to the difference of exposal model, and selects different weight arrays.For example, image processing apparatus 21 can more have There is user's operation interface 215, it can provide a variety of screening-modes and be selected to user, be, for example,:Night, cigarette Fiery pattern, outdoor daylight mode or outdoor artificial light source pattern etc., and the corresponding foregoing different screening-modes of storage element 214 And there is different weight arrays.When user selects one of which screening-mode, image process unit 213 i.e. can be from storage Corresponding weight array is chosen in unit 214.In addition, image processing apparatus 21 can also include a sensing unit, (figure does not show Show), it can sense the condition of external environment condition, the e.g. brightness of prospect and the brightness of background, and the result sensed is provided To image process unit 213, so that image process unit 213 voluntarily chooses one group of weight array according to sensing result.In addition, In other embodiment aspects, weight array is alternatively the weight array of an outside input, that is to say, that user, which can pass through, to be used Person's operation interface 215 inputs required weight array, so that user can adjust the effect of image according to its demand and hobby.
Then, Fig. 3 flow chart is refer to, and is arranged in pairs or groups shown in Fig. 2, to illustrate the image procossing of present pre-ferred embodiments Method, it can be applied to above-mentioned image processing apparatus 21.The step of image processing method, includes step S01~S04.Step S01 obtains one first image by image unit 211, and wherein control unit 212 adjusts the exposure value of image unit 211, with control Make the dark portion average brightness value of the first image and the contrast value of the first image.
Specifically, control unit 212 controls the exposure value of image unit 211, so that the dark portion of the first image is average bright Angle value makes the contrast value of the first image between the 80% of the built-in contrast value of image unit 211 between 30 to 40 To between 90%.In the present embodiment, the photographic parameter of image unit 211 is controlled through control unit 212, is beneficial to so as to produce First image of successive image processing.
Step S02 is produced by image process unit 213 according to the first image and the first algorithm being stored in storage element 214 Raw second image.In the present embodiment, after image unit 211 obtains preferable first image, it will it is temporarily stored up Exist in storage element 214.Simultaneously, image process unit 213 will pass through the first algorithm at the first image Reason.Wherein, image process unit 213 will heighten the brightness of each pixel of the first image according to the first algorithm, and produce the second shadow Picture.On the implementation, image process unit 213 can be according to the original luminance value of each pixel of the first image, and has different proportion Adjustment, e.g. when the original brightness of pixel is equal to or less than a default value, then carry out the fortune of first function (function) Calculate, give higher brightness adjustment ratio, and when the original brightness of pixel is greater than this default value, then transported using second function Calculate, give relatively low brightness adjustment ratio.In addition, the first foregoing algorithm can also be the original for each pixel of the first image Beginning brightness all uses identical operation function, to heighten the brightness of each pixel.In the present embodiment, the first algorithm can be for example width Dynamic range is imaged (Wide dynamic range;WDR) algorithm, and handle through image process unit 213 and caused second Image can be temporarily stored into storage element 214.
Step S03 is by image process unit 213 according to the first image and one second algorithm being stored in storage element 214 Produce one the 3rd image.In the present embodiment, image process unit 213 will be by the second algorithm at the first image Reason, to heighten the contrast of the first image, the region contrast of (reinforcing) first image is particularly heightened, and produce the 3rd shadow Picture.Wherein, image process unit 213 can analyze the brightness of the prospect of the first image and the brightness of background, and adjust prospect brightness With the ratio of background luminance, and the second algorithm can be for example partial histogram equalization (Contrast-Limited Adaptive Histogram Equalization;CLAHE) algorithm, and handled through image process unit 213 and caused 3rd image can It is temporarily stored into storage element 214.Now, the number such as the first image, the second image and the 3rd image will be stored in storage element 214 According to.
Step S04 is by image process unit 213 according to the brightness value of the first image, the brightness value of the second image, the 3rd shadow The brightness value of picture and a weight array produce one the 4th image.In the present embodiment, image process unit 213 by the first image, Second image and the 3rd image extract from storage element 214, and foundation is stored in the weight array of storage element 214, The brightness of brightness, the second image to the first image and the brightness of the 3rd image carry out weight calculation, after obtaining three's mixing The 4th image.For example, when the weight array for being stored in storage element 214, it is, for example, (1/3,1/3,1/3), and assume The brightness value of first image be the brightness value of the 40, second image be 100 and the 3rd the brightness value of image be 80, via foregoing power After principal matrix column count, the brightness value of the 4th image is then 70 (40 × 1/3+100 × 1/3+80 × 1/3=70).Only, it is described above Numerical value and calculation be to be carried out for corresponding pixel (Pixel) between the first image, the second image and the 3rd shade Computing.By pixel all in each image after above-mentioned weight calculation, you can the 4th image is produced, and the 4th image namely passes through The handled plan high dynamic-range image completed of image processing method described in the present embodiment.In addition, the 4th image will can pass through Image process unit 213 is exported to a display unit (figure do not show), is viewed and admired or is confirmed to provide user.Implement in others In aspect, weight array by can be an outside input weight array, that is to say, that user can pass through user operation interface Weight array needed for 215 inputs.
In addition, via caused 4th image after weight calculation, the adjustment of other thin portions can will be again carried out, such as:It is soft Change processing, Edge contrast or other image procossings, make the image of final output more perfect, and export to display unit.So, it is preceding The further image adjustment stated or parameter adjust number can be according to the situation of actual use, and have different extra process, Yu Benfa It is not limited in bright.
It need to remark additionally, in above-mentioned step, step S02 and step S03 are in the limit that sequencing is had no in implementation System.In other words, step S02 can be first carried out before step S03 or step S03 can prior to step S02 perform or step S02 with Step S03 can be carried out simultaneously.It is to be with step S02 and step S03 in the present embodiment to accelerate the speed of image procossing Carry out simultaneously exemplified by.
In summary, it is to pass through image unit because of a kind of image processing method and image processing apparatus according to the present invention One first image, and the exposure value of control unit adjustment image unit are obtained, to control the dark portion average brightness value of the first image And first image contrast value, thus the present invention image processing method and image processing method only need shooting one it is original Image, and raw video is that have preferable treatment conditions, therefore the image because shooting multiple different exposure values can be avoided, and The problem of producing committed memory space, and avoid because multiple presentation contents are inconsistent, and cause the image of output is incomplete to ask Topic, and reach to produce in real time simultaneously and intend high dynamic-range image.
Although the present invention is disclosed above with embodiment, so it is not limited to the present invention, any art Middle tool usually intellectual, without departing from the spirit and scope of the present invention, when a little change and retouching can be made, thus it is of the invention Protection domain when being defined depending on those as defined in claim.

Claims (8)

1. a kind of image processing method, for image processing apparatus, above-mentioned image processing apparatus includes image unit, control list Member, image process unit and storage element, above-mentioned image processing method comprise the following steps:
First image is obtained by above-mentioned image unit, wherein above-mentioned control unit adjusts the exposure value of above-mentioned image unit, with Control the dark portion average brightness value of above-mentioned first image and the contrast value of above-mentioned first image;
Above-mentioned image process unit is heightened above-mentioned according to above-mentioned first image and the first algorithm being stored in above-mentioned storage element The brightness of each pixel of first image, to produce the second image;
Above-mentioned image process unit is heightened above-mentioned according to above-mentioned first image and the second algorithm being stored in above-mentioned storage element The region contrast of first image, to produce the 3rd image;And
Above-mentioned image process unit is according to the brightness value of above-mentioned first image, the brightness value of above-mentioned second image, above-mentioned 3rd shadow The brightness value and weight array of picture produce the 4th image.
2. image processing method according to claim 1, wherein above-mentioned control unit adjusts the exposure of above-mentioned image unit Value, makes the dark portion average brightness value of above-mentioned first image between 30 to 40, and the contrast value of above-mentioned first image is situated between Between the 80% to 90% of the built-in contrast value of above-mentioned image unit.
3. image processing method according to claim 1, wherein above-mentioned weight array is to be stored in above-mentioned storage element Default-weight array.
4. image processing method according to claim 1, wherein the weight array that above-mentioned weight array is an externally input.
5. image processing method according to claim 1, further comprising the steps of:
Softening processing is carried out to above-mentioned 4th image.
6. image processing method according to claim 1, further comprising the steps of:
Processing is sharpened to above-mentioned 4th image.
7. a kind of image processing apparatus, including:
Image unit, obtain the first image;
Control unit, coupled with above-mentioned image unit, and adjust the exposure value of above-mentioned image unit, to control above-mentioned first image Dark portion average brightness value and above-mentioned first image contrast value;
Storage element, coupled with above-mentioned control unit;And
Image process unit, couple with above-mentioned image unit and above-mentioned storage element, and according to above-mentioned first image and be stored in The first algorithm in above-mentioned storage element heightens the brightness of each pixel of above-mentioned first image, to produce the second image, and foundation Above-mentioned first image and the second algorithm being stored in above-mentioned storage element heighten the region contrast of above-mentioned first image, with production Raw 3rd image;
Wherein above-mentioned image process unit is according to the brightness value of above-mentioned first image, the brightness value of above-mentioned second image, above-mentioned The brightness value and weight array of three images produce the 4th image.
8. image processing apparatus according to claim 7, wherein above-mentioned control unit adjusts the exposure of above-mentioned image unit Value, makes the dark portion average brightness value of above-mentioned first image between 30 to 40, and the contrast value of above-mentioned first image is situated between Between the 80% to 90% of the built-in contrast value of above-mentioned image unit.
CN201310687003.2A 2013-12-16 2013-12-16 Image processing method and image processing apparatus Active CN104717430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310687003.2A CN104717430B (en) 2013-12-16 2013-12-16 Image processing method and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310687003.2A CN104717430B (en) 2013-12-16 2013-12-16 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
CN104717430A CN104717430A (en) 2015-06-17
CN104717430B true CN104717430B (en) 2017-11-28

Family

ID=53416332

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310687003.2A Active CN104717430B (en) 2013-12-16 2013-12-16 Image processing method and image processing apparatus

Country Status (1)

Country Link
CN (1) CN104717430B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950499B (en) * 2021-02-24 2023-11-28 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841631A (en) * 2009-03-20 2010-09-22 微星科技股份有限公司 Shadow exposure compensation method and image processing device using same
CN102905058A (en) * 2011-07-28 2013-01-30 三星电子株式会社 Apparatus and method for generating high dynamic range image from which ghost blur is removed

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI464706B (en) * 2009-03-13 2014-12-11 Micro Star Int Co Ltd Dark portion exposure compensation method for simulating high dynamic range with single image and image processing device using the same
US8508632B2 (en) * 2010-10-15 2013-08-13 Altek Corporation Image processing method of obtaining a high dynamic range image

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841631A (en) * 2009-03-20 2010-09-22 微星科技股份有限公司 Shadow exposure compensation method and image processing device using same
CN102905058A (en) * 2011-07-28 2013-01-30 三星电子株式会社 Apparatus and method for generating high dynamic range image from which ghost blur is removed

Also Published As

Publication number Publication date
CN104717430A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN104050651B (en) A kind of processing method and processing device of scene image
CN104869320B (en) Electronic equipment and controlling electronic devices operating method
US8531573B2 (en) Digital camera and operating method thereof
US9571743B2 (en) Dynamic exposure adjusting method and electronic apparatus using the same
TWI433533B (en) Image capturing device and image synthesis method thereof
WO2014131358A1 (en) Shooting method and apparatus of electronic device, and electronic device
CN104869319B (en) Image treatment method and image processor
US11825179B2 (en) Auto exposure for spherical images
US20080259007A1 (en) Method for dynamically adjusting brightness of image
WO2022127611A1 (en) Photographing method and related device
US20220329729A1 (en) Photographing method, storage medium and electronic device
CN104167196A (en) Backlight brightness adjusting method and device and electronic device
US20240273909A1 (en) Camera shooting parameter adjustment method and apparatus, and electronic device
US20080094481A1 (en) Intelligent Multiple Exposure
CN108540636A (en) A kind of photographic method and device based on dual camera
TWI604413B (en) Image processing method and image processing device
US10009545B2 (en) Image processing apparatus and method of operating the same
CN104717430B (en) Image processing method and image processing apparatus
WO2023131028A1 (en) Image processing method and related device
CN104917968B (en) The method of adjustment and device of image boundary of taking pictures intensity
CN111866401A (en) Shooting method and device and electronic equipment
TWI410128B (en) Digital camera and operating method thereof
US20240331103A1 (en) Method for training light filling model, image processing method, and related device thereof
WO2024113162A1 (en) Luminance compensation method and apparatus, device, and storage medium
CN115514947B (en) Algorithm for automatic white balance of AI (automatic input/output) and electronic equipment

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