CN105872148B - A kind of generation method and mobile terminal of high dynamic range images - Google Patents
A kind of generation method and mobile terminal of high dynamic range images Download PDFInfo
- Publication number
- CN105872148B CN105872148B CN201610466210.9A CN201610466210A CN105872148B CN 105872148 B CN105872148 B CN 105872148B CN 201610466210 A CN201610466210 A CN 201610466210A CN 105872148 B CN105872148 B CN 105872148B
- Authority
- CN
- China
- Prior art keywords
- image
- exposure
- time
- camera
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/741—Circuitry 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0264—Details of the structure or mounting of specific components for a camera module assembly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational 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 present invention provides a kind of generation method of high dynamic range images and mobile terminals, wherein mobile terminal includes the first camera and second camera, this method comprises: obtaining the first image that the first camera acquires reference object in the first time for exposure, and obtain the second image and third image that second camera successively acquires reference object within the first time for exposure;Image procossing is carried out to the first image, the second image and third image, generates target high dynamic range images;Wherein, the first image, the second image and third image are respectively normal exposure image, overexposure image and owe to expose one of image.The embodiment of the present invention carries out image procossing according to the image of overexposure, deficient exposure and normal exposure, so that each frame image of output carries high dynamic range effect, the shooting for promoting user is experienced.
Description
Technical field
The present invention relates to the generation methods and movement of field of communication technology more particularly to a kind of high dynamic range images eventually
End.
Background technique
HDR (High-Dynamic Range, high dynamic range) can provide more dynamics compared to common image
Range and image detail and image seen by person are relatively.The existing general embodiment of HDR technology are as follows: open camera
And it is switched to HDR mode, the 3A algorithm of default is run, click is taken pictures, and different EV (Exposure Values, exposure is arranged
Value), the original RAW data an of normal exposure are grabbed, the RAW data of an overexposure, one is owed the RAW data exposed, then
Into image signal process process, the yuv data of a normal exposure is got, the yuv data of an overexposure, one is owed exposure
Yuv data is synthesized a yuv data using HDR algorithm, and is saved using jpeg format compression.
Single camera can only clapped due to that cannot obtain normal exposure, overexposure simultaneously and owe the image data exposed
According to when different exposure values is set separately, then successively grab the image data of different exposures, then realize HDR algorithm close
At.The effect of HDR can not be presented in real time when preview to user.
Summary of the invention
The embodiment of the present invention provides the generation method and mobile terminal of a kind of high dynamic range images, to solve the prior art
In the problem of high dynamic range effect image can not be presented in real time in preview image.
In a first aspect, the embodiment of the present invention provides a kind of generation method of high dynamic range images, it is applied to mobile terminal,
Mobile terminal includes the first camera and second camera, this method comprises:
The first image that the first camera acquires reference object in the first time for exposure is obtained, and obtains second camera
The second image and third image that reference object is successively acquired within the first time for exposure;
Image procossing is carried out to the first image, the second image and third image, generates target high dynamic range images;
Wherein, the first image, the second image and third image are respectively normal exposure image, overexposure image and owe to expose image
One of.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, and mobile terminal includes the first camera and second
Camera, mobile terminal further include:
Acquisition module, the first image that reference object is acquired in the first time for exposure for obtaining the first camera, and
Obtain the second image and third image that second camera successively acquires reference object within the first time for exposure;
Processing module, for carrying out image procossing to the first image, the second image and third image that obtain module acquisition,
Generate target high dynamic range images;
Wherein, the first image, the second image and third image are respectively normal exposure image, overexposure image and owe to expose image
One of.
In this way, overexposure is obtained within the first time for exposure using dual camera in the embodiment of the present invention, owes to expose and normally expose
The image of light is obtained present frame and is exported image according to three images using high dynamic range images algorithm composograph information,
It is all the image for carrying out the synthesis of high dynamic range images algorithm that each frame output image, which may be implemented, and each frame output image is all certainly
Effect with high dynamic range, and make user during shooting, the high dynamic range images effect that preview is seen is exactly
The effect finally shot promotes the shooting experience of user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention
Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without any creative labor, it can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows the flow charts of the generation method of the high dynamic range images of the embodiment of the present invention one;
Fig. 2 indicates the flow chart of the generation method of the high dynamic range images of the embodiment of the present invention two;
Fig. 3 indicates the flow chart of the generation method of the high dynamic range images of the embodiment of the present invention two;
One of the structure chart of mobile terminal of Fig. 4 expression embodiment of the present invention three;
Fig. 5 indicates the two of the structure chart of the mobile terminal of the embodiment of the present invention three;
Fig. 6 indicates the three of the structure chart of the mobile terminal of the embodiment of the present invention three;
Fig. 7 indicates the structural block diagram of the mobile terminal of the embodiment of the present invention four;
Fig. 8 shows the structural block diagrams of the mobile terminal of the embodiment of the present invention five.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
As shown in Figure 1, the embodiment of the present invention one provides a kind of generation method of high dynamic range images, it is applied to mobile whole
End, mobile terminal include the first camera and second camera, this method comprises:
Step 101 obtains the first image for acquire in the first time for exposure to reference object of the first camera, and acquisition the
The second image and third image that two cameras successively acquire reference object within the first time for exposure.
When detecting the preview interface for entering shooting, needs to send parameter configuration respectively to two cameras, make
The first camera is obtained within the first time for exposure, obtains the first image for being directed to reference object, second camera is in the first exposure
In time, the second image and third image for being directed to reference object are obtained.These three images that two of them camera obtains
Exposure is different, these three images are the image for same reference object.And these three images be respectively overexposure image, it is normal
One of exposure image and deficient exposure image.
Step 102 carries out image procossing to the first image, the second image and third image, generates target high dynamic range
Image.
After obtaining the first image, the second image and third image, high dynamic range is used for these three images
Image algorithm carrys out composograph information, generates target high dynamic range images.The image information wherein synthesized can be in preview circle
Face shown, so that user can be with live preview shooting effect, and the mesh that the effect of the shooting of preview namely ultimately generates
The effect of absolute altitude dynamic image improves the shooting experience of user.
The generation method of the high dynamic range images of the embodiment of the present invention is obtained within the first time for exposure using dual camera
It takes overexposure, owe to expose and the image of normal exposure, according to three images, using high dynamic range images algorithm composograph information,
It obtains present frame and exports image, it is all the figure for carrying out the synthesis of high dynamic range images algorithm that each frame output image, which may be implemented,
Picture, the effect of each all included high dynamic range of frame output image, and make user during shooting, the height that preview is seen
Dynamic image effect is exactly the effect finally shot, promotes the shooting experience of user.
Embodiment two
As shown in Fig. 2, being applied to mobile whole second embodiment of the present invention provides a kind of generation method of high dynamic range images
End, mobile terminal include the first camera and second camera, this method comprises:
Step 201 obtains the first image for acquire in the first time for exposure to reference object of the first camera, and acquisition the
The second image and third image that two cameras successively acquire reference object within the first time for exposure.
When detecting the preview interface for entering shooting, need to send parameter configuration respectively to two cameras,
It include aperture, exposure time and exposure gain in the parameter configuration sent respectively to the first camera and second camera.
The first parameter configuration wherein is sent to the first camera, sends the second parameter configuration and third ginseng to second camera
Number configuration information, and these three parameter configurations are not identical.
First camera within the first time for exposure, obtains according to the first parameter configuration and is directed to the first of reference object
Image, second camera within the first time for exposure, obtain needle according to the second parameter configuration and third parameter configuration
To the second image and third image of reference object.The exposure for these three images that two of them camera obtains is different, this
Three images are the image for same reference object.And these three images be respectively overexposure image, normal exposure image and
It owes to expose one of image.
The classification of three kinds of images is once elaborated below:
One: the first image of situation is overexposure image, and the second image is normal exposure image, and third image is to owe to expose figure
Picture.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.First aperture F value of the first camera is identical with the second aperture F value value of second camera, and the first of the first image exposes
Between light time with N times of product of the second time for exposure and the second exposure gain that the product of the first exposure gain is the second image,
The third time for exposure of third image and the product of third exposure gain are the second time for exposure and the second exposure of the second image
1/N times of the product of gain, wherein the value range of N is 2≤N≤4.
Such as: in the first aperture F value of the first camera and identical the second aperture F value value of second camera, the
One camera exports the first image of overexposure, and the first time for exposure was S, the first exposure gain is iso, and second camera is in S
Time in export respectively normal exposure the second image and owe expose third image.Second time for exposure of the second image is 1/
2S, the second exposure gain are iso, and the third time for exposure of third image is 1/2S, and third exposure gain is 1/2iso.
The product of the first time for exposure S and the first exposure gain iso of the first image are the second exposures of the second image at this time
Twice of the product of 1/2S and the second exposure gain iso between light time, the third time for exposure 1/2S and third of third image expose
The product of gain 1/2iso is the 1/2 of the product of the second time for exposure 1/2S and the second exposure gain iso of the second image.
Or first camera output overexposure the first image, the first time for exposure was S, the first exposure gain is iso, the
Two cameras export the second image of normal exposure respectively in the time of S and owe the third image exposed.The second of second image
Time for exposure is 3/4S, the second exposure gain is 2/3 times of iso, and the third time for exposure of third image is 1/4S, and third exposure increases
Benefit is iso.
The product of the first time for exposure S and the first exposure gain iso of the first image are the second exposures of the second image at this time
Twice of the product of 3/4S and the second exposure gain 2/3iso between light time, the third time for exposure 1/4S and third of third image expose
The product of gain of light iso is the 1/2 of the product of the second time for exposure 3/4S and the second exposure gain 2/3iso of the second image.
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.Then the first image
The first aperture light-inletting quantity, the first time for exposure and the first exposure gain three product be the second aperture entering light of the second image
N times of amount, the product of the second time for exposure and the second exposure gain three, the second aperture light-inletting quantity of third image, third exposure
It is exposed for the second aperture light-inletting quantity of the second image, the second time for exposure with second between light time with the product of third exposure gain three
1/N times of the product of gain of light three, wherein the value range of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value of the first camera is second cameraWhen, then
The light-inletting quantity of one camera is twice of second camera, and the first aperture light-inletting quantity of the first camera can be indicated with coefficient 2,
Second aperture light-inletting quantity of second camera can be indicated with coefficient 1.First camera exports the first image of overexposure, and first
Time for exposure is S, the first exposure gain is iso, and second camera exports the second image of normal exposure respectively in the time of S
With the third image of deficient exposure.Second time for exposure of the second image is 1/2S, and the second exposure gain is 2iso, the of third image
Three time for exposure were 1/2S, and third exposure gain is iso.
The first aperture entering light coefficient of discharge 2 of the first image, the first time for exposure S of the first image, the first exposure increase at this time
The product of beneficial iso is the second aperture entering light coefficient of discharge 1 of the second image, the exposure of the second time for exposure 1/2S of the second image and second
Twice of the product of gain of light 2iso, the third time for exposure 1/ of the second aperture entering light coefficient of discharge 1 of third image, third image
2S, third exposure gain iso product be the second aperture entering light coefficient of discharge 1 of the second image, the second image second exposure when
Between 1/2S, the second exposure gain 2iso product 1/2.
Or first camera output overexposure the first image, the first time for exposure was S, the first exposure gain is iso, the
Two cameras export the second image of normal exposure respectively in the time of S and owe the third image exposed.The second of second image
Time for exposure is 3/4S, the second exposure gain is 4/3 times of iso, and the third time for exposure of third image is 1/4S, and third exposure increases
Benefit is 2iso.
The first aperture entering light coefficient of discharge 2 of the first image, the first time for exposure S of the first image, the first exposure increase at this time
The product of beneficial iso is the second aperture entering light coefficient of discharge 1 of the second image, the exposure of the second time for exposure 3/4S of the second image and second
Twice of the product of gain of light 4/3iso, the third time for exposure of the second aperture entering light coefficient of discharge 1 of third image, third image
1/4S, third exposure gain 2iso product be the second aperture entering light coefficient of discharge 1 of the second image, the second image second exposure
The 1/2 of the product of time 3/4S, the second exposure gain 4/3iso.
Situation two:
First image is overexposure image, and the second image is to owe to expose image, and third image is normal exposure image.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.First aperture F value of the first camera is identical with the second aperture F value value of second camera, and the first of the first image exposes
Between light time with N times of product of third time for exposure and third exposure gain that the product of the first exposure gain is third image,
Second time for exposure of the second image and the product of the second exposure gain are that the third time for exposure of third image and third expose
1/N times of the product of gain, wherein the value range of N is 2≤N≤4.
Such as: in the first aperture F value of the first camera and identical the second aperture F value value of second camera, the
One camera exports the first image of overexposure, and the first time for exposure was S, the first exposure gain is iso, and second camera is in S
Time in export respectively normal exposure third image and owe expose the second image.The third time for exposure of third image is 1/
2S, third exposure gain are iso, and the second time for exposure of the second image is 1/2S, and the second exposure gain is 1/2iso.
The product of the first time for exposure S and the first exposure gain iso of the first image are that the third of third image exposes at this time
Twice of the product of 1/2S and third exposure gain iso between light time, the exposure of the second time for exposure 1/2S of the second image and second
The product of gain 1/2iso is the 1/2 of the product of the third time for exposure 1/2S and third exposure gain iso of third image.
Or first camera output overexposure the first image, the first time for exposure was S, the first exposure gain is iso, the
Two cameras export the third image of normal exposure respectively in the time of S and owe the second image exposed.The third of third image
Time for exposure is 3/4S, third exposure gain is 2/3 times of iso, and the second time for exposure of the second image is 1/4S, and the second exposure increases
Benefit is iso.
The product of the first time for exposure S and the first exposure gain iso of the first image are that the third of third image exposes at this time
Twice of the product of 3/4S and third exposure gain 2/3iso between light time, the second time for exposure 1/4S of the second image and second expose
The product of gain of light iso is the 1/2 of the product of the third time for exposure 3/4S and third exposure gain 2/3iso of third image.
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.Then the first image
The first aperture light-inletting quantity, the first time for exposure and the first exposure gain three product be the second aperture entering light of third image
N times of amount, the product of third time for exposure and third exposure gain three, the second aperture light-inletting quantity of the second image, the second exposure
It is exposed between light time with the product of the second exposure gain three for the second aperture light-inletting quantity of third image, third time for exposure and third
1/N times of the product of gain of light three, wherein the value range of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value of the first camera is second cameraWhen, then
The light-inletting quantity of one camera is twice of second camera, and the first aperture light-inletting quantity of the first camera can be indicated with coefficient 2,
Second aperture light-inletting quantity of second camera can be indicated with coefficient 1.First camera exports the first image of overexposure, and first
Time for exposure is S, the first exposure gain is iso, and second camera exports the third image of normal exposure respectively in the time of S
With the second image of deficient exposure.The third time for exposure of third image is 1/2S, and third exposure gain is 2iso, the of the second image
Two time for exposure were 1/2S, and the second exposure gain is iso.
The first aperture entering light coefficient of discharge 2 of the first image, the first time for exposure S of the first image, the first exposure increase at this time
The product of beneficial iso is that the second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 1/2S of third image and third expose
Twice of the product of gain of light 2iso, the second time for exposure 1/ of the second aperture entering light coefficient of discharge 1 of the second image, the second image
2S, the second exposure gain iso product be the third aperture entering light coefficient of discharge 1 of third image, third image third exposure when
Between 1/2S, third exposure gain 2iso product 1/2.
Or first camera output overexposure the first image, the first time for exposure was S, the first exposure gain is iso, the
Two cameras export the third image of normal exposure respectively in the time of S and owe the second image exposed.The third of third image
Time for exposure is 3/4S, third exposure gain is 4/3 times of iso, and the second time for exposure of the second image is 1/4S, and the second exposure increases
Benefit is 2iso.
The first aperture entering light coefficient of discharge 2 of the first image, the first time for exposure S of the first image, the first exposure increase at this time
The product of beneficial iso is that the second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 3/4S of third image and third expose
Twice of the product of gain of light 4/3iso, the second time for exposure of the second aperture entering light coefficient of discharge 1 of the second image, the second image
1/4S, the second exposure gain 2iso product be the third aperture entering light coefficient of discharge 1 of third image, third image third exposure
The 1/2 of the product of time 3/4S, third exposure gain 4/3iso.
Three: the first image of situation is normal exposure image, and the second image is overexposure image, and third image is to owe to expose figure
Picture.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.First aperture F value of the first camera is identical with the second aperture F value value of second camera, and the second of the second image exposes
Between light time with N times of product of the first time for exposure and the first exposure gain that the product of the second exposure gain is the first image,
The third time for exposure of third image and the product of third exposure gain are the first time for exposure and the first exposure of the first image
1/N times of the product of gain, wherein the value range of N is 2≤N≤4.
Such as: in the first aperture F value of the first camera and identical the second aperture F value value of second camera, the
One camera exports the first image of normal exposure, and the first time for exposure was S, the first exposure gain is iso, second camera
It exports the second image of overexposure respectively in the time of S and owes the third image exposed.Second time for exposure of the second image is 1/
2S, the second exposure gain are 4iso, and the third time for exposure of third image is 1/2S, and third exposure gain is iso.
The product of the second time for exposure 1/2S and the second exposure gain 4iso of the second image are the of the first image at this time
Twice of the product of one time for exposure S and the first exposure gain iso, the third time for exposure 1/2S and third of third image expose
The product of gain iso is the 1/2 of the product of the first time for exposure S and the first exposure gain iso of the first image.
Or first camera output normal exposure the first image, the first time for exposure was S, the first exposure gain is
Iso, second camera export the second image of overexposure respectively in the time of S and owe the third image exposed.The of second image
Two time for exposure were 3/4S, the second exposure gain is 8/3 times of iso, and the third time for exposure of third image is 1/4S, third exposure
Gain is 2iso.
The product of the second time for exposure 3/4S and the second exposure gain 8/3iso of the second image are the first images at this time
Twice of the product of first time for exposure S and the first exposure gain iso, the third time for exposure 1/4S and third of third image expose
The product of gain of light 2iso is the 1/2 of the product of the first time for exposure S and the first exposure gain iso of the first image.
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.Then the second image
The second aperture light-inletting quantity, the second time for exposure and the second exposure gain three product be the first aperture entering light of the first image
N times of amount, the product of the first time for exposure and the first exposure gain three, the second aperture light-inletting quantity of third image, third exposure
It is exposed for the first aperture light-inletting quantity of the first image, the first time for exposure with first between light time with the product of third exposure gain three
1/N times of the product of gain of light three, wherein the value range of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value of the first camera is second cameraWhen, then
The light-inletting quantity of one camera is twice of second camera, and the first aperture light-inletting quantity of the first camera can be indicated with coefficient 2,
Second aperture light-inletting quantity of second camera can be indicated with coefficient 1.First camera exports the first image of normal exposure, and
First time for exposure was S, the first exposure gain is iso, and second camera exports the second image of overexposure respectively in the time of S
With the third image of deficient exposure.Second time for exposure of the second image is 1/2S, and the second exposure gain is 8iso, the of third image
Three time for exposure were 1/2S, and third exposure gain is 2iso.
Second aperture entering light coefficient of discharge 1 of the second image, the second time for exposure 1/2S of the second image, the second exposure at this time
The product of gain 8iso is the first aperture entering light coefficient of discharge 2 of the first image, the exposure of the first time for exposure S of the first image and first
Twice of the product of gain of light iso, the third time for exposure 1/ of the second aperture entering light coefficient of discharge 1 of third image, third image
2S, third exposure gain 2iso product be the first aperture entering light coefficient of discharge 2 of the first image, the first image first exposure when
Between S, the first exposure gain iso product 1/2.
Or first camera output normal exposure the first image, the first time for exposure was S, the first exposure gain is
Iso, second camera export the second image of overexposure respectively in the time of S and owe the third image exposed.The of second image
Two time for exposure were 3/4S, the second exposure gain is 16/3 times of iso, and the third time for exposure of third image is 1/4S, and third exposes
The gain of light is 4iso.
Second aperture entering light coefficient of discharge 1 of the second image, the second time for exposure 3/4S of the second image, the second exposure at this time
The product of gain 16/3iso is the first aperture entering light coefficient of discharge 2 of the first image, the first time for exposure S of the first image and
Twice of the product of one exposure gain iso, when the second aperture entering light coefficient of discharge 1 of third image, the third of third image expose
Between 1/4S, third exposure gain 4iso product be the first aperture entering light coefficient of discharge 2 of the first image, the first image first expose
The 1/2 of the product of S, the first exposure gain iso between light time.
Four: the first image of situation is normal exposure image, and the second image is to owe to expose image, and third image is overexposure figure
Picture.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.First aperture F value of the first camera is identical with the second aperture F value value of second camera, and the third of third image exposes
Between light time with N times of product of the first time for exposure and the first exposure gain that the product of third exposure gain is the first image,
Second time for exposure of the second image and the product of the second exposure gain are the first time for exposure and the first exposure of the first image
1/N times of the product of gain, wherein the value range of N is 2≤N≤4.
Such as: in the first aperture F value of the first camera and identical the second aperture F value value of second camera, the
One camera exports the first image of normal exposure, and the first time for exposure was S, the first exposure gain is iso, second camera
The third image of the second image exposed and overexposure is owed in output respectively in the time of S.Second time for exposure of the second image is 1/
2S, the second exposure gain are iso, and the third time for exposure of third image is 1/2S, and third exposure gain is 4iso.
The product of the third time for exposure 1/2S and third exposure gain 4iso of third image are the of the first image at this time
Twice of the product of one time for exposure S and the first exposure gain iso, the exposure of the second time for exposure 1/2S of the second image and second
The product of gain iso is the 1/2 of the product of the first time for exposure S and the first exposure gain iso of the first image.
Or first camera output normal exposure the first image, the first time for exposure was S, the first exposure gain is
Iso, the third image of the second image exposed and overexposure is owed in output to second camera respectively in the time of S.The of second image
Two time for exposure were 1/4S, the second exposure gain is 2 times of iso, and the third time for exposure of third image is 3/4S, and third exposure increases
Benefit is 8/3iso.
The product of the third time for exposure 3/4S and the second exposure gain 8/3iso of third image are the first images at this time
Twice of the product of first time for exposure S and the first exposure gain iso, the second time for exposure 1/4S of the second image and second expose
The product of gain of light 2iso is the 1/2 of the product of the first time for exposure S and the first exposure gain iso of the first image.
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.Then third image
The second aperture light-inletting quantity, third time for exposure and third exposure gain three product be the first aperture entering light of the first image
N times of amount, the product of the first time for exposure and the first exposure gain three, the second aperture light-inletting quantity of the second image, the second exposure
It is exposed for the first aperture light-inletting quantity of the first image, the first time for exposure with first between light time with the product of the second exposure gain three
1/N times of the product of gain of light three, wherein the value range of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value of the first camera is second cameraWhen, then
The light-inletting quantity of one camera is twice of second camera, and the first aperture light-inletting quantity of the first camera can be indicated with coefficient 2,
Second aperture light-inletting quantity of second camera can be indicated with coefficient 1.First camera exports the first image of normal exposure, and
First time for exposure was S, the first exposure gain is iso, and the second image exposed is owed in output to second camera respectively in the time of S
With the third image of overexposure.Second time for exposure of the second image is 1/2S, and the second exposure gain is 2iso, the of third image
Three time for exposure were 1/2S, and third exposure gain is 8iso.
Second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 1/2S of third image, third exposure at this time
The product of gain 8iso is the first aperture entering light coefficient of discharge 2 of the first image, the exposure of the first time for exposure S of the first image and first
Twice of the product of gain of light iso, the second time for exposure 1/ of the second aperture entering light coefficient of discharge 1 of the second image, the second image
2S, the second exposure gain 2iso product be the first aperture entering light coefficient of discharge 2 of the first image, the first image first exposure when
Between S, the first exposure gain iso product 1/2.
Or first camera output normal exposure the first image, the first time for exposure was S, the first exposure gain is
Iso, the third image of the second image exposed and overexposure is owed in output to second camera respectively in the time of S.The of second image
Two time for exposure were 1/4S, the second exposure gain is 4 times of iso, and the third time for exposure of third image is 3/4S, and third exposure increases
Benefit is 16/3iso.
Second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 3/4S of third image, third exposure at this time
The product of gain 16/3iso is the first aperture entering light coefficient of discharge 2 of the first image, the first time for exposure S of the first image and
Twice of the product of one exposure gain iso, when the second aperture entering light coefficient of discharge 1 of the second image, the second of the second image expose
Between 1/4S, the second exposure gain 4iso product be the first aperture entering light coefficient of discharge 2 of the first image, the first image first expose
The 1/2 of the product of S, the first exposure gain iso between light time.
Five: the first image of situation is to owe to expose image, and the second image is normal exposure image, and third image is overexposure figure
Picture.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.First aperture F value of the first camera is identical with the second aperture F value value of second camera, and the third of third image exposes
Between light time with N times of product of the second time for exposure and the second exposure gain that the product of third exposure gain is the second image,
First time for exposure of the first image and the product of the first exposure gain are the second time for exposure and the second exposure of the second image
1/N times of the product of gain, wherein the value range of N is 2≤N≤4.
Such as: in the first aperture F value of the first camera and identical the second aperture F value value of second camera, the
The first image exposed is owed in the output of one camera, and the first time for exposure was S, the first exposure gain is 1/2iso, second camera
Export the second image of normal exposure and the third image of overexposure respectively in the time of S.Second time for exposure of the second image
For 1/2S, the second exposure gain is 2iso, and the third time for exposure of third image is 1/2S, and third exposure gain is 4iso.
The product of the third time for exposure 1/2S and third exposure gain 4iso of third image are the of the second image at this time
Twice of the product of two time for exposure 1/2S and the second exposure gain 2iso, the first time for exposure S of the first image and first expose
The product of gain of light 1/2iso is the 1/2 of the product of the second time for exposure 1/2S and the second exposure gain 2iso of the second image.
Or first camera output owe expose the first image, the first time for exposure was S, the first exposure gain is 1/
2iso, second camera export the second image of normal exposure and the third image of overexposure respectively in the time of S.Second image
The second time for exposure be 1/4S, the second exposure gain is 4 times of iso, the third time for exposure of third image is 3/4S, and third exposes
The gain of light is 3/8iso.
The product of the third time for exposure 3/4S and third exposure gain 8/3iso of third image are the second images at this time
Twice of the product of second time for exposure 1/4S and the second exposure gain 4iso, the first time for exposure S of the first image and first
The product of exposure gain 1/2iso is the 1/ of the product of the second time for exposure 1/4S and the second exposure gain 4iso of the second image
2。
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.Then third image
The second aperture light-inletting quantity, third time for exposure and third exposure gain three product be the second aperture entering light of the second image
N times of amount, the product of the second time for exposure and the second exposure gain three, the first aperture light-inletting quantity of the first image, the first exposure
It is exposed for the second aperture light-inletting quantity of the second image, the second time for exposure with second between light time with the product of the first exposure gain three
1/N times of the product of gain of light three, wherein the value range of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value of the first camera is second cameraWhen, then
The light-inletting quantity of one camera is twice of second camera, and the first aperture light-inletting quantity of the first camera can be indicated with coefficient 2,
Second aperture light-inletting quantity of second camera can be indicated with coefficient 1.The first image exposed, and first are owed in the output of first camera
Time for exposure is S, the first exposure gain is 1/2iso, and second camera exports the second of normal exposure respectively in the time of S
The third image of image and overexposure.Second time for exposure of the second image is 1/2S, and the second exposure gain is 4iso, third image
The third time for exposure be 1/2S, third exposure gain be 8iso.
Second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 1/2S of third image, third exposure at this time
The product of gain 8iso is the second aperture entering light coefficient of discharge 1 of the second image, the second time for exposure 1/2S of the second image and
Twice of the product of two exposure gain 4iso, when the first aperture entering light coefficient of discharge 2 of the first image, the first of the first image expose
Between S, the first exposure gain 1/2iso product be the second aperture entering light coefficient of discharge 1 of the second image, the second image second expose
The 1/2 of the product of 1/2S, the second exposure gain 4iso between light time.
Or first camera output owe expose the first image, the first time for exposure was S, the first exposure gain is 1/
2iso, second camera export the second image of normal exposure and the third image of overexposure respectively in the time of S.Second image
The second time for exposure be 1/4S, the second exposure gain is 8 times of iso, the third time for exposure of third image is 3/4S, and third exposes
The gain of light is 16/3iso.
Second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 3/4S of third image, third exposure at this time
The product of gain 16/3iso be the second aperture entering light coefficient of discharge 1 of the second image, the second image the second time for exposure 1/4S with
Twice of the product of second exposure gain 8iso, the first exposure of the first aperture entering light coefficient of discharge 2, the first image of the first image
Time S, the first exposure gain 1/2iso product be the second aperture entering light coefficient of discharge 1 of the second image, the second image second
The 1/2 of the product of time for exposure 1/4S, the second exposure gain 8iso.
Six: the first image of situation is to owe to expose image, and the second image is overexposure image, and third image is normal exposure diagram
Picture.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.First aperture F value of the first camera is identical with the second aperture F value value of second camera, and the second of the second image exposes
Between light time with N times of product of third time for exposure and third exposure gain that the product of the second exposure gain is third image,
First time for exposure of the first image and the product of the first exposure gain are that the third time for exposure of third image and third expose
1/N times of the product of gain, wherein the value range of N is 2≤N≤4.
Such as: in the first aperture F value of the first camera and identical the second aperture F value value of second camera, the
The first image exposed is owed in the output of one camera, and the first time for exposure was S, the first exposure gain is 1/2iso, second camera
Export the second image of overexposure and the third image of normal exposure respectively in the time of S.Second time for exposure of the second image
For 1/2S, the second exposure gain is 4iso, and the third time for exposure of third image is 1/2S, and third exposure gain is 2iso.
The product of the second time for exposure 1/2S and the second exposure gain 4iso of the second image are the of third image at this time
Twice of the product of three time for exposure 1/2S and third exposure gain 2iso, the first time for exposure S of the first image and first expose
The product of gain of light 1/2iso is the 1/2 of the product of the third time for exposure 1/2S and third exposure gain 2iso of third image.
Or first camera output owe expose the first image, the first time for exposure was S, the first exposure gain is 1/
2iso, second camera export the second image of overexposure and the third image of normal exposure respectively in the time of S.Second image
The second time for exposure be 3/4S, the second exposure gain is 8/3 times of iso, the third time for exposure of third image is 1/4S, third
Exposure gain is 4iso.
The product of the second time for exposure 3/4S and the second exposure gain 8/3iso of the second image are third images at this time
Twice of the product of third time for exposure 1/4S and third exposure gain 4iso, the first time for exposure S of the first image and first
The product of exposure gain 1/2iso is the 1/ of the product of the third time for exposure 1/4S and third exposure gain 4iso of third image
2。
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.Then the second image
The second aperture light-inletting quantity, the second time for exposure and the second exposure gain three product be the second aperture entering light of third image
N times of amount, the product of third time for exposure and third exposure gain three, the first aperture light-inletting quantity of the first image, the first exposure
It is exposed between light time with the product of the first exposure gain three for the second aperture light-inletting quantity of third image, third time for exposure and third
1/N times of the product of gain of light three, wherein the value range of N is 2≤N≤4.
Such as: in the second aperture F value that the first aperture F value of the first camera is second cameraWhen, then
The light-inletting quantity of one camera is twice of second camera, and the first aperture light-inletting quantity of the first camera can be indicated with coefficient 2,
Second aperture light-inletting quantity of second camera can be indicated with coefficient 1.The first image exposed, and first are owed in the output of first camera
Time for exposure is S, the first exposure gain is 1/2iso, and second camera exports the second image of overexposure respectively in the time of S
With the third image of normal exposure.Second time for exposure of the second image is 1/2S, and the second exposure gain is 8iso, third image
The third time for exposure be 1/2S, third exposure gain be 4iso.
Second aperture entering light coefficient of discharge 1 of the second image, the second time for exposure 1/2S of the second image, the second exposure at this time
The product of gain 8iso is the second aperture entering light coefficient of discharge 1 of third image, the third time for exposure 1/2S of third image and
Twice of the product of three exposure gain 4iso, when the first aperture entering light coefficient of discharge 2 of the first image, the first of the first image expose
Between S, the first exposure gain 1/2iso product be the second aperture entering light coefficient of discharge 1 of third image, third image third expose
The 1/2 of the product of 1/2S, third exposure gain 4iso between light time.
Or first camera output owe expose the first image, the first time for exposure was S, the first exposure gain is 1/
2iso, second camera export the second image of overexposure and the third image of normal exposure respectively in the time of S.Second image
The second time for exposure be 3/4S, the second exposure gain is 16/3 times of iso, the third time for exposure of third image is 1/4S, the
Three exposure gains are 8iso.
Second aperture entering light coefficient of discharge 1 of the second image, the second time for exposure 3/4S of the second image, the second exposure at this time
The product of gain 16/3iso be the second aperture entering light coefficient of discharge 1 of third image, third image third time for exposure 1/4S with
Twice of the product of third exposure gain 8iso, the first exposure of the first aperture entering light coefficient of discharge 2, the first image of the first image
Time S, the first exposure gain 1/2iso product be the third of the second aperture entering light coefficient of discharge 1 of third image, third image
The 1/2 of the product of time for exposure 1/4S, third exposure gain 8iso.
Above-mentioned six kinds of situations are in the first aperture F value of the first camera and the second aperture F value value phase of second camera
Meanwhile be with the product of the time for exposure of overexposure image and exposure gain normal exposure image time for exposure and exposure gain
2 times of product, owe expose image time for exposure and exposure gain product be normal exposure image time for exposure and exposure increase
It is illustrated for 1/2 times of product of benefit.
It is unequal in the first aperture F value of the first camera and the second aperture F value of second camera, with the first camera
The first aperture light-inletting quantity be for 2 times of the second aperture light-inletting quantity of second camera, with the light-inletting quantity of overexposure image, exposure
The product of time and exposure gain is 2 times of product of the light-inletting quantity of normal exposure image, time for exposure and exposure gain, owes to expose figure
The product of the light-inletting quantity of picture, time for exposure and exposure gain is light-inletting quantity, time for exposure and the exposure gain of normal exposure image
1/2 times of product for be illustrated.
Step 202 is based on the first image, the second image and third image, determines target normal exposure image, target overexposure
Image and target owe to expose image.
After obtaining the first image, the second image and third image, need to determine normal expose in these three images
Light image, overexposure image and deficient exposure image.The exposure of these three images can be compared with standard exposure range,
When exposure is located within the scope of standard exposure, determine that image is normal exposure image, when exposure is greater than standard exposure range
It when maximum value, determines that image is overexposure image, when exposure is less than the minimum value of standard exposure range, determines that image is to owe to expose
Image.
Step 203 extracts the gray scale letter that target normal exposure image, target overexposure image and target owe exposure image respectively
Breath obtains the first gray level image of target normal exposure image, the second gray level image of target overexposure image and target and owes exposure figure
The third gray level image of picture.
After determining that target normal exposure image, target overexposure image and target owe to expose image, for these three images
Grayscale information is extracted respectively, the first gray level image is obtained for the grayscale information of target normal exposure image, for target overexposure
The grayscale information of image obtains the second gray level image, and the grayscale information for owing to expose image for target obtains third gray level image.
Step 204, using the first gray level image as benchmark, the second gray level image and third gray level image are corrected to
One gray level image is the image of same visual field.
Due to the first gray level image be target normal exposure image formed gray level image, need be with the first gray level image
Benchmark owes the exposure third gray level image that image is formed progress to the second gray level image formed by target overexposure image and by target
Correction, so that the display view angle of the first gray level image, the second gray level image and third gray level image is identical.
Such as: when target normal exposure image is shot by the first camera, target overexposure image, target owe to expose
Image is shot by second camera, during being corrected on the basis of the first gray level image, need to by
The second gray level image and be corrected by the third gray level image that the deficient exposure image of target is formed that target overexposure image is formed.
Owing exposure image when target is shot by the first camera, target overexposure image and target normal exposure image
It is to be shot by second camera, corrected mistake on the basis of by the first gray level image of target normal exposure image
Cheng Zhong needs to be corrected the third gray level image formed by the deficient exposure image of target.
When target overexposure image is shot by the first camera, target owes to expose image and target normal exposure image
It is to be shot by second camera, corrected mistake on the basis of by the first gray level image of target normal exposure image
Cheng Zhong needs to be corrected the second gray level image formed by target overexposure image.
Step 205 carries out image synthesis processing to the first gray level image, the second gray level image and third gray level image, raw
At target high dynamic range images.
After the correction for completing gray level image, according to the first gray level image, the second gray level image and the third after correction
Gray level image carries out image synthesis processing, generates target high dynamic range images, and detailed process is as shown in Figure 3:
Step 2051, for each pixel in the first gray level image, determine respectively pixel in the second gray level image and
The pixel of corresponding position in third gray level image.
Pixel corresponding with pixel each in the first gray level image is determined in the second gray level image, in third gray scale
Pixel corresponding with pixel each in the first gray level image is determined in image, that is, establishes same pixel in the first grayscale image
Corresponding relationship in picture, the second gray level image and third gray level image.
Such as: for pixel 1 in the first gray level image, identical location lookup is to pixel in the second gray level image
1 ', identical location lookup is to pixel 1 " in third gray level image.Wherein pixel 1, pixel 1 ' and pixel 1 "
For embodiment of the same pixel in different gray level images.
Step 2052 obtains first gray value of the pixel in the first gray level image, pixel in the second gray level image
The second gray value and pixel of the pixel of middle corresponding position in third gray level image the pixel of corresponding position
Three gray values.
Then, for each pixel, first gray value of the pixel in the first gray level image is obtained, in the second ash
Spend the second gray value in image, and the third gray value in third gray level image.Wherein the range of the first gray value is 0
Between~255, the range of the second gray value is between 0~255, and the range of third gray value is also between 0~255.
First gray value, the second sum of the grayscale values third gray value three are added by step 2053, obtain gray scale and value.
The first gray value obtained for each pixel, the second sum of the grayscale values third gray value are added, obtained
Gray scale and value, wherein the range of gray scale and value is between 0~765.
Step 2054 carries out gray value mapping to gray scale and value based on grey scale mapping relation table, obtains a frame high dynamic range
The Continuous Tone Image enclosed.
After the gray scale and value for obtaining each pixel, ash is carried out to each gray scale and value according to grey scale mapping relation table
Angle value mapping, obtains corresponding grey scale value, obtains a vertical frame dimension dynamic range according to the grey scale value of each pixel
Continuous Tone Image.Wherein the range of grey scale value is between 0~255, grey scale mapping relation table be it is pre-set, according to
Gray scale and value can find corresponding grey scale value, and wherein the gray scale in grey scale mapping relation table and value are according to same picture
What three gray values that vegetarian refreshments obtains in normal exposure, the corresponding gray level image of under-exposure and overexposure obtained.
The color information of all pixels point in target normal exposure image is assigned in Continuous Tone Image by step 2055
Each pixel of corresponding position generates target high dynamic range images.
In the Continuous Tone Image for generating high dynamic range, according to the pixel and centre ash in target normal exposure image
The corresponding relationship for spending the pixel in image, is assigned to centre for the color information of all pixels point in target normal exposure image
Corresponding pixel in gray level image, finally obtains target high dynamic range images.
The generation method of the high dynamic range images of the embodiment of the present invention is obtained within the first time for exposure using dual camera
It takes overexposure, owe to expose and the image of normal exposure, according to three images, using high dynamic range images algorithm composograph information,
It obtains present frame and exports image, it is all the figure for carrying out the synthesis of high dynamic range images algorithm that each frame output image, which may be implemented,
Picture, the effect of each all included high dynamic range of frame output image, and make user during shooting, the height that preview is seen
Dynamic image effect is exactly the effect finally shot, promotes the shooting experience of user.
Embodiment three
It is not detailed in the embodiment of mobile terminal the following are a kind of embodiment for mobile terminal that the embodiment of the present invention three provides
The detail content described to the greatest extent, reference can be made to the above method embodiment.
Wherein, mobile terminal includes the first camera and second camera, as shown in figure 4, mobile terminal further include:
Acquisition module 10, the first image that reference object is acquired in the first time for exposure for obtaining the first camera,
And obtain the second image and third image that second camera successively acquires reference object within the first time for exposure.
Processing module 20, for carrying out image to the first image, the second image and third image that obtain the acquisition of module 10
Processing generates target high dynamic range images.
Wherein, the first image, the second image and third image are respectively normal exposure image, overexposure image and owe to expose image
One of.
Wherein, obtaining the first image that module 10 obtains is overexposure image, and the second image is normal exposure image, and third
Image is to owe to expose image.
Wherein, obtaining the first image that module 10 obtains is normal exposure image, and the second image is overexposure image, and third
Image is to owe to expose image.
Wherein, when the sum of the second time for exposure of the second image and the third time for exposure of third image are equal to the first exposure
Between.
Wherein, the first aperture F value of the first camera is identical with the second aperture F value value of second camera, the first figure
First time for exposure of picture and the product of the first exposure gain are the second time for exposure and the second exposure gain of the second image
N times of product, the third time for exposure of third image and the product of third exposure gain are the second time for exposure of the second image
With 1/N times of the product of the second exposure gain, wherein the value range of N is 2≤N≤4.
Wherein, the first aperture F value of the first camera is identical with the second aperture F value value of second camera, the second figure
Second time for exposure of picture and the product of the second exposure gain are the first time for exposure and the first exposure gain of the first image
N times of product, the third time for exposure of third image and the product of third exposure gain are the first time for exposure of the first image
With 1/N times of the product of the first exposure gain, wherein the value range of N is 2≤N≤4.
Wherein, the first aperture F value of the first camera and the second aperture F value of second camera are unequal, and first takes the photograph
As the first aperture light-inletting quantity of head is M times of the second aperture light-inletting quantity of second camera, the second time for exposure of the second image
It was equal to for the first time for exposure with the sum of third time for exposure of third image, the value range of M is 1 M≤4 <.
Wherein, the first aperture light-inletting quantity of the first image, the first time for exposure and the product of the first exposure gain three are
N times of second aperture light-inletting quantity of the second image, the second time for exposure and the product of the second exposure gain three, third image
Second aperture light-inletting quantity, third time for exposure and the product of third exposure gain three are the second aperture entering light of the second image
1/N times of amount, the product of the second time for exposure and the second exposure gain three, wherein the value range of N is 2≤N≤4.
Wherein, as shown in figure 5, processing module 20 includes:
It determines submodule 21, for being based on the first image, the second image and third image, determines target normal exposure figure
Picture, target overexposure image and target owe to expose image.
Extracting sub-module 22, for extracting target normal exposure image, the target overexposure that determining submodule 21 determines respectively
Image and target owe to expose the grayscale information of image, obtain the first gray level image, the target overexposure image of target normal exposure image
The second gray level image and target owe expose image third gray level image.
Correction module 23, for using the first gray level image that extracting sub-module 22 obtains as benchmark, by the second gray scale
Image and third gray level image are corrected to the image for the first gray level image being same visual field.
Submodule 24 is handled, the first gray level image, calibrated submodule 23 for obtaining to extracting sub-module 22 correct
The second gray level image and third gray level image afterwards carries out image synthesis processing, generates target high dynamic range images.
Wherein, as shown in fig. 6, processing submodule 24 includes:
Determination unit 241, for for each pixel in the first gray level image, determining pixel in the second gray scale respectively
The pixel of corresponding position in image and third gray level image.
Acquiring unit 242, it is grey second for obtaining first gray value, pixel of the pixel in the first gray level image
Spend the pixel of the second gray value and the pixel corresponding position in third gray level image of the pixel of corresponding position in image
The third gray value of point.
Computing unit 243, for will acquire the first gray value, the second sum of the grayscale values third gray value of the acquisition of unit 242
Three is added, and obtains gray scale and value.
Map unit 244, gray scale and value progress gray scale for being obtained based on grey scale mapping relation table to computing unit 243
Value mapping, obtains the Continuous Tone Image of a vertical frame dimension dynamic range.
Processing unit 245, it is single for the color information of all pixels point in target normal exposure image to be assigned to mapping
Each pixel of corresponding position in the Continuous Tone Image that member 244 obtains, generates target high dynamic range images.
The mobile terminal of the embodiment of the present invention, obtained within the first time for exposure using dual camera overexposure, owe expose and just
The image often exposed obtains present frame output figure using high dynamic range images algorithm composograph information according to three images
Picture, it is all the image for carrying out the synthesis of high dynamic range images algorithm that each frame output image, which may be implemented, and each frame exports image
The effect of all included high dynamic range, and make user during shooting, the high dynamic range images effect that preview is seen
It is exactly the effect finally shot, promotes the shooting experience of user.
Example IV
The embodiment of the present invention four provides a kind of mobile terminal, as shown in fig. 7, mobile terminal 700 includes: at least one
Manage device 701, memory 702, at least one network interface 704, user interface 703 and component 706 of taking pictures, component 706 of taking pictures packet
It includes: the first camera 7061 and second camera 7062.Various components in mobile terminal 700 are coupled by bus system 705
Together.It is understood that bus system 705 is for realizing the connection communication between these components.It includes data that bus system 705, which is removed,
It further include power bus, control bus and status signal bus in addition except bus.It, will in Fig. 7 but for the sake of clear explanation
Various buses are all designated as bus system 705.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
OnlyMemory, ROM), programmable read only memory (ProgrammableROM, PROM), Erasable Programmable Read Only Memory EPROM
(ErasablePROM, EPROM), electrically erasable programmable read-only memory (ElectricallyEPROM, EEPROM) dodge
It deposits.Volatile memory can be random access memory (RandomAccessMemory, RAM), and it is slow to be used as external high speed
It deposits.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(StaticRAM, SRAM), dynamic random access memory (DynamicRAM, DRAM), Synchronous Dynamic Random Access Memory
(SynchronousDRAM, SDRAM), double data speed synchronous dynamic RAM (DoubleDataRate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (SynchlinkDRAM, SLDRAM) and direct rambus random access memory
(DirectRambusRAM, DRRAM).The memory 702 of system and method described herein be intended to include but be not limited to these and
The memory of any other suitable type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as shows
Controller, media player (MediaPlayer), browser (Browser) etc., for realizing various applied business.Realize this
The program of inventive embodiments method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application
The program or instruction stored in program 7022, processor 701 is for obtaining the first camera in the first time for exposure to shooting pair
As the first image of acquisition, and obtain the second image that second camera successively acquires reference object within the first time for exposure
With third image;Image procossing is carried out to the first image, the second image and third image, generates target high dynamic range images;
Wherein, the first image, the second image and third image are respectively normal exposure image, overexposure image and owe to expose one in image
Kind.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701.
Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing
Device 701 can be general processor, digital signal processor (DigitalSignalProcessor, DSP), specific integrated circuit
(ApplicationSpecific IntegratedCircuit, ASIC), ready-made programmable gate array
(FieldProgrammableGateArray, FPGA) either other programmable logic device, discrete gate or transistor logic
Device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logical box in the embodiment of the present invention
Figure.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware decoding processor and execute completion, or use decoding processor
In hardware and software module combination execute completion.Software module can be located at random access memory, and flash memory, read-only memory can
In the storage medium of this fields such as program read-only memory or electrically erasable programmable memory, register maturation.The storage
Medium is located at memory 702, and processor 701 reads the information in memory 702, and the step of the above method is completed in conjunction with its hardware
Suddenly.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
SpecificIntegratedCircuits, ASIC), digital signal processor (DigitalSignalProcessing, DSP),
Digital signal processing appts (DSPDevice, DSPD), programmable logic device (ProgrammableLogicDevice, PLD),
Field programmable gate array (Field-ProgrammableGateArray, FPGA), general processor, controller, microcontroller
In device, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First image is overexposure image, and the second image is normal exposure image, and third image is to owe to expose image.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First image is normal exposure image, and the second image is overexposure image, and third image is to owe to expose image.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
The sum of second time for exposure and the third time for exposure of third image of second image were equal to for the first time for exposure.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First aperture F value of the first camera is identical with the second aperture F value value of second camera, the first image first exposure when
Between N times with the product of the second time for exposure and the second exposure gain that the product of the first exposure gain is the second image, third
The third time for exposure of image and the product of third exposure gain are the second time for exposure and the second exposure gain of the second image
1/N times of product, wherein the value range of N is 2≤N≤4.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First aperture F value of the first camera is identical with the second aperture F value value of second camera, the second image second exposure when
Between N times with the product of the first time for exposure and the first exposure gain that the product of the second exposure gain is the first image, third
The third time for exposure of image and the product of third exposure gain are the first time for exposure and the first exposure gain of the first image
1/N times of product, wherein the value range of N is 2≤N≤4.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First aperture F value of the first camera and the second aperture F value of second camera are unequal, and the first aperture of the first camera
Light-inletting quantity is M times of the second aperture light-inletting quantity of second camera, the of the second time for exposure of the second image and third image
The sum of three time for exposure were equal to for the first time for exposure, and the value range of M is 1 M≤4 <.
Optionally, the first figure that processor 701 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
The first aperture light-inletting quantity, the first time for exposure and the product of the first exposure gain three of first image are the second of the second image
Aperture light-inletting quantity, N times of product of the second time for exposure and the second exposure gain three, the second aperture entering light of third image
When amount, third time for exposure and the product of third exposure gain three are the second aperture light-inletting quantity of the second image, the second exposure
Between 1/N times with the product of the second exposure gain three, wherein the value range of N is 2≤N≤4.
Optionally, processor 701 is carrying out image procossing to the first image, the second image and third image, generates target
When high dynamic range images, be also used to: based on the first image, the second image and third image, determine target normal exposure image,
Target overexposure image and target owe to expose image;Target normal exposure image, target overexposure image and target is extracted respectively to owe to expose figure
The grayscale information of picture, obtain the first gray level image of target normal exposure image, the second gray level image of target overexposure image and
Target owes to expose the third gray level image of image;Using the first gray level image as benchmark, by the second gray level image and third grayscale image
As correction to the image for the first gray level image being same visual field;To the first gray level image, the second gray level image and third gray scale
Image carries out image synthesis processing, generates target high dynamic range images.
Optionally, processor 701 is carrying out image conjunction to the first gray level image, the second gray level image and third gray level image
It is also used to when generating target high dynamic range images at processing: for each pixel in the first gray level image, determining respectively
The pixel of pixel corresponding position in the second gray level image and third gray level image;Pixel is obtained in the first gray level image
In the first gray value, pixel the second gray value of the pixel of corresponding position and pixel in the second gray level image exist
The third gray value of the pixel of corresponding position in third gray level image;By the first gray value, the second sum of the grayscale values third gray scale
It is worth three to be added, obtains gray scale and value;Gray value mapping is carried out to gray scale and value based on grey scale mapping relation table, obtains a vertical frame dimension
The Continuous Tone Image of dynamic range;The color information of all pixels point in target normal exposure image is assigned to middle gray
Each pixel of corresponding position in image generates target high dynamic range images.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal of the embodiment of the present invention is obtained within the first time for exposure by processor 701 using dual camera
Overexposure, the image for owing exposure and normal exposure, are obtained according to three images using high dynamic range images algorithm composograph information
It obtains present frame and exports image, it is all the image for carrying out the synthesis of high dynamic range images algorithm that each frame output image, which may be implemented,
The effect of each all included high dynamic range of frame output image, and make user during shooting, the height that preview is seen is dynamic
State range image effect is exactly the effect finally shot, promotes the shooting experience of user.
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, plate
Computer, personal digital assistant (PersonalDigital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 800 in Fig. 8 includes radio frequency (RadioFrequency, RF) circuit 810, memory 820, input list
First 830, display unit 840, component 850 of taking pictures, processor 860, voicefrequency circuit 870, WiFi (WirelessFidelity) mould
Block 880 and power supply 890, component 850 of taking pictures include: the first camera 8501 and second camera 8502.
Wherein, input unit 830 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 831.Touch panel 831, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 831 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 860 is given again, and can be received order that processor 860 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit
830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 840 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hair
The forms such as optical diode (OrganicLight-EmittingDiode, OLED) configure display panel 841.
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 860 is sent to determine the type of touch event, is followed by subsequent processing device
860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 821, and calling storage
Data in second memory 822 execute the various functions and processing data of mobile terminal 800, thus to mobile terminal 800
Carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/
Or the data in the second memory 822, processor 860 is for obtaining the first camera in the first time for exposure to reference object
First image of acquisition, and obtain the second image that second camera successively acquires reference object within the first time for exposure and
Third image;Image procossing is carried out to the first image, the second image and third image, generates target high dynamic range images;Its
In, the first image, the second image and third image are respectively normal exposure image, overexposure image and owe to expose one of image.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First image is overexposure image, and the second image is normal exposure image, and third image is to owe to expose image.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First image is normal exposure image, and the second image is overexposure image, and third image is to owe to expose image.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
The sum of second time for exposure and the third time for exposure of third image of second image were equal to for the first time for exposure.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First aperture F value of the first camera is identical with the second aperture F value value of second camera, the first image first exposure when
Between N times with the product of the second time for exposure and the second exposure gain that the product of the first exposure gain is the second image, third
The third time for exposure of image and the product of third exposure gain are the second time for exposure and the second exposure gain of the second image
1/N times of product, wherein the value range of N is 2≤N≤4.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First aperture F value of the first camera is identical with the second aperture F value value of second camera, the second image second exposure when
Between N times with the product of the first time for exposure and the first exposure gain that the product of the second exposure gain is the first image, third
The third time for exposure of image and the product of third exposure gain are the first time for exposure and the first exposure gain of the first image
1/N times of product, wherein the value range of N is 2≤N≤4.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
First aperture F value of the first camera and the second aperture F value of second camera are unequal, and the first aperture of the first camera
Light-inletting quantity is M times of the second aperture light-inletting quantity of second camera, the of the second time for exposure of the second image and third image
The sum of three time for exposure were equal to for the first time for exposure, and the value range of M is 1 M≤4 <.
Optionally, the first figure that processor 860 acquires reference object in the first time for exposure in the first camera of acquisition
Picture, and when obtaining the second image and third image that second camera successively acquires reference object within the first time for exposure,
The first aperture light-inletting quantity, the first time for exposure and the product of the first exposure gain three of first image are the second of the second image
Aperture light-inletting quantity, N times of product of the second time for exposure and the second exposure gain three, the second aperture entering light of third image
When amount, third time for exposure and the product of third exposure gain three are the second aperture light-inletting quantity of the second image, the second exposure
Between 1/N times with the product of the second exposure gain three, wherein the value range of N is 2≤N≤4.
Optionally, processor 860 is carrying out image procossing to the first image, the second image and third image, generates target
When high dynamic range images, be also used to: based on the first image, the second image and third image, determine target normal exposure image,
Target overexposure image and target owe to expose image;Target normal exposure image, target overexposure image and target is extracted respectively to owe to expose figure
The grayscale information of picture, obtain the first gray level image of target normal exposure image, the second gray level image of target overexposure image and
Target owes to expose the third gray level image of image;Using the first gray level image as benchmark, by the second gray level image and third grayscale image
As correction to the image for the first gray level image being same visual field;To the first gray level image, the second gray level image and third gray scale
Image carries out image synthesis processing, generates target high dynamic range images.
Optionally, processor 860 is carrying out image conjunction to the first gray level image, the second gray level image and third gray level image
It is also used to when generating target high dynamic range images at processing: for each pixel in the first gray level image, determining respectively
The pixel of pixel corresponding position in the second gray level image and third gray level image;Pixel is obtained in the first gray level image
In the first gray value, pixel the second gray value of the pixel of corresponding position and pixel in the second gray level image exist
The third gray value of the pixel of corresponding position in third gray level image;By the first gray value, the second sum of the grayscale values third gray scale
It is worth three to be added, obtains gray scale and value;Gray value mapping is carried out to gray scale and value based on grey scale mapping relation table, obtains a vertical frame dimension
The Continuous Tone Image of dynamic range;The color information of all pixels point in target normal exposure image is assigned to middle gray
Each pixel of corresponding position in image generates target high dynamic range images.
The mobile terminal of the embodiment of the present invention is obtained within the first time for exposure by processor 860 using dual camera
Overexposure, the image for owing exposure and normal exposure, are obtained according to three images using high dynamic range images algorithm composograph information
It obtains present frame and exports image, it is all the image for carrying out the synthesis of high dynamic range images algorithm that each frame output image, which may be implemented,
The effect of each all included high dynamic range of frame output image, and make user during shooting, the height that preview is seen is dynamic
State range image effect is exactly the effect finally shot, promotes the shooting experience of user.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, can also make several improvements and retouch under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.
Claims (18)
1. a kind of generation method of high dynamic range images, is applied to mobile terminal, the mobile terminal includes the first camera
And second camera, which is characterized in that the described method includes:
The first image that first camera acquires reference object in the first time for exposure is obtained, and obtains described second and takes the photograph
The second image and third image that the reference object is successively acquired within first time for exposure as head;
Image procossing is carried out to the first image, second image and the third image, generates target high dynamic range
Image;
Wherein, the first image, second image and the third image be respectively normal exposure image, overexposure image and
It owes to expose one of image;
It is described to the first image, second image and the third image carry out image procossing, generate target high dynamic
The step of range image, comprising:
Based on the first image, second image and the third image, target normal exposure image, target overexposure are determined
Image and target owe to expose image;
The target normal exposure image, the target overexposure image and the target is extracted respectively to owe to expose the gray scale letter of image
Breath, obtains the first gray level image of the target normal exposure image, the second gray level image of the target overexposure image and institute
Target is stated to owe to expose the third gray level image of image;
Using first gray level image as benchmark, by second gray level image and the third gray level image correct to institute
State the image that the first gray level image is same visual field;
Image synthesis processing is carried out to first gray level image, second gray level image and the third gray level image, it is raw
At the target high dynamic range images.
2. the method according to claim 1, wherein the first image is overexposure image, second image
For normal exposure image, and the third image is to owe to expose image.
3. the method according to claim 1, wherein the first image be normal exposure image, described second
Image is overexposure image, and the third image is to owe to expose image.
4. according to the method in claim 2 or 3, which is characterized in that the second time for exposure of second image with it is described
The sum of third time for exposure of third image is equal to first time for exposure.
5. according to the method described in claim 2, it is characterized in that, the first aperture F value of first camera and described
Second aperture F value value of two cameras is identical, the first time for exposure of the first image and the product of the first exposure gain
It is N times of the product of the second time for exposure and the second exposure gain of second image, the third exposure of the third image
The product of time and third exposure gain is the 1/N of the second time for exposure of second image and the product of the second exposure gain
Times, wherein the value range of N is 2≤N≤4.
6. according to the method described in claim 3, it is characterized in that, the first aperture F value of first camera and described
Second aperture F value value of two cameras is identical, the second time for exposure of second image and the product of the second exposure gain
It is N times of the product of the first time for exposure and the first exposure gain of the first image, the third exposure of the third image
The product of time and third exposure gain is the 1/N of the first time for exposure of the first image and the product of the first exposure gain
Times, wherein the value range of N is 2≤N≤4.
7. according to the method described in claim 2, it is characterized in that, the first aperture F value of first camera and described
Second aperture F value of two cameras is unequal, and the first aperture light-inletting quantity of first camera is the second camera
M times of the second aperture light-inletting quantity, the third time for exposure of the second time for exposure of second image and the third image
The sum of be equal to first time for exposure, the value range of M is 1 M≤4 <.
8. the method according to the description of claim 7 is characterized in that the first aperture light-inletting quantity of the first image, the first exposure
It is the second aperture light-inletting quantity of second image, the second time for exposure and the with the product of the first exposure gain three between light time
N times of the product of two exposure gain threes, the second aperture light-inletting quantity, third time for exposure and the third of the third image expose
The product of gain three is the second aperture light-inletting quantity, the second time for exposure and the second exposure gain three of second image
1/N times of product, wherein the value range of N is 2≤N≤4.
9. the method according to claim 1, wherein described to first gray level image, second gray scale
The step of image and the third gray level image carry out image synthesis processing, generate the target high dynamic range images, comprising:
For each pixel in first gray level image, determine the pixel in second gray level image and institute respectively
State the pixel of corresponding position in third gray level image;
First gray value of the pixel in first gray level image, the pixel are obtained in second grayscale image
The second gray value and the pixel corresponding position in the third gray level image of the pixel of corresponding position as in
The third gray value of pixel;
Third gray value three described in first gray value, second sum of the grayscale values is added, gray scale and value are obtained;
Gray value mapping is carried out to the gray scale and value based on grey scale mapping relation table, obtains the intermediate ash of a vertical frame dimension dynamic range
Spend image;
The color information of all pixels point in the target normal exposure image is assigned in the Continuous Tone Image corresponding
Each pixel of position generates the target high dynamic range images.
10. a kind of mobile terminal, the mobile terminal includes the first camera and second camera, which is characterized in that the shifting
Dynamic terminal further include:
Acquisition module, the first image that reference object is acquired in the first time for exposure for obtaining first camera, and
Obtain the second image and third that the second camera successively acquires the reference object within first time for exposure
Image;
Processing module, the first image, second image and the third image for being obtained to the acquisition module
Image procossing is carried out, target high dynamic range images are generated;
Wherein, the first image, second image and the third image be respectively normal exposure image, overexposure image and
It owes to expose one of image;
The processing module includes:
It determines submodule, for being based on the first image, second image and the third image, determines that target normally exposes
Light image, target overexposure image and target owe to expose image;
Extracting sub-module, for extracting the target normal exposure image, the target that the determining submodule determines respectively
Overexposure image and the target owe to expose the grayscale information of image, obtain the target normal exposure image the first gray level image,
Second gray level image of the target overexposure image and the target owe to expose the third gray level image of image;
Correction module, for using first gray level image that the extracting sub-module obtains as benchmark, by described second
Gray level image and the third gray level image are corrected to the image for first gray level image being same visual field;
Handle submodule, first gray level image for obtaining to the extracting sub-module, through the correction module school
Second gray level image and the third gray level image after just carry out image synthesis processing, generate the target high dynamic range
Enclose image.
11. mobile terminal according to claim 10, which is characterized in that the first image for obtaining module and obtaining
For overexposure image, second image is normal exposure image, and the third image is to owe to expose image.
12. mobile terminal according to claim 10, which is characterized in that the first image for obtaining module and obtaining
For normal exposure image, second image is overexposure image, and the third image is to owe to expose image.
13. mobile terminal according to claim 11 or 12, which is characterized in that the second time for exposure of second image
It is equal to first time for exposure with the sum of third time for exposure of the third image.
14. mobile terminal according to claim 11, which is characterized in that the first aperture F value of first camera and
Second aperture F value value of the second camera is identical, the first time for exposure of the first image and the first exposure gain
Product be second image the second time for exposure and N times of product of the second exposure gain, the of the third image
The product of three time for exposure and third exposure gain is the second time for exposure of second image and multiplying for the second exposure gain
Long-pending 1/N times, wherein the value range of N is 2≤N≤4.
15. mobile terminal according to claim 12, which is characterized in that the first aperture F value of first camera and
Second aperture F value value of the second camera is identical, the second time for exposure of second image and the second exposure gain
Product be the first image the first time for exposure and N times of product of the first exposure gain, the of the third image
The product of three time for exposure and third exposure gain is the first time for exposure of the first image and multiplying for the first exposure gain
Long-pending 1/N times, wherein the value range of N is 2≤N≤4.
16. mobile terminal according to claim 11, which is characterized in that the first aperture F value of first camera and
Second aperture F value of the second camera is unequal, and the first aperture light-inletting quantity of first camera is described second
The third of M times of second aperture light-inletting quantity of camera, the second time for exposure of second image and the third image exposes
It is equal to first time for exposure the sum of between light time, the value range of M is 1 M≤4 <.
17. mobile terminal according to claim 16, which is characterized in that the first aperture light-inletting quantity of the first image,
When the product of first time for exposure and the first exposure gain three are the second aperture light-inletting quantity of second image, the second exposure
Between N times with the product of the second exposure gain three, the second aperture light-inletting quantity of the third image, third time for exposure and the
The product of three exposure gain threes is the second aperture light-inletting quantity, the second time for exposure and the second exposure gain of second image
1/N times of the product of three, wherein the value range of N is 2≤N≤4.
18. mobile terminal according to claim 10, which is characterized in that the processing submodule includes:
Determination unit, for for each pixel in first gray level image, determining the pixel described the respectively
The pixel of corresponding position in two gray level images and the third gray level image;
Acquiring unit exists for obtaining the first gray value, the pixel of the pixel in first gray level image
The second gray value of the pixel of corresponding position and the pixel are in the third grayscale image in second gray level image
The third gray value of the pixel of corresponding position as in;
Computing unit, third described in first gray value, second sum of the grayscale values for obtaining the acquiring unit
Gray value three is added, and obtains gray scale and value;
Map unit, for carrying out gray value with value to the gray scale that the computing unit obtains based on grey scale mapping relation table
Mapping, obtains the Continuous Tone Image of a vertical frame dimension dynamic range;
Processing unit, it is single for the color information of all pixels point in the target normal exposure image to be assigned to the mapping
Each pixel of corresponding position in the Continuous Tone Image that member obtains, generates the target high dynamic range images.
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 CN105872148A (en) | 2016-08-17 |
CN105872148B true 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) |
Families Citing this family (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
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 |
CN107566739B (en) * | 2017-10-18 | 2019-12-06 | 维沃移动通信有限公司 | photographing method and mobile terminal |
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 |
CN107707827B (en) * | 2017-11-14 | 2020-05-01 | 维沃移动通信有限公司 | High-dynamic image shooting method and mobile terminal |
WO2019183813A1 (en) * | 2018-03-27 | 2019-10-03 | 华为技术有限公司 | Image capture method and device |
CN108337449A (en) * | 2018-04-12 | 2018-07-27 | Oppo广东移动通信有限公司 | High-dynamic-range image acquisition method, device based on dual camera and equipment |
CN108616689B (en) * | 2018-04-12 | 2020-10-02 | Oppo广东移动通信有限公司 | Portrait-based high dynamic range image acquisition method, device 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 |
CN110033421B (en) * | 2019-04-09 | 2021-08-24 | Oppo广东移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN110049254B (en) * | 2019-04-09 | 2021-04-02 | Oppo广东移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN110290325B (en) * | 2019-06-28 | 2021-03-02 | Oppo广东移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN110198417A (en) * | 2019-06-28 | 2019-09-03 | Oppo广东移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
CN113132643B (en) * | 2019-12-30 | 2023-02-07 | Oppo广东移动通信有限公司 | Image processing method and related product |
CN111416948A (en) * | 2020-03-25 | 2020-07-14 | 维沃移动通信有限公司 | Image processing method and electronic equipment |
CN113873178B (en) * | 2020-06-30 | 2024-03-22 | Oppo广东移动通信有限公司 | Multimedia processing chip, electronic device and image processing method |
CN112019758B (en) * | 2020-10-16 | 2021-01-08 | 湖南航天捷诚电子装备有限责任公司 | 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 |
Citations (4)
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 |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
-
2016
- 2016-06-21 CN CN201610466210.9A patent/CN105872148B/en active Active
Patent Citations (4)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105872148A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105872148B (en) | A kind of generation method and mobile terminal of high dynamic range images | |
CN106331510B (en) | A kind of backlight photographic method and mobile terminal | |
CN105827754B (en) | A kind of generation method and mobile terminal of high dynamic range images | |
CN105827964B (en) | A kind of image processing method and mobile terminal | |
CN105827971B (en) | A kind of image processing method and mobile terminal | |
CN106791400B (en) | A kind of image display method and mobile terminal | |
CN106101545B (en) | A kind of image processing method and mobile terminal | |
CN105227858B (en) | A kind of image processing method and mobile terminal | |
CN107231530B (en) | A kind of photographic method and mobile terminal | |
CN107395976B (en) | A kind of acquisition parameters setting method and mobile terminal | |
CN105847674B (en) | A kind of preview image processing method and mobile terminal based on mobile terminal | |
CN107659769B (en) | A kind of image pickup method, first terminal and second terminal | |
CN106952235B (en) | A kind of image processing method and mobile terminal | |
CN106170058B (en) | A kind of exposure method and mobile terminal | |
CN106231178B (en) | A kind of self-timer method and mobile terminal | |
CN107222680A (en) | The image pickup method and mobile terminal of a kind of panoramic picture | |
CN107172361B (en) | A kind of method and mobile terminal of pan-shot | |
CN106657806B (en) | A kind of exposure method and mobile terminal | |
CN107197169A (en) | A kind of high dynamic range images image pickup method and mobile terminal | |
CN107395898A (en) | A kind of image pickup method and mobile terminal | |
CN107395998A (en) | A kind of image capturing method and mobile terminal | |
CN107302664A (en) | A kind of image pickup method and mobile terminal | |
CN106097398B (en) | A kind of detection method and mobile terminal of Moving Objects | |
CN107147837A (en) | The method to set up and mobile terminal of a kind of acquisition parameters | |
CN107026982B (en) | A kind of photographic method and mobile terminal of 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 |