CN105872148A - Method and mobile terminal for generating high dynamic range images - Google Patents

Method and mobile terminal for generating high dynamic range images Download PDF

Info

Publication number
CN105872148A
CN105872148A CN201610466210.9A CN201610466210A CN105872148A CN 105872148 A CN105872148 A CN 105872148A CN 201610466210 A CN201610466210 A CN 201610466210A CN 105872148 A CN105872148 A CN 105872148A
Authority
CN
China
Prior art keywords
image
exposure
time
value
product
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
CN201610466210.9A
Other languages
Chinese (zh)
Other versions
CN105872148B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610466210.9A priority Critical patent/CN105872148B/en
Publication of CN105872148A publication Critical patent/CN105872148A/en
Application granted granted Critical
Publication of CN105872148B publication Critical patent/CN105872148B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computing Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The invention provides a method and a mobile terminal for generating high dynamic range images. The mobile terminal comprises a first camera and a second camera. The method includes acquiring first images acquired by the first camera for shooting objects in first exposure time and acquiring second images and third images which are sequentially acquired by the second camera for the shooting objects in the first exposure time; carrying out image processing on the first images, the second images and the third images to generate the target high dynamic range images. The first images, the second images and the third images respectively are a type of normal exposure images, over-exposure images and under-exposure images. The method and the mobile terminal in an embodiment of the invention have the advantages that image processing is carried out according to the over-exposure images, the under-exposure images and the normal exposure images, accordingly, high dynamic range effects can be realized by each outputted image, and shooting experience can be enhanced for users.

Description

A kind of generation method of high dynamic range images and mobile terminal
Technical field
The present invention relates to communication technical field, particularly relate to generation method and the shifting of a kind of high dynamic range images Dynamic terminal.
Background technology
HDR (High-Dynamic Range, HDR) is compared to common image, it is provided that more Many dynamic ranges and image detail, and the image that human eye is seen is relatively.Existing HDR technology one As embodiment be: open camera and be switched to HDR pattern, run acquiescence 3A algorithm, click on clap According to, different EV (Exposure Values, exposure value) is set, captures the original of a normal exposure RAW data, the RAW data of an overexposure, owe the RAW data exposed, believe subsequently into image for one Number processing procedure, gets the yuv data of a normal exposure, the yuv data of an overexposure, and one Open the yuv data owing to expose, use HDR algorithm one yuv data of synthesis, and use jpeg format Compression preserves.
Single photographic head is owing to can not obtain normal exposure, overexposure and owing the view data exposed, therefore only simultaneously Different exposure values can be set taking pictures when respectively, capture the view data of difference exposure the most successively, Then the synthesis of HDR algorithm is realized.The effect of HDR cannot be presented in real time to user preview when.
Summary of the invention
The embodiment of the present invention provides generation method and the mobile terminal of a kind of high dynamic range images, to solve The problem that cannot present HDR effect image in real time when preview image in prior art.
First aspect, the embodiment of the present invention provides a kind of generation method of high dynamic range images, is applied to move Dynamic terminal, mobile terminal includes the first photographic head and second camera, and the method includes:
Obtain the first image that reference object is gathered at the first time of exposure by the first photographic head, and obtain second The second image that reference object is gathered in the first time of exposure by photographic head successively and the 3rd image;
First image, the second image and the 3rd image are carried out image procossing, generates target HDR figure Picture;
Wherein, the first image, the second image and the 3rd image be respectively normal exposure image, overexposure image and Owe to expose the one in image.
Second aspect, the embodiment of the present invention also provides for a kind of mobile terminal, and mobile terminal includes the first photographic head And second camera, mobile terminal also includes:
Acquisition module, for obtaining the first figure that reference object is gathered by the first photographic head at the first time of exposure Picture, and obtain the second image and that reference object is gathered in the first time of exposure by second camera successively Three images;
Processing module, carries out figure for the first image, the second image and the 3rd image obtaining acquisition module As processing, generate target high dynamic range images;
Wherein, the first image, the second image and the 3rd image be respectively normal exposure image, overexposure image and Owe to expose the one in image.
So, in the embodiment of the present invention, dual camera is used to obtain overexposure in the first time of exposure, owe to expose With the image of normal exposure, according to three images, use high dynamic range images algorithm composograph information, Obtain present frame output image, it is possible to achieve each frame output image is all by high dynamic range images algorithm The image of synthesis, each frame output image all carries the effect of HDR, and makes user in shooting During, the high dynamic range images effect that preview is seen is exactly the effect of final shooting, promotes the bat of user Take the photograph experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, the embodiment of the present invention will be described below The accompanying drawing used required in is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, are not paying creative work Under premise, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 represents the flow chart of the generation method of the high dynamic range images of the embodiment of the present invention one;
Fig. 2 represents the flow chart of the generation method of the high dynamic range images of the embodiment of the present invention two;
Fig. 3 represents the flow chart of the generation method of the high dynamic range images of the embodiment of the present invention two;
Fig. 4 represents one of structure chart of mobile terminal of the embodiment of the present invention three;
Fig. 5 represents the two of the structure chart of the mobile terminal of the embodiment of the present invention three;
Fig. 6 represents the three of the structure chart of the mobile terminal of the embodiment of the present invention three;
Fig. 7 represents the structured flowchart of the mobile terminal of the embodiment of the present invention four;
Fig. 8 represents the structured flowchart of the mobile terminal of the embodiment of the present invention five.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention rather than all Embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative labor The every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
Embodiment one
As it is shown in figure 1, the embodiment of the present invention one provides a kind of generation method of high dynamic range images, application In mobile terminal, mobile terminal includes the first photographic head and second camera, and the method includes:
Step 101, obtain the first image that reference object is gathered by the first photographic head at the first time of exposure, And obtain the second image and the 3rd that reference object is gathered in the first time of exposure by second camera successively Image.
When the preview interface entering shooting being detected, need to send parameter configuration letter respectively to two photographic head Breath so that the first photographic head, in the first time of exposure, obtains for the first image of reference object, second Photographic head, in the first time of exposure, obtains the second image for reference object and the 3rd image.Wherein two The exposure of the these three image that individual photographic head obtains is different, and these three image is for same reference object Image.And these three image is respectively overexposure image, normal exposure image and owes to expose the one in image.
Step 102, the first image, the second image and the 3rd image are carried out image procossing, generate target high Dynamic image.
After obtaining the first image, the second image and the 3rd image, use height dynamic for these three image State range image algorithm carrys out composograph information, generates target high dynamic range images.The image wherein synthesized Information can show in preview interface so that user can be with live preview shooting effect, and preview The effect of the target high dynamic range images that the effect of shooting namely ultimately generates, improves user's Shooting is experienced.
The generation method of the high dynamic range images of the embodiment of the present invention, uses dual camera when first exposes Interior acquisition overexposure, deficient exposure and the image of normal exposure, according to three images, use high dynamic range images Algorithm composograph information, it is thus achieved that present frame output image, it is possible to achieve each frame output image is all by The image of high dynamic range images algorithm synthesis, each frame output image all carries the effect of HDR, And making user during shooting, the high dynamic range images effect that preview is seen finally shoots Effect, the shooting promoting user is experienced.
Embodiment two
As in figure 2 it is shown, the embodiment of the present invention two provides a kind of generation method of high dynamic range images, application In mobile terminal, mobile terminal includes the first photographic head and second camera, and the method includes:
Step 201, obtain the first image that reference object is gathered by the first photographic head at the first time of exposure, And obtain the second image and the 3rd that reference object is gathered in the first time of exposure by second camera successively Image.
When the preview interface entering shooting being detected, need to send parameter configuration letter respectively to two photographic head Breath, includes aperture, exposure in the parameter configuration sent respectively to the first photographic head and second camera Duration and exposure gain.Wherein send the first parameter configuration to the first photographic head, send out to second camera Send the second parameter configuration and the 3rd parameter configuration, and these three parameter configuration differs.
First photographic head, obtains for reference object according to the first parameter configuration in the first time of exposure The first image, second camera exposes first according to the second parameter configuration and the 3rd parameter configuration In the light time, obtain the second image for reference object and the 3rd image.Two of which photographic head obtains The exposure of these three image is different, and these three image is the image for same reference object.And these three Image is respectively overexposure image, normal exposure image and owes to expose the one in image.
Classification with regard to three kinds of images once elaborates below:
Situation one: the first image is overexposure image, and the second image is normal exposure image, and the 3rd image is Owe to expose image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.First aperture F value of the first photographic head and the second aperture F value value phase of second camera With, the first time of exposure of the first image and the product is the second image second exposure of the first exposure gain N times of the product of time and the second exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposure increase Second time of exposure that product is the second image of benefit and 1/N times of product of the second exposure gain, wherein, The span of N is 2≤N≤4.
Such as: in the first aperture F value and the second aperture F value value of second camera of the first photographic head Time identical, first photographic head output overexposure the first image, and the first time of exposure be S, first exposure increase Benefit is iso, and second camera exports the second image of normal exposure in the time of S respectively and owes the exposed Three images.Second time of exposure of the second image is 1/2S, and the second exposure gain is iso, the 3rd image 3rd time of exposure is 1/2S, and the 3rd exposure gain is 1/2iso.
Now the product of the first time of exposure S and the first exposure gain iso of the first image is the second image The twice of the product of the second time of exposure 1/2S and the second exposure gain iso, when the 3rd of the 3rd image exposes Between the product of 1/2S and the 3rd exposure gain 1/2iso be the second time of exposure 1/2S and second of the second image The 1/2 of the product of exposure gain iso.
Or the first image of the first photographic head output overexposure, the first time of exposure is S, the first exposure gain For iso, second camera exports the second image of normal exposure in the time of S respectively and owes the 3rd exposed Image.Second time of exposure of the second image is 3/4S, the second exposure gain is 2/3 times of iso, the 3rd figure 3rd time of exposure of picture is 1/4S, and the 3rd exposure gain is iso.
Now the product of the first time of exposure S and the first exposure gain iso of the first image is the second image The twice of the product of the second time of exposure 3/4S and the second exposure gain 2/3iso, the 3rd exposure of the 3rd image The product of light time 1/4S and the 3rd exposure gain iso is the second time of exposure 3/4S and of the second image The 1/2 of the product of two exposure gain 2/3iso.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.Then the first aperture light-inletting quantity of the first image, the first time of exposure and The second aperture light-inletting quantity that product is the second image of one exposure gain three, the second time of exposure and second expose N times of the product of gain of light three, the second aperture light-inletting quantity of the 3rd image, the 3rd time of exposure and The second aperture light-inletting quantity that product is the second image of three exposure gain threes, the second time of exposure and second expose 1/N times of the product of gain of light three, wherein, the span of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value is second camera of the first photographic head Time, then the light-inletting quantity of the first photographic head is the twice of second camera, and the first aperture of the first photographic head enters light Amount can represent with coefficient 2, and the second aperture light-inletting quantity of second camera can represent with coefficient 1.First First image of photographic head output overexposure, and the first time of exposure be S, the first exposure gain be iso, the Two photographic head export the second image of normal exposure in the time of S respectively and owe the 3rd image exposed.Second Second time of exposure of image is 1/2S, and the second exposure gain is 2iso, the 3rd time of exposure of the 3rd image For 1/2S, the 3rd exposure gain is iso.
Now the first time of exposure S of first aperture light-inletting quantity coefficient the 2, first image of the first image, The product of one exposure gain iso is the second of second aperture light-inletting quantity coefficient the 1, second image of the second image The twice of the product of time of exposure 1/2S and the second exposure gain 2iso, the second aperture of the 3rd image enters light 3rd time of exposure 1/2S of coefficient of discharge the 1, the 3rd image, the product of the 3rd exposure gain iso are the second figures Second time of exposure 1/2S, the second exposure gain 2iso of second aperture light-inletting quantity coefficient the 1, second image of picture Product 1/2.
Or the first image of the first photographic head output overexposure, the first time of exposure is S, the first exposure gain For iso, second camera exports the second image of normal exposure in the time of S respectively and owes the 3rd exposed Image.Second time of exposure of the second image is 3/4S, the second exposure gain is 4/3 times of iso, the 3rd figure 3rd time of exposure of picture is 1/4S, and the 3rd exposure gain is 2iso.
Now the first time of exposure S of first aperture light-inletting quantity coefficient the 2, first image of the first image, The product of one exposure gain iso is the second of second aperture light-inletting quantity coefficient the 1, second image of the second image The twice of the product of time of exposure 3/4S and the second exposure gain 4/3iso, the second aperture of the 3rd image enters 3rd time of exposure 1/4S of light coefficient of discharge the 1, the 3rd image, the product of the 3rd exposure gain 2iso are second The second time of exposure 3/4S of second aperture light-inletting quantity coefficient the 1, second image of image, the second exposure gain The 1/2 of the product of 4/3iso.
Situation two:
First image is overexposure image, and the second image is for owing to expose image, and the 3rd image is normal exposure image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.First aperture F value of the first photographic head and the second aperture F value value phase of second camera With, the first time of exposure of the first image and the 3rd exposure that product is the 3rd image of the first exposure gain N times of the product of time and the 3rd exposure gain, the second time of exposure of the second image and the second exposure increase The 3rd time of exposure that product is the 3rd image of benefit and 1/N times of product of the 3rd exposure gain, wherein, The span of N is 2≤N≤4.
Such as: in the first aperture F value and the second aperture F value value of second camera of the first photographic head Time identical, first photographic head output overexposure the first image, and the first time of exposure be S, first exposure increase Benefit is iso, and second camera exports the 3rd image of normal exposure in the time of S respectively and owes the exposed Two images.3rd time of exposure of the 3rd image is 1/2S, and the 3rd exposure gain is iso, the second image Second time of exposure is 1/2S, and the second exposure gain is 1/2iso.
Now the product of the first time of exposure S and the first exposure gain iso of the first image is the 3rd image The twice of the product of the 3rd time of exposure 1/2S and the 3rd exposure gain iso, when the second of the second image exposes Between the product of 1/2S and the second exposure gain 1/2iso be the 3rd time of exposure 1/2S and the 3rd of the 3rd image The 1/2 of the product of exposure gain iso.
Or the first image of the first photographic head output overexposure, the first time of exposure is S, the first exposure gain For iso, second camera exports the 3rd image of normal exposure in the time of S respectively and owes second exposed Image.3rd time of exposure of the 3rd image is 3/4S, the 3rd exposure gain is 2/3 times of iso, the second figure Second time of exposure of picture is 1/4S, and the second exposure gain is iso.
Now the product of the first time of exposure S and the first exposure gain iso of the first image is the 3rd image The twice of the product of the 3rd time of exposure 3/4S and the 3rd exposure gain 2/3iso, the second exposure of the second image The product of light time 1/4S and the second exposure gain iso is the 3rd time of exposure 3/4S and of the 3rd image The 1/2 of the product of three exposure gain 2/3iso.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.Then the first aperture light-inletting quantity of the first image, the first time of exposure and The second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure that product is the 3rd image of one exposure gain three N times of the product of gain of light three, the second aperture light-inletting quantity of the second image, the second time of exposure and The second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure that product is the 3rd image of two exposure gain threes 1/N times of the product of gain of light three, wherein, the span of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value is second camera of the first photographic head Time, then the light-inletting quantity of the first photographic head is the twice of second camera, and the first aperture of the first photographic head enters light Amount can represent with coefficient 2, and the second aperture light-inletting quantity of second camera can represent with coefficient 1.First First image of photographic head output overexposure, and the first time of exposure be S, the first exposure gain be iso, the Two photographic head export the 3rd image of normal exposure in the time of S respectively and owe the second image exposed.3rd 3rd time of exposure of image is 1/2S, and the 3rd exposure gain is 2iso, the second time of exposure of the second image For 1/2S, the second exposure gain is iso.
Now the first time of exposure S of first aperture light-inletting quantity coefficient the 2, first image of the first image, The product of one exposure gain iso is the 3 of the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image The twice of the product of time of exposure 1/2S and the 3rd exposure gain 2iso, the second aperture of the second image enters light Second time of exposure 1/2S of coefficient of discharge the 1, second image, the product of the second exposure gain iso are the 3rd figures 3rd time of exposure 1/2S, the 3rd exposure gain 2iso of the 3rd aperture light-inletting quantity coefficient the 1, the 3rd image of picture Product 1/2.
Or the first image of the first photographic head output overexposure, the first time of exposure is S, the first exposure gain For iso, second camera exports the 3rd image of normal exposure in the time of S respectively and owes second exposed Image.3rd time of exposure of the 3rd image is 3/4S, the 3rd exposure gain is 4/3 times of iso, the second figure Second time of exposure of picture is 1/4S, and the second exposure gain is 2iso.
Now the first time of exposure S of first aperture light-inletting quantity coefficient the 2, first image of the first image, The product of one exposure gain iso is the 3 of the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image The twice of the product of time of exposure 3/4S and the 3rd exposure gain 4/3iso, the second aperture of the second image enters Second time of exposure 1/4S of light coefficient of discharge the 1, second image, the product of the second exposure gain 2iso are the 3rd The 3rd time of exposure 3/4S of the 3rd aperture light-inletting quantity coefficient the 1, the 3rd image of image, the 3rd exposure gain The 1/2 of the product of 4/3iso.
Situation three: the first image is normal exposure image, and the second image is overexposure image, and the 3rd image is Owe to expose image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.First aperture F value of the first photographic head and the second aperture F value value phase of second camera With, when the second time of exposure of the second image and product is the first image the first of the second exposure gain exposes Between with N times of the product of the first exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposure gain The first time of exposure that product is the first image and 1/N times of product of the first exposure gain, wherein, N Span be 2≤N≤4.
Such as: in the first aperture F value and the second aperture F value value phase of second camera of the first photographic head Meanwhile, first photographic head output normal exposure the first image, and the first time of exposure be S, first exposure Gain is iso, and second camera exports the second image of overexposure in the time of S respectively and owes the 3rd exposed Image.Second time of exposure of the second image is 1/2S, and the second exposure gain is 4iso, the of the 3rd image Three time of exposure are 1/2S, and the 3rd exposure gain is iso.
Now the product of the second time of exposure 1/2S and the second exposure gain 4iso of the second image is the first figure The twice of the product of the first time of exposure S and the first exposure gain iso of picture, the 3rd exposure of the 3rd image The product of time 1/2S and the 3rd exposure gain iso is the first time of exposure S and first exposure of the first image The 1/2 of the product of gain iso.
Or the first image of the first photographic head output normal exposure, the first time of exposure is S, the first exposure Gain is iso, and second camera exports the second image of overexposure in the time of S respectively and owes the 3rd exposed Image.Second time of exposure of the second image is 3/4S, the second exposure gain is 8/3 times of iso, the 3rd figure 3rd time of exposure of picture is 1/4S, and the 3rd exposure gain is 2iso.
Now the product of the second time of exposure 3/4S and the second exposure gain 8/3iso of the second image is first The twice of the product of the first time of exposure S and the first exposure gain iso of image, the 3rd exposure of the 3rd image The product of light time 1/4S and the 3rd exposure gain 2iso is the first time of exposure S and first of the first image The 1/2 of the product of exposure gain iso.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.Then the second aperture light-inletting quantity of the second image, the second time of exposure and The first aperture light-inletting quantity that product is the first image of two exposure gain threes, the first time of exposure and first expose N times of the product of gain of light three, the second aperture light-inletting quantity of the 3rd image, the 3rd time of exposure and The first aperture light-inletting quantity that product is the first image of three exposure gain threes, the first time of exposure and first expose 1/N times of the product of gain of light three, wherein, the span of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value is second camera of the first photographic head Time, then the light-inletting quantity of the first photographic head is the twice of second camera, and the first aperture of the first photographic head enters light Amount can represent with coefficient 2, and the second aperture light-inletting quantity of second camera can represent with coefficient 1.First Photographic head output normal exposure the first image, and the first time of exposure be S, the first exposure gain be iso, Second camera exports the second image of overexposure in the time of S respectively and owes the 3rd image exposed.Second figure Second time of exposure of picture is 1/2S, and the second exposure gain is 8iso, and the 3rd time of exposure of the 3rd image is 1/2S, the 3rd exposure gain is 2iso.
Now second aperture light-inletting quantity coefficient the 1, second image of the second image the second time of exposure 1/2S, The product of the second exposure gain 8iso is the of first aperture light-inletting quantity coefficient the 2, first image of the first image The twice of the product of one time of exposure S and the first exposure gain iso, the second aperture light-inletting quantity of the 3rd image 3rd time of exposure 1/2S of coefficient the 1, the 3rd image, the product of the 3rd exposure gain 2iso are the first images The first time of exposure S of first aperture light-inletting quantity coefficient the 2, first image, the first exposure gain iso The 1/2 of product.
Or the first image of the first photographic head output normal exposure, the first time of exposure is S, the first exposure Gain is iso, and second camera exports the second image of overexposure in the time of S respectively and owes the 3rd exposed Image.Second time of exposure of the second image is 3/4S, the second exposure gain is 16/3 times of iso, the 3rd figure 3rd time of exposure of picture is 1/4S, and the 3rd exposure gain is 4iso.
Now second aperture light-inletting quantity coefficient the 1, second image of the second image the second time of exposure 3/4S, The product of the second exposure gain 16/3iso is first aperture light-inletting quantity coefficient the 2, first image of the first image The first time of exposure S and the twice of product of the first exposure gain iso, the second aperture of the 3rd image enters 3rd time of exposure 1/4S of light coefficient of discharge the 1, the 3rd image, the product of the 3rd exposure gain 4iso are first First time of exposure S, the first exposure gain iso of first aperture light-inletting quantity coefficient the 2, first image of image Product 1/2.
Situation four: the first image is normal exposure image, and the second image is for owing to expose image, and the 3rd image is Overexposure image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.First aperture F value of the first photographic head and the second aperture F value value phase of second camera With, when the 3rd time of exposure of the 3rd image and product is the first image the first of the 3rd exposure gain exposes Between with N times of the product of the first exposure gain, the second time of exposure of the second image and the second exposure gain The first time of exposure that product is the first image and 1/N times of product of the first exposure gain, wherein, N Span be 2≤N≤4.
Such as: in the first aperture F value and the second aperture F value value of second camera of the first photographic head Time identical, first photographic head output normal exposure the first image, and the first time of exposure be S, first expose The gain of light is iso, second camera in the time of S respectively output owe the of the second image and the overexposure exposed Three images.Second time of exposure of the second image is 1/2S, and the second exposure gain is iso, the 3rd image 3rd time of exposure is 1/2S, and the 3rd exposure gain is 4iso.
Now the product of the 3rd time of exposure 1/2S and the 3rd exposure gain 4iso of the 3rd image is the first figure The twice of the product of the first time of exposure S and the first exposure gain iso of picture, the second exposure of the second image The product of time 1/2S and the second exposure gain iso is the first time of exposure S and first exposure of the first image The 1/2 of the product of gain iso.
Or the first image of the first photographic head output normal exposure, the first time of exposure is S, the first exposure Gain is iso, and second camera is second image and the 3rd of overexposure the of the deficient exposure of output respectively in the time of S Image.Second time of exposure of the second image is 1/4S, the second exposure gain is 2 times of iso, the 3rd image The 3rd time of exposure be 3/4S, the 3rd exposure gain is 8/3iso.
Now the product of the 3rd time of exposure 3/4S and the second exposure gain 8/3iso of the 3rd image is first The twice of the product of the first time of exposure S and the first exposure gain iso of image, the second exposure of the second image The product of light time 1/4S and the second exposure gain 2iso is the first time of exposure S and first of the first image The 1/2 of the product of exposure gain iso.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.Then the second aperture light-inletting quantity of the 3rd image, the 3rd time of exposure and The first aperture light-inletting quantity that product is the first image of three exposure gain threes, the first time of exposure and first expose N times of the product of gain of light three, the second aperture light-inletting quantity of the second image, the second time of exposure and The first aperture light-inletting quantity that product is the first image of two exposure gain threes, the first time of exposure and first expose 1/N times of the product of gain of light three, wherein, the span of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value is second camera of the first photographic head Time, then the light-inletting quantity of the first photographic head is the twice of second camera, and the first aperture of the first photographic head enters light Amount can represent with coefficient 2, and the second aperture light-inletting quantity of second camera can represent with coefficient 1.First Photographic head output normal exposure the first image, and the first time of exposure be S, the first exposure gain be iso, Second image of second camera deficient exposure of output respectively in the time of S and the 3rd image of overexposure.Second figure Second time of exposure of picture is 1/2S, and the second exposure gain is 2iso, and the 3rd time of exposure of the 3rd image is 1/2S, the 3rd exposure gain is 8iso.
Now the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image the 3rd time of exposure 1/2S, The product of the 3rd exposure gain 8iso is the of first aperture light-inletting quantity coefficient the 2, first image of the first image The twice of the product of one time of exposure S and the first exposure gain iso, the second aperture light-inletting quantity of the second image Second time of exposure 1/2S of coefficient the 1, second image, the product of the second exposure gain 2iso are the first images The first time of exposure S of first aperture light-inletting quantity coefficient the 2, first image, the first exposure gain iso The 1/2 of product.
Or the first image of the first photographic head output normal exposure, the first time of exposure is S, the first exposure Gain is iso, and second camera is second image and the 3rd of overexposure the of the deficient exposure of output respectively in the time of S Image.Second time of exposure of the second image is 1/4S, the second exposure gain is 4 times of iso, the 3rd image The 3rd time of exposure be 3/4S, the 3rd exposure gain is 16/3iso.
Now the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image the 3rd time of exposure 3/4S, The product of the 3rd exposure gain 16/3iso is first aperture light-inletting quantity coefficient the 2, first image of the first image The first time of exposure S and the twice of product of the first exposure gain iso, the second aperture of the second image enters Second time of exposure 1/4S of light coefficient of discharge the 1, second image, the product of the second exposure gain 4iso are first First time of exposure S, the first exposure gain iso of first aperture light-inletting quantity coefficient the 2, first image of image Product 1/2.
Situation five: the first image is for owing to expose image, and the second image is normal exposure image, and the 3rd image is Overexposure image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.First aperture F value of the first photographic head and the second aperture F value value phase of second camera With, the 3rd time of exposure of the 3rd image and the product is the second image second exposure of the 3rd exposure gain N times of the product of time and the second exposure gain, the first time of exposure of the first image and the first exposure increase Second time of exposure that product is the second image of benefit and 1/N times of product of the second exposure gain, wherein, The span of N is 2≤N≤4.
Such as: in the first aperture F value and the second aperture F value value of second camera of the first photographic head Time identical, first photographic head output owe expose the first image, and the first time of exposure be S, first exposure increase Benefit is 1/2iso, and second camera exports the second image of normal exposure and overexposure in the time of S respectively 3rd image.Second time of exposure of the second image is 1/2S, and the second exposure gain is 2iso, the 3rd image The 3rd time of exposure be 1/2S, the 3rd exposure gain is 4iso.
Now the product of the 3rd time of exposure 1/2S and the 3rd exposure gain 4iso of the 3rd image is the second figure The twice of the product of the second time of exposure 1/2S and the second exposure gain 2iso of picture, the first of the first image The product of time of exposure S and the first exposure gain 1/2iso be the second image the second time of exposure 1/2S with The 1/2 of the product of the second exposure gain 2iso.
Or the first image exposed is owed in the first photographic head output, and the first time of exposure is S, the first exposure gain For 1/2iso, second camera exports the second image of normal exposure and the of overexposure in the time of S respectively Three images.Second time of exposure of the second image is 1/4S, the second exposure gain is 4 times of iso, the 3rd figure 3rd time of exposure of picture is 3/4S, and the 3rd exposure gain is 3/8iso.
Now the product of the 3rd time of exposure 3/4S and the 3rd exposure gain 8/3iso of the 3rd image is second The twice of the product of the second time of exposure 1/4S and the second exposure gain 4iso of image, the of the first image The product of one time of exposure S and the first exposure gain 1/2iso is the second time of exposure 1/4S of the second image With the product of the second exposure gain 4iso 1/2.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.Then the second aperture light-inletting quantity of the 3rd image, the 3rd time of exposure and The second aperture light-inletting quantity that product is the second image of three exposure gain threes, the second time of exposure and second expose N times of the product of gain of light three, the first aperture light-inletting quantity of the first image, the first time of exposure and The second aperture light-inletting quantity that product is the second image of one exposure gain three, the second time of exposure and second expose 1/N times of the product of gain of light three, wherein, the span of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value is second camera of the first photographic head Time, then the light-inletting quantity of the first photographic head is the twice of second camera, and the first aperture of the first photographic head enters light Amount can represent with coefficient 2, and the second aperture light-inletting quantity of second camera can represent with coefficient 1.First Photographic head output owe expose the first image, and the first time of exposure be S, the first exposure gain be 1/2iso, Second camera exports the second image of normal exposure and the 3rd image of overexposure in the time of S respectively.The Second time of exposure of two images is 1/2S, and the second exposure gain is 4iso, when the 3rd of the 3rd image exposes Between be 1/2S, the 3rd exposure gain is 8iso.
Now the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image the 3rd time of exposure 1/2S, The product of the 3rd exposure gain 8iso is the of second aperture light-inletting quantity coefficient the 1, second image of the second image The twice of the product of two time of exposure 1/2S and the second exposure gain 4iso, the first aperture of the first image enters First time of exposure S of light coefficient of discharge the 2, first image, the product of the first exposure gain 1/2iso are second The second time of exposure 1/2S of second aperture light-inletting quantity coefficient the 1, second image of image, the second exposure gain The 1/2 of the product of 4iso.
Or the first image exposed is owed in the first photographic head output, and the first time of exposure is S, the first exposure gain For 1/2iso, second camera exports the second image of normal exposure and the of overexposure in the time of S respectively Three images.Second time of exposure of the second image is 1/4S, the second exposure gain is 8 times of iso, the 3rd figure 3rd time of exposure of picture is 3/4S, and the 3rd exposure gain is 16/3iso.
Now the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image the 3rd time of exposure 3/4S, The product of the 3rd exposure gain 16/3iso is second aperture light-inletting quantity coefficient the 1, second image of the second image The second time of exposure 1/4S and the twice of product of the second exposure gain 8iso, the first light of the first image Circle the first time of exposure S of light-inletting quantity coefficient the 2, first image, the product of the first exposure gain 1/2iso are The second time of exposure 1/4S of second aperture light-inletting quantity coefficient the 1, second image of the second image, the second exposure The 1/2 of the product of gain 8iso.
Situation six: the first image is for owing to expose image, and the second image is overexposure image, and the 3rd image is normal Exposure image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.First aperture F value of the first photographic head and the second aperture F value value phase of second camera With, when the second time of exposure of the second image and the product is the 3rd image the 3rd of the second exposure gain the exposes Between with N times of the product of the 3rd exposure gain, the first time of exposure of the first image and the first exposure gain The 3rd time of exposure that product is the 3rd image and 1/N times of product of the 3rd exposure gain, wherein, N Span be 2≤N≤4.
Such as: in the first aperture F value and the second aperture F value value of second camera of the first photographic head Time identical, first photographic head output owe expose the first image, and the first time of exposure be S, first exposure increase Benefit is 1/2iso, and second camera exports the second image of overexposure and normal exposure in the time of S respectively 3rd image.Second time of exposure of the second image is 1/2S, and the second exposure gain is 4iso, the 3rd image The 3rd time of exposure be 1/2S, the 3rd exposure gain is 2iso.
Now the product of the second time of exposure 1/2S and the second exposure gain 4iso of the second image is the 3rd figure The twice of the product of the 3rd time of exposure 1/2S and the 3rd exposure gain 2iso of picture, the first of the first image The product of time of exposure S and the first exposure gain 1/2iso be the 3rd image the 3rd time of exposure 1/2S with The 1/2 of the product of the 3rd exposure gain 2iso.
Or the first image exposed is owed in the first photographic head output, and the first time of exposure is S, the first exposure gain For 1/2iso, second camera exports the second image of overexposure and the of normal exposure in the time of S respectively Three images.Second time of exposure of the second image is 3/4S, the second exposure gain is 8/3 times of iso, the 3rd 3rd time of exposure of image is 1/4S, and the 3rd exposure gain is 4iso.
Now the product of the second time of exposure 3/4S and the second exposure gain 8/3iso of the second image is the 3rd The twice of the product of the 3rd time of exposure 1/4S and the 3rd exposure gain 4iso of image, the of the first image The product of one time of exposure S and the first exposure gain 1/2iso is the 3rd time of exposure 1/4S of the 3rd image With the product of the 3rd exposure gain 4iso 1/2.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.Then the second aperture light-inletting quantity of the second image, the second time of exposure and The second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure that product is the 3rd image of two exposure gain threes N times of the product of gain of light three, the first aperture light-inletting quantity of the first image, the first time of exposure and The second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure that product is the 3rd image of one exposure gain three 1/N times of the product of gain of light three, wherein, the span of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value is second camera of the first photographic head Time, then the light-inletting quantity of the first photographic head is the twice of second camera, and the first aperture of the first photographic head enters light Amount can represent with coefficient 2, and the second aperture light-inletting quantity of second camera can represent with coefficient 1.First Photographic head output owe expose the first image, and the first time of exposure be S, the first exposure gain be 1/2iso, Second camera exports the second image of overexposure and the 3rd image of normal exposure in the time of S respectively.The Second time of exposure of two images is 1/2S, and the second exposure gain is 8iso, when the 3rd of the 3rd image exposes Between be 1/2S, the 3rd exposure gain is 4iso.
Now second aperture light-inletting quantity coefficient the 1, second image of the second image the second time of exposure 1/2S, The product of the second exposure gain 8iso is the of the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image The twice of the product of three time of exposure 1/2S and the 3rd exposure gain 4iso, the first aperture of the first image enters First time of exposure S of light coefficient of discharge the 2, first image, the product of the first exposure gain 1/2iso are the 3rd The 3rd time of exposure 1/2S of the second aperture light-inletting quantity coefficient the 1, the 3rd image of image, the 3rd exposure gain The 1/2 of the product of 4iso.
Or the first image exposed is owed in the first photographic head output, and the first time of exposure is S, the first exposure gain For 1/2iso, second camera exports the second image of overexposure and the of normal exposure in the time of S respectively Three images.Second time of exposure of the second image is 3/4S, the second exposure gain is 16/3 times of iso, the 3rd 3rd time of exposure of image is 1/4S, and the 3rd exposure gain is 8iso.
Now second aperture light-inletting quantity coefficient the 1, second image of the second image the second time of exposure 3/4S, The product of the second exposure gain 16/3iso is the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image The 3rd time of exposure 1/4S and the twice of product of the 3rd exposure gain 8iso, the first light of the first image Circle the first time of exposure S of light-inletting quantity coefficient the 2, first image, the product of the first exposure gain 1/2iso are The 3rd time of exposure 1/4S of the second aperture light-inletting quantity coefficient the 1, the 3rd image of the 3rd image, the 3rd exposure The 1/2 of the product of gain 8iso.
Above-mentioned six kinds of situations are at the first aperture F value of the first photographic head and the second aperture F of second camera When value value is identical, it is all normal exposure image with the time of exposure of overexposure image and the product of exposure gain Time of exposure and the product 2 times of exposure gain, owe to expose the time of exposure of image and the product of exposure gain be just Often the time of exposure of exposure image is illustrated as a example by the product 1/2 times of exposure gain.
Unequal in the first aperture F value of the first photographic head and the second aperture F value of second camera, with As a example by first aperture light-inletting quantity of the first photographic head is 2 times of the second aperture light-inletting quantity of second camera, with The light-inletting quantity of overexposure image, time of exposure are the light-inletting quantity of normal exposure image, exposure with the product of exposure gain Light time and the product 2 times of exposure gain, the deficient exposure light-inletting quantity of image, time of exposure are taken advantage of with exposure gain Long-pending is that the light-inletting quantity of normal exposure image, time of exposure are illustrated as a example by the product 1/2 times of exposure gain 's.
Step 202, based on the first image, the second image and the 3rd image, determine target normal exposure image, Target overexposure image and target owe to expose image.
After obtaining the first image, the second image and the 3rd image, need to determine in these three image Normal exposure image, overexposure image and deficient exposure image.The exposure of these three image can be exposed with standard Optical range compares, and when exposure is positioned in the range of standard exposure, determines that image is normal exposure image, When exposure is more than the maximum of standard exposure scope, determine that image is overexposure image, when exposure is less than During the minima of standard exposure scope, determine that image is to owe to expose image.
Step 203, respectively extraction target normal exposure image, target overexposure image and target owe to expose image Half-tone information, obtains the first gray level image of target normal exposure image, the second gray scale of target overexposure image Image and target owe to expose the 3rd gray level image of image.
Determining that target normal exposure image, target overexposure image and target owe to expose after image, for this three Individual image extracts half-tone information respectively, and the half-tone information for target normal exposure image obtains the first gray-scale map Picture, the half-tone information for target overexposure image obtains the second gray level image, owes to expose the ash of image for target Degree information obtains the 3rd gray level image.
Step 204, using the first gray level image as benchmark, by the second gray level image and the 3rd gray level image school Just extremely with the image that the first gray level image is same visual field.
Owing to the first gray level image is the gray level image that target normal exposure image is formed, need with the first gray scale To the second gray level image of being formed by target overexposure image with owed to expose image by target and formed on the basis of image 3rd gray level image is corrected so that the first gray level image, the second gray level image and the 3rd gray level image Display view angle identical.
Such as: when target normal exposure image by first photographic head shooting obtain, target overexposure image, Target is owed to expose image and is obtained by second camera shooting, is being corrected on the basis of the first gray level image During, need to be formed to the second gray level image formed by target overexposure image with by the deficient image that exposes of target The 3rd gray level image be corrected.
Owing to expose image when target to be obtained by the first photographic head shooting, target overexposure image and target normally expose Light image is obtained by second camera shooting, with the first gray level image of target normal exposure image is being During benchmark is corrected, need to be corrected being owed to expose the 3rd gray level image that formed of image by target.
When target overexposure image is obtained by the first photographic head shooting, and target owes to expose image and target normally exposes Light image is obtained by second camera shooting, with the first gray level image of target normal exposure image is being During benchmark is corrected, need the second gray level image formed by target overexposure image is corrected.
Step 205, the first gray level image, the second gray level image and the 3rd gray level image are carried out image synthesis Process, generate target high dynamic range images.
After the correction completing gray level image, according to the first gray level image after correction, the second gray level image Carry out image synthesis process with the 3rd gray level image, generate target high dynamic range images, detailed process such as figure Shown in 3:
Step 2051, for pixel each in the first gray level image, determine respectively pixel second ash The pixel of correspondence position in degree image and the 3rd gray level image.
The pixel corresponding with each pixel in the first gray level image is determined, in the second gray level image Three gray level images determine the pixel corresponding with each pixel in the first gray level image, i.e. sets up same picture Vegetarian refreshments corresponding relation in the first gray level image, the second gray level image and the 3rd gray level image.
Such as: for pixel 1 in the first gray level image, location lookup identical in the second gray level image To pixel 1 ', location lookup identical in the 3rd gray level image is to pixel 1 ".Wherein pixel 1, Pixel 1 ' and pixel 1 " it is the embodiment in different gray level images of the same pixel.
Step 2052, obtain the pixel the first gray value in the first gray level image, pixel second In gray level image, the second gray value and the pixel of the pixel of correspondence position are right in the 3rd gray level image Answer the 3rd gray value of the pixel of position.
Then, for each pixel, obtain this pixel the first gray value in the first gray level image, The second gray value in the second gray level image, and the 3rd gray value in the 3rd gray level image.Wherein The scope of the first gray value between 0~255, the scope of the second gray value between 0~255, the 3rd gray scale The scope of value is also between 0~255.
Step 2053, by the first gray value, the second gray value and the 3rd gray value three be added, obtain ash Degree and value.
The first gray value obtained for each pixel, the second gray value and the 3rd gray value are added, Obtaining gray scale and value, wherein the scope of gray scale and value is between 0~765.
Step 2054, based on grey scale mapping relation table, gray scale and value are carried out gray value mapping, obtain a frame The Continuous Tone Image of HDR.
After the gray scale obtaining each pixel and value, according to grey scale mapping relation table to each gray scale and value Carry out gray value mapping, obtain corresponding grey scale value, be worth to according to the grey scale of each pixel The Continuous Tone Image of one vertical frame dimension dynamic range.Wherein the scope of grey scale value is between 0~255, gray scale Mapping relations table is pre-set, can find corresponding grey scale value, wherein according to gray scale and value Gray scale and value in grey scale mapping relation table are at normal exposure, under-exposure and overexposure according to same pixel Three gray values obtained in the gray level image that light is corresponding obtain.
Step 2055, the color information of all pixels in target normal exposure image is assigned to middle ash In degree image, each pixel of correspondence position, generates target high dynamic range images.
Generate HDR Continuous Tone Image, according to the pixel in target normal exposure image with The corresponding relation of the pixel in Continuous Tone Image, by the color of all pixels in target normal exposure image Multimedia message is assigned in Continuous Tone Image the pixel of correspondence, finally obtains target high dynamic range images.
The generation method of the high dynamic range images of the embodiment of the present invention, uses dual camera when first exposes Interior acquisition overexposure, deficient exposure and the image of normal exposure, according to three images, use high dynamic range images Algorithm composograph information, it is thus achieved that present frame output image, it is possible to achieve each frame output image is all by The image of high dynamic range images algorithm synthesis, each frame output image all carries the effect of HDR, And making user during shooting, the high dynamic range images effect that preview is seen finally shoots Effect, the shooting promoting user is experienced.
Embodiment three
The embodiment of a kind of mobile terminal provided for the embodiment of the present invention three below, the embodiment of mobile terminal In the detail content of the most detailed description, be referred to said method embodiment.
Wherein, mobile terminal includes the first photographic head and second camera, and as shown in Figure 4, mobile terminal is also Including:
Acquisition module 10, for obtain that reference object is gathered by the first photographic head at the first time of exposure the One image, and obtain the second image that reference object is gathered in the first time of exposure by second camera successively With the 3rd image.
Processing module 20, for the first image, the second image and the 3rd image that obtain acquisition module 10 Carry out image procossing, generate target high dynamic range images.
Wherein, the first image, the second image and the 3rd image be respectively normal exposure image, overexposure image and Owe to expose the one in image.
Wherein, the first image that acquisition module 10 obtains is overexposure image, and the second image is normal exposure figure Picture, and the 3rd image is for owing to expose image.
Wherein, the first image that acquisition module 10 obtains is normal exposure image, and the second image is overexposure figure Picture, and the 3rd image is for owing to expose image.
Wherein, the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to first Time of exposure.
Wherein, the first aperture F value of the first photographic head is identical with the second aperture F value value of second camera, First time of exposure of the first image and second time of exposure that product is the second image of the first exposure gain With N times of the product of the second exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposure gain Product is 1/N times of the product of the second time of exposure of the second image and the second exposure gain, wherein, N's Span is 2≤N≤4.
Wherein, the first aperture F value of the first photographic head and the second aperture F value value phase of second camera With, when the second time of exposure of the second image and product is the first image the first of the second exposure gain exposes Between with N times of the product of the first exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposure gain The first time of exposure that product is the first image and 1/N times of product of the first exposure gain, wherein, N Span be 2≤N≤4.
Wherein, the first aperture F value of the first photographic head and the second aperture F value of second camera are unequal, And first first aperture light-inletting quantity of photographic head be M times of the second aperture light-inletting quantity of second camera, Second time of exposure of two images and the 3rd time of exposure sum of the 3rd image are equal to the first time of exposure, M Span be 1 < M≤4.
Wherein, the first aperture light-inletting quantity of the first image, the first time of exposure and the first exposure gain three Product is the second aperture light-inletting quantity of the second image, the second time of exposure and the product of the second exposure gain three N times, the second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure gain three's of the 3rd image Product is the second aperture light-inletting quantity of the second image, the second time of exposure and the product of the second exposure gain three 1/N times, wherein, the span of N is 2≤N≤4.
Wherein, as it is shown in figure 5, processing module 20 includes:
Determine submodule 21, for based on the first image, the second image and the 3rd image, determine that target is just Often exposure image, target overexposure image and target owe to expose image.
Extract submodule 22, for extract respectively determine target normal exposure image that submodule 21 determines, Target overexposure image and target owe to expose the half-tone information of image, obtain the first gray scale of target normal exposure image Image, the second gray level image of target overexposure image and target owe to expose the 3rd gray level image of image.
Syndrome module 23, for extract the first gray level image of obtaining of submodule 22 as benchmark, will Second gray level image and the 3rd gray level image correction to the image that the first gray level image is same visual field.
Process submodule 24, for extracting the first gray level image, the calibrated submodule that submodule 22 obtains The second gray level image and the 3rd gray level image after block 23 correction carry out image synthesis process, generate target high Dynamic image.
Wherein, as shown in Figure 6, process submodule 24 to include:
Determine unit 241, for for pixel each in the first gray level image, determine that pixel exists respectively The pixel of correspondence position in second gray level image and the 3rd gray level image.
Acquiring unit 242, for obtaining the pixel the first gray value in the first gray level image, pixel In the second gray level image, the second gray value of the pixel of correspondence position and pixel are at the 3rd gray-scale map 3rd gray value of the pixel of correspondence position in Xiang.
Computing unit 243, for the first gray value obtained by acquiring unit 242, the second gray value and the Three gray value threes are added, and obtain gray scale and value.
Map unit 244, for the gray scale obtained computing unit 243 based on grey scale mapping relation table and value Carry out gray value mapping, obtain the Continuous Tone Image of a vertical frame dimension dynamic range.
Processing unit 245, for being assigned to the color information of all pixels in target normal exposure image Each pixel of correspondence position in the Continuous Tone Image that map unit 244 obtains, generates target high dynamically Range image.
The mobile terminal of the embodiment of the present invention, uses dual camera to obtain overexposure in the first time of exposure, owe Expose and the image of normal exposure, according to three images, use high dynamic range images algorithm composograph information, Obtain present frame output image, it is possible to achieve each frame output image is all by high dynamic range images algorithm The image of synthesis, each frame output image all carries the effect of HDR, and makes user in shooting During, the high dynamic range images effect that preview is seen is exactly the effect of final shooting, promotes the bat of user Take the photograph experience.
Embodiment four
The embodiment of the present invention four provides a kind of mobile terminal, as it is shown in fig. 7, mobile terminal 700 includes: At least one processor 701, memorizer 702, at least one network interface 704, user interface 703 and Taking pictures assembly 706, assembly 706 of taking pictures includes: the first photographic head 7061 and second camera 7062.Move Each assembly in dynamic terminal 700 is coupled by bus system 705.It is understood that bus system 705 for realizing the connection communication between these assemblies.Bus system 705 in addition to including data/address bus, Also include power bus, control bus and status signal bus in addition.But for the sake of understanding explanation, at Fig. 7 Middle various buses are all designated as bus system 705.
Wherein, user interface 703 can include display, keyboard or pointing device (such as, mouse, rail Mark ball (trackball), touch-sensitive plate or touch screen etc..
The memorizer 702 being appreciated that in the embodiment of the present invention can be volatile memory or non-volatile Memorizer, maybe can include volatibility and nonvolatile memory.Wherein, nonvolatile memory is permissible It is read only memory (Read-OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM (ErasablePROM, EPROM), Electrically Erasable Read Only Memory (ElectricallyEPROM, EEPROM) or flash memory. Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as Static RAM (StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory (SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate SDRAM, DDRSDRAM), enhancement mode Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), Synchronized links dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus with Machine access memorizer (DirectRambusRAM, DRRAM).The storage of system and method described herein Device 702 is intended to include but not limited to these and the memorizer of other applicable type any.
In some embodiments, memorizer 702 stores following element, executable module or data Structure, or their subset, or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021, comprise various system program, such as ccf layer, core library layer, drive Dynamic layers etc., are used for realizing various basic business and processing hardware based task.Application program 7022, Comprise various application program, such as display controller, media player (MediaPlayer), browser (Browser) etc., it is used for realizing various applied business.The program realizing embodiment of the present invention method can comprise In application program 7022.
In embodiments of the present invention, by calling program or the instruction of memorizer 702 storage, concrete, can To be program or the instruction of storage in application program 7022, processor 701 exists for obtaining the first photographic head The first image that reference object is gathered by the first time of exposure, and obtain second camera at the first time of exposure Interior the second image that reference object is gathered successively and the 3rd image;To the first image, the second image and the 3rd Image carries out image procossing, generates target high dynamic range images;Wherein, the first image, the second image and 3rd image is respectively normal exposure image, overexposure image and owes to expose the one in image.
The method that the invention described above embodiment discloses can apply in processor 701, or by processor 701 realize.Processor 701 is probably a kind of IC chip, has the disposal ability of signal.In reality During Xian, each step of said method can by the integrated logic circuit of the hardware in processor 701 or The instruction of person's software form completes.Above-mentioned processor 701 can be general processor, Digital Signal Processing Device (DigitalSignalProcessor, DSP), special IC (ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array (FieldProgrammableGateArray, Or other PLDs, discrete gate or transistor logic, discrete hardware components FPGA). Can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General place The reason processor etc. that device can be microprocessor or this processor can also be any routine.In conjunction with the present invention The step of the method disclosed in embodiment can be embodied directly in hardware decoding processor and perform, or uses Hardware and software module combination execution in decoding processor complete.Software module may be located at random access memory, Flash memory, read only memory, programmable read only memory or electrically erasable programmable memorizer, depositor etc. In the storage medium that this area is ripe.This storage medium is positioned at memorizer 702, and processor 701 reads storage Information in device 702, completes the step of said method in conjunction with its hardware.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, Microcode or a combination thereof realize.Realizing for hardware, processing unit can be implemented in one or more special collection Become circuit (ApplicationSpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP), digital signal processing appts (DSPDevice, DSPD), can compile Journey logical device (ProgrammableLogicDevice, PLD), field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller, micro- Processor, for performing in other electronic unit or a combination thereof of herein described function.
Software is realized, can be come by the module (such as process, function etc.) performing function described herein Realize the techniques described herein.Software code is storable in performing in memorizer and by processor.Memorizer Can within a processor or realize outside processor.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first image is overexposure image, and the second image is normal exposure image, and the 3rd figure As for owing to expose image.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first image is normal exposure image, and the second image is overexposure image, and the 3rd figure As for owing to expose image.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the second time of exposure of the second image and the 3rd time of exposure sum etc. of the 3rd image In the first time of exposure.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture F value of the first photographic head and the second aperture F value of second camera Value is identical, the first time of exposure of the first image and product is the second image the second of the first exposure gain N times of the product of time of exposure and the second exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposes The product of the gain of light is 1/N times of the product of the second time of exposure of the second image and the second exposure gain, its In, the span of N is 2≤N≤4.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture F value of the first photographic head and the second aperture F value of second camera Value is identical, the second time of exposure of the second image and product is the first image the first of the second exposure gain N times of the product of time of exposure and the first exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposes The product of the gain of light is 1/N times of the product of the first time of exposure of the first image and the first exposure gain, its In, the span of N is 2≤N≤4.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture F value of the first photographic head and the second aperture F value of second camera Unequal, and the first aperture light-inletting quantity of the first photographic head is the M of the second aperture light-inletting quantity of second camera Times, when the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to the first exposure Between, the span of M is 1 < M≤4.
Optionally, processor 701 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture light-inletting quantity, the first time of exposure and first exposure gain of the first image The product of three is the second aperture light-inletting quantity of the second image, the second time of exposure and the second exposure gain three N times of product, the second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure gain of the 3rd image The product of three is the second aperture light-inletting quantity of the second image, the second time of exposure and the second exposure gain three 1/N times of product, wherein, the span of N is 2≤N≤4.
Optionally, processor 701 is carrying out image procossing to the first image, the second image and the 3rd image, When generating target high dynamic range images, it is additionally operable to: based on the first image, the second image and the 3rd image, Determine that target normal exposure image, target overexposure image and target owe to expose image;Extract target respectively normally to expose Light image, target overexposure image and target owe to expose the half-tone information of image, obtain target normal exposure image First gray level image, the second gray level image of target overexposure image and target owe to expose the 3rd gray level image of image; Using the first gray level image as benchmark, the second gray level image and the 3rd gray level image are corrected to the first gray scale Image is the image of same visual field;First gray level image, the second gray level image and the 3rd gray level image are carried out Image synthesis processes, and generates target high dynamic range images.
Optionally, the first gray level image, the second gray level image and the 3rd gray level image are being entered by processor 701 Row image synthesis processes, and when generating target high dynamic range images, is additionally operable to: in the first gray level image Each pixel, determines pixel picture of correspondence position in the second gray level image and the 3rd gray level image respectively Vegetarian refreshments;Obtain the pixel the first gray value in the first gray level image, pixel in the second gray level image Second gray value of the pixel of correspondence position and the pixel picture of correspondence position in the 3rd gray level image 3rd gray value of vegetarian refreshments;First gray value, the second gray value and the 3rd gray value three are added, obtain Gray scale and value;Based on grey scale mapping relation table, gray scale and value are carried out gray value mapping, obtain a vertical frame dimension dynamic The Continuous Tone Image of scope;In in target normal exposure image, the color information of all pixels is assigned to Between each pixel of correspondence position in gray level image, generate target high dynamic range images.
Mobile terminal 700 is capable of each process that in previous embodiment, mobile terminal realizes, for avoiding weight Multiple, repeat no more here.
The mobile terminal of the embodiment of the present invention, uses dual camera at the first time of exposure by processor 701 Interior acquisition overexposure, deficient exposure and the image of normal exposure, according to three images, use high dynamic range images to calculate Method composograph information, it is thus achieved that present frame output image, it is possible to achieve each frame output image is all by height The image of dynamic image algorithm synthesis, each frame output image all carries the effect of HDR, and Making user during shooting, the high dynamic range images effect that preview is seen is exactly the effect of final shooting Really, the shooting promoting user is experienced.
Embodiment five
The embodiment of the present invention five provides a kind of mobile terminal.As shown in Figure 8, mobile terminal 800 can be Mobile phone, panel computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer Deng.
Mobile terminal 800 in Fig. 8 includes radio frequency (RadioFrequency, RF) circuit 810, memorizer 820, input block 830, display unit 840, assembly 850 of taking pictures, processor 860, voicefrequency circuit 870, WiFi (WirelessFidelity) module 880 and power supply 890, assembly 850 of taking pictures includes: the first photographic head 8501 and second camera 8502.
Wherein, input block 830 can be used for receive user input numeral or character information, and produce with The user setup of mobile terminal 800 and function control relevant signal input.Specifically, the present invention implements In example, this input block 830 can include contact panel 831.Contact panel 831, also referred to as touch screen, Can collect user thereon or neighbouring touch operation (such as user uses finger, stylus etc. any applicable Object or adnexa operation on contact panel 831), and connect accordingly according to formula set in advance driving Connection device.Optionally, contact panel 831 can include touch detecting apparatus and two parts of touch controller. Wherein, the touch orientation of touch detecting apparatus detection user, and detect the signal that touch operation brings, will letter Number send touch controller to;Touch controller receives touch information from touch detecting apparatus, and it is turned Change contact coordinate into, then give this processor 860, and order that processor 860 sends in addition can be received Perform.Furthermore, it is possible to use the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize Contact panel 831.Except contact panel 831, input block 830 can also include other input equipments 832, Other input equipments 832 can include but not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, one or more in action bars etc..
Wherein, display unit 840 can be used for the information that inputted by user of display or the information that is supplied to user with And the various menu interfaces of mobile terminal 800.Display unit 840 can include display floater 841, optionally, The form such as LCD or Organic Light Emitting Diode (OrganicLight-EmittingDiode, OLED) can be used Configure display floater 841.
It should be noted that contact panel 831 can cover display floater 841, formed and touch display screen, when this touches Touch display screen detect thereon or after neighbouring touch operation, send processor 860 to determine touch thing The type of part, regards touching to provide on display screen according to the type of touch event accordingly with preprocessor 860 Feel and export.
Touch display screen and include Application Program Interface viewing area and conventional control viewing area.This Application Program Interface The arrangement mode of viewing area and this conventional control viewing area does not limit, can be arranged above and below, left-right situs Etc. the arrangement mode that can distinguish two viewing areas.This Application Program Interface viewing area is displayed for application The interface of program.Each interface can comprise icon and/or the widget desktop of at least one application program The interface elements such as control.This Application Program Interface viewing area can also be the empty interface not comprising any content. This conventional control viewing area is for showing the control that utilization rate is higher, such as, settings button, interface numbering, The application icons etc. such as scroll bar, phone directory icon.
Wherein processor 860 is the control centre of mobile terminal 800, utilizes various interface and connection whole The various piece of individual mobile phone, by run or perform the software program that is stored in first memory 821 and/ Or module, and call the data being stored in second memory 822, perform the various of mobile terminal 800 Function and process data, thus mobile terminal 800 is carried out integral monitoring.Optionally, processor 860 One or more processing unit can be included.
In embodiments of the present invention, by call the software program stored in this first memory 821 and/or Data in module and/or this second memory 822, processor 860 is for obtaining the first photographic head the The first image that reference object is gathered by one time of exposure, and obtain second camera in the first time of exposure The second image that reference object is gathered successively and the 3rd image;To the first image, the second image and the 3rd figure As carrying out image procossing, generate target high dynamic range images;Wherein, the first image, the second image and Three images are respectively normal exposure image, overexposure image and owe to expose the one in image.
Alternatively, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first image is overexposure image, and the second image is normal exposure image, and the 3rd figure As for owing to expose image.
Optionally, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first image is normal exposure image, and the second image is overexposure image, and the 3rd figure As for owing to expose image.
Optionally, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the second time of exposure of the second image and the 3rd time of exposure sum etc. of the 3rd image In the first time of exposure.
Optionally, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture F value of the first photographic head and the second aperture F value of second camera take It is worth identical, the first time of exposure of the first image and the product is the second image second exposure of the first exposure gain N times of the product of light time and the second exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposure The product of gain is 1/N times of the product of the second time of exposure of the second image and the second exposure gain, wherein, The span of N is 2≤N≤4.
Optionally, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture F value of the first photographic head and the second aperture F value of second camera take It is worth identical, the second time of exposure of the second image and the product is the first image first exposure of the second exposure gain N times of the product of light time and the first exposure gain, the 3rd time of exposure of the 3rd image and the 3rd exposure The product of gain is 1/N times of the product of the first time of exposure of the first image and the first exposure gain, wherein, The span of N is 2≤N≤4.
Optionally, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture F value of the first photographic head and the second aperture F value of second camera are not Equal, and the first aperture light-inletting quantity of the first photographic head is the M of the second aperture light-inletting quantity of second camera Times, when the second time of exposure of the second image and the 3rd time of exposure sum of the 3rd image are equal to the first exposure Between, the span of M is 1 < M≤4.
Optionally, processor 860 is obtaining what reference object was gathered by the first photographic head at the first time of exposure First image, and obtain the second figure that reference object is gathered in the first time of exposure by second camera successively When picture and three images, the first aperture light-inletting quantity, the first time of exposure and first exposure gain of the first image The product of three is the second aperture light-inletting quantity of the second image, the second time of exposure and the second exposure gain three N times of product, the second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure gain of the 3rd image The product of three is the second aperture light-inletting quantity of the second image, the second time of exposure and the second exposure gain three 1/N times of product, wherein, the span of N is 2≤N≤4.
Optionally, processor 860 is carrying out image procossing to the first image, the second image and the 3rd image, When generating target high dynamic range images, it is additionally operable to: based on the first image, the second image and the 3rd image, Determine that target normal exposure image, target overexposure image and target owe to expose image;Extract target respectively normally to expose Light image, target overexposure image and target owe to expose the half-tone information of image, obtain target normal exposure image First gray level image, the second gray level image of target overexposure image and target owe to expose the 3rd gray level image of image; Using the first gray level image as benchmark, the second gray level image and the 3rd gray level image are corrected to the first gray scale Image is the image of same visual field;First gray level image, the second gray level image and the 3rd gray level image are carried out Image synthesis processes, and generates target high dynamic range images.
Optionally, the first gray level image, the second gray level image and the 3rd gray level image are being entered by processor 860 Row image synthesis processes, and when generating target high dynamic range images, is additionally operable to: in the first gray level image Each pixel, determines pixel picture of correspondence position in the second gray level image and the 3rd gray level image respectively Vegetarian refreshments;Obtain the pixel the first gray value in the first gray level image, pixel in the second gray level image Second gray value of the pixel of correspondence position and the pixel picture of correspondence position in the 3rd gray level image 3rd gray value of vegetarian refreshments;First gray value, the second gray value and the 3rd gray value three are added, obtain Gray scale and value;Based on grey scale mapping relation table, gray scale and value are carried out gray value mapping, obtain a vertical frame dimension dynamic The Continuous Tone Image of scope;In in target normal exposure image, the color information of all pixels is assigned to Between each pixel of correspondence position in gray level image, generate target high dynamic range images.
The mobile terminal of the embodiment of the present invention, uses dual camera at the first time of exposure by processor 860 Interior acquisition overexposure, deficient exposure and the image of normal exposure, according to three images, use high dynamic range images to calculate Method composograph information, it is thus achieved that present frame output image, it is possible to achieve each frame output image is all by height The image of dynamic image algorithm synthesis, each frame output image all carries the effect of HDR, and Making user during shooting, the high dynamic range images effect that preview is seen is exactly the effect of final shooting Really, the shooting promoting user is experienced.
Those of ordinary skill in the art are it is to be appreciated that combine the disclosed embodiments in the embodiment of the present invention and retouch The unit of each example stated and algorithm steps, it is possible to electronic hardware or computer software and electronic hardware Be implemented in combination in.These functions perform with hardware or software mode actually, depend on technical scheme Application-specific and design constraint.Professional and technical personnel can use not Tongfang to each specifically should being used for Method realizes described function, but this realization is it is not considered that beyond the scope of this invention.
Those skilled in the art is it can be understood that arrive, for convenience and simplicity of description, and foregoing description The specific works process of system, device and unit, be referred to the corresponding process in preceding method embodiment, Do not repeat them here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, Ke Yitong The mode crossing other realizes.Such as, device embodiment described above is only schematically, such as, The division of described unit, is only a kind of logic function and divides, and actual can have other division side when realizing Formula, the most multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can To ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or logical Letter connection can be the INDIRECT COUPLING by some interfaces, device or unit or communication connection, can be electrical, Machinery or other form.
The described unit illustrated as separating component can be or may not be physically separate, as The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or Can also be distributed on multiple NE.Can select therein some or all of according to the actual needs Unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a unit In.
If described function realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, the skill of the present invention Part or the part of this technical scheme that prior art is contributed by art scheme the most in other words are permissible Embodying with the form of software product, this computer software product is stored in a storage medium, including Some instructions are with so that a computer equipment (can be that personal computer, server, or network set Standby etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium Including: USB flash disk, portable hard drive, ROM, RAM, magnetic disc or CD etc. are various can store program generation The medium of code.
Above-described is the preferred embodiment of the present invention, it should be pointed out that for the ordinary people of the art For Yuan, some improvements and modifications can also be made under without departing from principle premise of the present invention, these Improvements and modifications are the most within the scope of the present invention.

Claims (20)

1. a generation method for high dynamic range images, is applied to mobile terminal, and described mobile terminal includes First photographic head and second camera, it is characterised in that described method includes:
Obtain the first image that reference object is gathered at the first time of exposure by described first photographic head, and obtain The second image that described reference object is gathered in described first time of exposure by described second camera successively With the 3rd image;
Described first image, described second image and described 3rd image are carried out image procossing, generates target High dynamic range images;
Wherein, described first image, described second image and described 3rd image be respectively normal exposure image, Overexposure image and the one owed in exposure image.
Method the most according to claim 1, it is characterised in that described first image is overexposure image, Described second image is normal exposure image, and described 3rd image is for owing to expose image.
Method the most according to claim 1, it is characterised in that described first image is normal exposure Image, described second image is overexposure image, and described 3rd image is for owing to expose image.
The most according to the method in claim 2 or 3, it is characterised in that the second of described second image Time of exposure is equal to described first time of exposure with the 3rd time of exposure sum of described 3rd image.
Method the most according to claim 2, it is characterised in that the first light of described first photographic head Circle F value is identical with the second aperture F value value of described second camera, the first exposure of described first image The light time increases with the second time of exposure that product is described second image and second exposure of the first exposure gain N times of the product of benefit, described 3rd time of exposure of the 3rd image and the product of the 3rd exposure gain are institute State the second time of exposure of the second image and 1/N times of the product of the second exposure gain, wherein, the value of N Scope is 2≤N≤4.
Method the most according to claim 3, it is characterised in that the first light of described first photographic head Circle F value is identical with the second aperture F value value of described second camera, the second exposure of described second image The light time increases with the first time of exposure that product is described first image and first exposure of the second exposure gain N times of the product of benefit, described 3rd time of exposure of the 3rd image and the product of the 3rd exposure gain are institute State the first time of exposure of the first image and 1/N times of the product of the first exposure gain, wherein, the value of N Scope is 2≤N≤4.
Method the most according to claim 2, it is characterised in that the first light of described first photographic head Second aperture F value of circle F value and described second camera is unequal, and the first of described first photographic head Aperture light-inletting quantity is M times of the second aperture light-inletting quantity of described second camera, the of described second image Two time of exposure are equal to described first time of exposure with the 3rd time of exposure sum of described 3rd image, M's Span is 1 < M≤4.
Method the most according to claim 7, it is characterised in that the first aperture of described first image Second aperture that product is described second image of light-inletting quantity, the first time of exposure and the first exposure gain three N times of the product of light-inletting quantity, the second time of exposure and the second exposure gain three, described 3rd image The product of the second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure gain three is described second image 1/N times of the product of the second aperture light-inletting quantity, the second time of exposure and the second exposure gain three, wherein, The span of N is 2≤N≤4.
Method the most according to claim 1, it is characterised in that described to described first image, institute State the second image and described 3rd image carry out image procossing, generate the step of target high dynamic range images, Including:
Based on described first image, described second image and described 3rd image, determine target normal exposure figure Picture, target overexposure image and target owe to expose image;
Extract described target normal exposure image, described target overexposure image and described target respectively to owe to expose image Half-tone information, obtain the first gray level image of described target normal exposure image, described target overexposure image The second gray level image and described target owe expose image the 3rd gray level image;
Using described first gray level image as benchmark, by described second gray level image and described 3rd gray level image Correction to the image that described first gray level image is same visual field;
Described first gray level image, described second gray level image and described 3rd gray level image are carried out image conjunction One-tenth processes, and generates described target high dynamic range images.
Method the most according to claim 9, it is characterised in that described to described first gray level image, Described second gray level image and described 3rd gray level image carry out image synthesis process, generate described target height and move The step of state range image, including:
For each pixel in described first gray level image, determine that described pixel is at described second ash respectively The pixel of correspondence position in degree image and described 3rd gray level image;
Obtain the described pixel the first gray value in described first gray level image, described pixel described In second gray level image, the second gray value of the pixel of correspondence position and described pixel are the described 3rd 3rd gray value of the pixel of correspondence position in gray level image;
Described first gray value, described second gray value and described 3rd gray value three are added, obtain ash Degree and value;
Based on grey scale mapping relation table, described gray scale and value are carried out gray value mapping, obtain a frame high dynamic range The Continuous Tone Image enclosed;
The color information of all pixels in described target normal exposure image is assigned to described middle gray Each pixel of correspondence position in image, generates described target high dynamic range images.
11. 1 kinds of mobile terminals, described mobile terminal includes the first photographic head and second camera, its feature Being, described mobile terminal also includes:
Acquisition module, for obtain that reference object is gathered by described first photographic head at the first time of exposure the One image, and obtain described second camera and in described first time of exposure, described reference object is adopted successively Second image of collection and the 3rd image;
Processing module, for described first image, described second image and the institute that obtain described acquisition module State the 3rd image and carry out image procossing, generate target high dynamic range images;
Wherein, described first image, described second image and described 3rd image be respectively normal exposure image, Overexposure image and the one owed in exposure image.
12. mobile terminals according to claim 11, it is characterised in that described acquisition module obtains Described first image be overexposure image, described second image is normal exposure image, and described 3rd image For deficient exposure image.
13. mobile terminals according to claim 11, it is characterised in that described acquisition module obtains Described first image be normal exposure image, described second image is overexposure image, and described 3rd image For deficient exposure image.
14. according to the mobile terminal described in claim 12 or 13, it is characterised in that described second image The 3rd time of exposure sum of the second time of exposure and described 3rd image equal to described first time of exposure.
15. mobile terminals according to claim 12, it is characterised in that described first photographic head First aperture F value is identical with the second aperture F value value of described second camera, described first image The product of the first time of exposure and the first exposure gain is second time of exposure and second of described second image N times of the product of exposure gain, described 3rd the 3rd time of exposure of image and taking advantage of of the 3rd exposure gain Amass as the second time of exposure of described second image and 1/N times of the product of the second exposure gain, wherein, N Span be 2≤N≤4.
16. mobile terminals according to claim 13, it is characterised in that described first photographic head First aperture F value is identical with the second aperture F value value of described second camera, described second image The product of the second time of exposure and the second exposure gain is first time of exposure and first of described first image N times of the product of exposure gain, described 3rd the 3rd time of exposure of image and taking advantage of of the 3rd exposure gain Amass as the first time of exposure of described first image and 1/N times of the product of the first exposure gain, wherein, N Span be 2≤N≤4.
17. mobile terminals according to claim 12, it is characterised in that described first photographic head Second aperture F value of the first aperture F value and described second camera is unequal, and described first photographic head The first aperture light-inletting quantity be M times of the second aperture light-inletting quantity of described second camera, described second figure When second time of exposure of picture exposes equal to described first with the 3rd time of exposure sum of described 3rd image Between, the span of M is 1 < M≤4.
18. mobile terminals according to claim 17, it is characterised in that the of described first image The product of one aperture light-inletting quantity, the first time of exposure and the first exposure gain three is the of described second image N times of the product of two aperture light-inletting quantities, the second time of exposure and the second exposure gain three, the described 3rd The product of the second aperture light-inletting quantity, the 3rd time of exposure and the 3rd exposure gain three of image is described second 1/N times of the product of the second aperture light-inletting quantity of image, the second time of exposure and the second exposure gain three, Wherein, the span of N is 2≤N≤4.
19. mobile terminals according to claim 11, it is characterised in that described processing module includes:
Determine submodule, be used for based on described first image, described second image and described 3rd image, really Normal exposure image, target overexposure image and the target of setting the goal owes to expose image;
Extract submodule, for extract respectively described determine described target normal exposure image that submodule determines, Described target overexposure image and described target owe to expose the half-tone information of image, obtain described target normal exposure figure First gray level image of picture, the second gray level image of described target overexposure image and described target owe to expose image 3rd gray level image;
Syndrome module, for described first gray level image that obtains using described extraction submodule as benchmark, By described second gray level image and described 3rd gray level image correction to being same with described first gray level image The image of visual field;
Process submodule, for described first gray level image that described extraction submodule is obtained, through described school Described second gray level image and described 3rd gray level image after syndrome generation module correction carry out image synthesis process, Generate described target high dynamic range images.
20. mobile terminals according to claim 19, it is characterised in that described process submodule bag Include:
Determine unit, for for each pixel in described first gray level image, determine described pixel respectively Point pixel of correspondence position in described second gray level image and described 3rd gray level image;
Acquiring unit, for obtaining the described pixel the first gray value in described first gray level image, institute State the second gray value of pixel pixel of correspondence position in described second gray level image and described picture Vegetarian refreshments is the 3rd gray value of the pixel of correspondence position in described 3rd gray level image;
Computing unit, for described first gray value obtained by described acquiring unit, described second gray value It is added with described 3rd gray value three, obtains gray scale and value;
Map unit, for the described gray scale obtained described computing unit based on grey scale mapping relation table and value Carry out gray value mapping, obtain the Continuous Tone Image of a vertical frame dimension dynamic range;
Processing unit, for being assigned to the color information of all pixels in described target normal exposure image In the described Continuous Tone Image that described map unit obtains, each pixel of correspondence position, generates described mesh Absolute altitude dynamic image.
CN201610466210.9A 2016-06-21 2016-06-21 A kind of generation method and mobile terminal of high dynamic range images Active CN105872148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610466210.9A CN105872148B (en) 2016-06-21 2016-06-21 A kind of generation method and mobile terminal of high dynamic range images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610466210.9A CN105872148B (en) 2016-06-21 2016-06-21 A kind of generation method and mobile terminal of high dynamic range images

Publications (2)

Publication Number Publication Date
CN105872148A true CN105872148A (en) 2016-08-17
CN105872148B CN105872148B (en) 2019-05-17

Family

ID=56655132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610466210.9A Active CN105872148B (en) 2016-06-21 2016-06-21 A kind of generation method and mobile terminal of high dynamic range images

Country Status (1)

Country Link
CN (1) CN105872148B (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161967A (en) * 2016-09-13 2016-11-23 维沃移动通信有限公司 A kind of backlight scene panorama shooting method and mobile terminal
CN106534694A (en) * 2016-11-28 2017-03-22 上海传英信息技术有限公司 Method and device for processing shooting pictures in night shooting mode
CN106657783A (en) * 2016-12-22 2017-05-10 努比亚技术有限公司 Image shooting device and method
CN106953967A (en) * 2017-02-27 2017-07-14 努比亚技术有限公司 A kind of image processing method and mobile terminal
CN107222680A (en) * 2017-06-30 2017-09-29 维沃移动通信有限公司 The image pickup method and mobile terminal of a kind of panoramic picture
CN107395898A (en) * 2017-08-24 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107566739A (en) * 2017-10-18 2018-01-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107613218A (en) * 2017-09-15 2018-01-19 维沃移动通信有限公司 The image pickup method and mobile terminal of a kind of high dynamic range images
CN107623820A (en) * 2017-11-03 2018-01-23 维沃移动通信有限公司 A kind of image pickup method, device and mobile terminal
CN107707827A (en) * 2017-11-14 2018-02-16 维沃移动通信有限公司 A kind of high-dynamics image image pickup method and mobile terminal
CN107888839A (en) * 2017-10-30 2018-04-06 广东欧珀移动通信有限公司 High-dynamic-range image acquisition method, device and equipment
CN108243314A (en) * 2016-12-27 2018-07-03 佳能株式会社 Image pick up equipment, image capture system and movable body
CN108337449A (en) * 2018-04-12 2018-07-27 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device based on dual camera and equipment
CN108616689A (en) * 2018-04-12 2018-10-02 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device based on portrait and equipment
CN109040603A (en) * 2018-10-15 2018-12-18 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN109120862A (en) * 2018-10-15 2019-01-01 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN110033421A (en) * 2019-04-09 2019-07-19 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110049254A (en) * 2019-04-09 2019-07-23 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110198417A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110290325A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
WO2019183813A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Image capture method and device
CN111416948A (en) * 2020-03-25 2020-07-14 维沃移动通信有限公司 Image processing method and electronic equipment
CN112019758A (en) * 2020-10-16 2020-12-01 湖南航天捷诚电子装备有限责任公司 Use method of airborne binocular head-mounted night vision device and night vision device
CN113132643A (en) * 2019-12-30 2021-07-16 Oppo广东移动通信有限公司 Image processing method and related product
CN113873178A (en) * 2020-06-30 2021-12-31 Oppo广东移动通信有限公司 Multimedia processing chip, electronic device and image processing method
WO2023178588A1 (en) * 2022-03-24 2023-09-28 Qualcomm Incorporated Capturing images using variable aperture imaging devices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986875A (en) * 2014-05-29 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Image acquiring device, method and terminal and video acquiring method
CN104349066A (en) * 2013-07-31 2015-02-11 华为终端有限公司 Method and device for generating images with high dynamic ranges
JP2015142342A (en) * 2014-01-30 2015-08-03 オリンパス株式会社 Imaging apparatus, image generation method and image generation program
CN105141833A (en) * 2015-07-20 2015-12-09 努比亚技术有限公司 Terminal photographing method and device
CN105185222A (en) * 2015-09-24 2015-12-23 百度在线网络技术(北京)有限公司 Method and apparatus for rendering and showing maps
CN105578023A (en) * 2015-05-27 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Image quick photographing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349066A (en) * 2013-07-31 2015-02-11 华为终端有限公司 Method and device for generating images with high dynamic ranges
JP2015142342A (en) * 2014-01-30 2015-08-03 オリンパス株式会社 Imaging apparatus, image generation method and image generation program
CN103986875A (en) * 2014-05-29 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Image acquiring device, method and terminal and video acquiring method
CN105578023A (en) * 2015-05-27 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Image quick photographing method and device
CN105141833A (en) * 2015-07-20 2015-12-09 努比亚技术有限公司 Terminal photographing method and device
CN105185222A (en) * 2015-09-24 2015-12-23 百度在线网络技术(北京)有限公司 Method and apparatus for rendering and showing maps

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161967A (en) * 2016-09-13 2016-11-23 维沃移动通信有限公司 A kind of backlight scene panorama shooting method and mobile terminal
CN106161967B (en) * 2016-09-13 2020-03-17 维沃移动通信有限公司 Backlight scene panoramic shooting method and mobile terminal
CN106534694A (en) * 2016-11-28 2017-03-22 上海传英信息技术有限公司 Method and device for processing shooting pictures in night shooting mode
CN106657783A (en) * 2016-12-22 2017-05-10 努比亚技术有限公司 Image shooting device and method
US10880504B2 (en) 2016-12-27 2020-12-29 Canon Kabushiki Kaisha Image pickup device, image capturing system, and movable body
CN108243314B (en) * 2016-12-27 2021-04-02 佳能株式会社 Image pickup apparatus, image capturing system, and movable body
CN108243314A (en) * 2016-12-27 2018-07-03 佳能株式会社 Image pick up equipment, image capture system and movable body
CN106953967A (en) * 2017-02-27 2017-07-14 努比亚技术有限公司 A kind of image processing method and mobile terminal
CN106953967B (en) * 2017-02-27 2020-02-18 努比亚技术有限公司 Image processing method and mobile terminal
CN107222680A (en) * 2017-06-30 2017-09-29 维沃移动通信有限公司 The image pickup method and mobile terminal of a kind of panoramic picture
CN107395898A (en) * 2017-08-24 2017-11-24 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
CN107395898B (en) * 2017-08-24 2021-01-15 维沃移动通信有限公司 Shooting method and mobile terminal
CN107613218A (en) * 2017-09-15 2018-01-19 维沃移动通信有限公司 The image pickup method and mobile terminal of a kind of high dynamic range images
CN107566739A (en) * 2017-10-18 2018-01-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107566739B (en) * 2017-10-18 2019-12-06 维沃移动通信有限公司 photographing method and mobile terminal
CN107888839A (en) * 2017-10-30 2018-04-06 广东欧珀移动通信有限公司 High-dynamic-range image acquisition method, device and equipment
CN107888839B (en) * 2017-10-30 2019-12-06 Oppo广东移动通信有限公司 high dynamic range image acquisition method, device and equipment
CN107623820B (en) * 2017-11-03 2019-10-29 维沃移动通信有限公司 A kind of image pickup method, device and mobile terminal
CN107623820A (en) * 2017-11-03 2018-01-23 维沃移动通信有限公司 A kind of image pickup method, device and mobile terminal
CN107707827B (en) * 2017-11-14 2020-05-01 维沃移动通信有限公司 High-dynamic image shooting method and mobile terminal
CN107707827A (en) * 2017-11-14 2018-02-16 维沃移动通信有限公司 A kind of high-dynamics image image pickup method and mobile terminal
CN111418201A (en) * 2018-03-27 2020-07-14 华为技术有限公司 Shooting method and equipment
CN111418201B (en) * 2018-03-27 2021-10-15 华为技术有限公司 Shooting method and equipment
WO2019183813A1 (en) * 2018-03-27 2019-10-03 华为技术有限公司 Image capture method and device
CN108616689A (en) * 2018-04-12 2018-10-02 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device based on portrait and equipment
CN108337449A (en) * 2018-04-12 2018-07-27 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device based on dual camera and equipment
CN109120862A (en) * 2018-10-15 2019-01-01 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN109040603A (en) * 2018-10-15 2018-12-18 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN110033421A (en) * 2019-04-09 2019-07-19 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110033421B (en) * 2019-04-09 2021-08-24 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN110049254A (en) * 2019-04-09 2019-07-23 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110198417A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110290325A (en) * 2019-06-28 2019-09-27 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN113132643A (en) * 2019-12-30 2021-07-16 Oppo广东移动通信有限公司 Image processing method and related product
CN111416948A (en) * 2020-03-25 2020-07-14 维沃移动通信有限公司 Image processing method and electronic equipment
CN113873178A (en) * 2020-06-30 2021-12-31 Oppo广东移动通信有限公司 Multimedia processing chip, electronic device and image processing method
CN113873178B (en) * 2020-06-30 2024-03-22 Oppo广东移动通信有限公司 Multimedia processing chip, electronic device and image processing method
CN112019758A (en) * 2020-10-16 2020-12-01 湖南航天捷诚电子装备有限责任公司 Use method of airborne binocular head-mounted night vision device and night vision device
WO2023178588A1 (en) * 2022-03-24 2023-09-28 Qualcomm Incorporated Capturing images using variable aperture imaging devices

Also Published As

Publication number Publication date
CN105872148B (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN105872148A (en) Method and mobile terminal for generating high dynamic range images
CN107197169B (en) high dynamic range image shooting method and mobile terminal
CN105827754B (en) A kind of generation method and mobile terminal of high dynamic range images
CN105827990B (en) A kind of automatic explosion method and mobile terminal
CN106937055A (en) A kind of image processing method and mobile terminal
CN106161967A (en) A kind of backlight scene panorama shooting method and mobile terminal
CN106027900A (en) Photographing method and mobile terminal
CN106231178B (en) A kind of self-timer method and mobile terminal
CN106131449A (en) A kind of photographic method and mobile terminal
CN106488133A (en) A kind of detection method of Moving Objects and mobile terminal
CN105227858A (en) A kind of image processing method and mobile terminal
CN107197170A (en) A kind of exposal control method and mobile terminal
CN105827971A (en) Image processing method and mobile terminal
CN107147837A (en) The method to set up and mobile terminal of a kind of acquisition parameters
CN106101545A (en) A kind of image processing method and mobile terminal
CN106648035A (en) Image resolution adjusting method and mobile terminal
CN106454085B (en) A kind of image processing method and mobile terminal
CN107465874B (en) A kind of dark current processing method and mobile terminal
CN107172346A (en) A kind of weakening method and mobile terminal
CN107395976A (en) A kind of acquisition parameters method to set up and mobile terminal
CN106454086A (en) Image processing method and mobile terminal
CN107026982B (en) A kind of photographic method and mobile terminal of mobile terminal
CN106097398B (en) A kind of detection method and mobile terminal of Moving Objects
CN106855744B (en) A kind of screen display method and mobile terminal
CN105827963A (en) Scene changing detection method during shooting process and mobile terminal

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