CN109005368A - A kind of generation method of high dynamic range images, mobile terminal and storage medium - Google Patents
A kind of generation method of high dynamic range images, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN109005368A CN109005368A CN201811196979.9A CN201811196979A CN109005368A CN 109005368 A CN109005368 A CN 109005368A CN 201811196979 A CN201811196979 A CN 201811196979A CN 109005368 A CN109005368 A CN 109005368A
- Authority
- CN
- China
- Prior art keywords
- image
- reference picture
- moving region
- dynamic range
- high dynamic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The application is suitable for technical field of image processing, provide a kind of generation method of high dynamic range images, mobile terminal and computer readable storage medium, the described method includes: acquiring time for exposure different multiple image by the camera of mobile terminal, and show the multiple image, using the image that prompts user to select a frame moving region clearest from the multiple image as reference picture, obtain the image that user chooses, and using the image chosen as reference picture, using other images other than reference picture described in the multiple image as candidate image, determine the registration of the candidate image and the reference picture, and the moving region based on the reference picture, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range images, high dynamic range can be improved by the application The fuzzy phenomenon of moving object contours in image.
Description
Technical field
The application belongs to technical field of image processing more particularly to a kind of generation method of high dynamic range images, movement
Terminal and computer readable storage medium.
Background technique
High dynamic range images (High-Dynamic Range, abbreviation HDR), compared to common image, can provide more
More dynamic ranges and image detail, according to LDR (Low-Dynamic Range) image of different time for exposure, using every
The LDR image of a time for exposure corresponding best details synthesizes final HDR image, can preferably reflect in people's true environment
Visual effect.
Currently, the high dynamic range images obtained after the image that multiple and different time for exposure shoot is synthesized, although can
Obtain more details;However, often there is the problem of local objects soft edge.Therefore, the high dynamic range shot at present
The effect of image is poor.
Summary of the invention
In view of this, the embodiment of the present application provides generation method, mobile terminal and the meter of a kind of high dynamic range images
Calculation machine readable storage medium storing program for executing often occurs that local objects soft edge, effect are poor to ask to solve current high dynamic range images
Topic.
The first aspect of the embodiment of the present application provides a kind of generation method of high dynamic range images, comprising:
Time for exposure different multiple image is acquired by the camera of mobile terminal, and shows the multiple image, with
The image that prompt user selects a frame moving region clearest from the multiple image is as reference picture;
The image that user chooses is obtained, and using the image chosen as reference picture, will be joined described in the multiple image
Other images other than image are examined as candidate image;
Determine the registration of the candidate image and the reference picture, and the moving region based on the reference picture,
Candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range images.
The second aspect of the embodiment of the present application provides a kind of mobile terminal, comprising:
Display unit acquires time for exposure different multiple image for the camera by mobile terminal, and shows institute
State multiple image, using prompt user to select a frame moving region clearest from the multiple image image as with reference to figure
Picture;
Reference picture determination unit, the image chosen for obtaining user, and using the image chosen as reference picture, it will
Other images other than reference picture described in the multiple image are as candidate image;
Image composing unit for determining the registration of the candidate image and the reference picture, and is based on the ginseng
The moving region for examining image, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range figure
Picture.
The third aspect of the embodiment of the present application provides a kind of mobile terminal, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing the method that the embodiment of the present application first aspect provides.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, and the computer program realizes the embodiment of the present application when being executed by one or more processors
On the one hand the step of the method provided.
5th aspect of the embodiment of the present application provides a kind of computer program product, and the computer program product includes
Computer program, the computer program realize that the embodiment of the present application first aspect provides when being executed by one or more processors
The method the step of.
The embodiment of the present application provides a kind of generation method of high dynamic range images, is adopted by the camera of mobile terminal
Set exposure time different multiple image, and show the multiple image, to prompt user to select one from the multiple image
The clearest image in frame moving region obtains the image that user chooses as reference picture, and using the image chosen as reference
Image determines the candidate image using other images other than reference picture described in the multiple image as candidate image
With the registration of the reference picture, and the moving region based on the reference picture schemes registration lower than the candidate of threshold value
Picture and reference picture synthesis obtain high dynamic range images, due to the image different from the multi-frame exposure time by user
The middle image for selecting a frame moving region clearest is as reference picture, in this way, the movement of the high dynamic range images after synthesis
Region is more visible;Also, the candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range figure
Picture, the other regions for the candidate image for selecting registration high and the moving region of reference picture synthesize high dynamic range images, protect
While card moving region is clear-cut, additionally it is possible to guarantee to obtain the more detail pictures of non-moving areas.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of the generation method of high dynamic range images provided by the embodiments of the present application;
Fig. 2 is the implementation process signal of the generation method of another high dynamic range images provided by the embodiments of the present application
Figure;
Fig. 3 is a kind of schematic block diagram of mobile terminal provided by the embodiments of the present application;
Fig. 4 is the schematic block diagram of another mobile terminal provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
Fig. 1 is a kind of implementation process schematic diagram of the generation method of high dynamic range images provided by the embodiments of the present application,
As shown, this method may comprise steps of:
Step S101 acquires time for exposure different multiple image by the camera of mobile terminal, and shows described more
Frame image, using the image that prompts user to select a frame moving region clearest from the multiple image as reference picture.
In the embodiment of the present application, the camera of mobile terminal can acquire multiple image, the time for exposure of multiple image
Can be different, after obtaining multiple image, multiple image is shown on the display interface of the mobile terminal, it can be according to acquisition
Time sequencing shown, can also be according to moving region from clearly being shown to fuzzy sequence.It is sent out while display
Prompt information out, using prompt user to select a frame moving region clearest from the multiple image image as with reference to figure
Picture.
Since user there may be moving object when shooting, when there are moving object, multiple time for exposure
In need there are short exposure time, the moving object of short exposure time acquisition is relatively clear, however, since movement exists
The process shot is likely due to the various factors such as hand shaking, and moving region may in the image acquired under minimum exposure time
Be not it is clearest, in order to the high dynamic range images finally synthesized moving region than more visible, need to choose a fortune
The clearest image in dynamic region therefrom selects one in this way, user can want the effect of shooting according to oneself as reference picture
A image is as reference picture.
Step S102 obtains the image that user chooses, and using the image chosen as reference picture, by the multiple image
Described in other images other than reference picture as candidate image.
In the embodiment of the present application, an image is chosen by modes such as physical button, virtual push button or touch-controls in user
It afterwards, can be using the image as reference picture, and using other images except the image as candidate image.
Step S103 determines the registration of the candidate image and the reference picture, and based on the reference picture
Moving region, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range images.
In the embodiment of the present application, the registration of candidate image and reference picture, the movement in reference picture can be determined
Region be it is clearest, therefore, can using the moving region in reference picture as synthesis high dynamic range images in fortune
The main characterization in dynamic region, using the non-moving areas in candidate image as other details in the high dynamic range images of synthesis
Main characterization.The registration of candidate image and reference picture is higher, indicates that two images are more similar, then after synthesis, institute's energy
The details of expression is fewer, if two images difference is bigger, after synthesis, the details that can be indicated is more, therefore, it is necessary to
Threshold value is set, and the candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range images.In this way,
The high dynamic range images of acquisition can obtain more details.
As the another embodiment of the application, the registration of the determination candidate image and the reference picture includes:
Obtain the gray difference image between the pixel in the pixel and the reference picture in the candidate image;
Binary conversion treatment is carried out to the gray difference image and obtains binary image, and is true according to the binary image
The registration of the fixed candidate image and the reference picture.
In the embodiment of the present application, the registration that can directly calculate the candidate image and the reference picture, can also
The registration of the candidate image and the reference picture will be calculated again after the moving region removal in each image.
For not removing moving region, candidate image and reference picture can be handled respectively as gray level image, then
Gray difference image between the two is calculated, i.e., is subtracted each other the gray value of the identical pixel of coordinate, so that it may obtain gray scale difference
Different image carries out binary conversion treatment to the gray difference image and obtains binary image, white area in binary image (or
Black region) it is exactly diff area between candidate image and the reference picture, according to the area or pixel of diff area
Number represent diversity factor;Similarly, black region (or white area) is exactly candidate image and the reference in binary image
Overlapping region between image represents registration according to the number of the area of overlapping region or pixel.
As the another embodiment of the application, registration is lower than threshold value by the moving region based on the reference picture
Candidate image and the reference picture synthesis obtain high dynamic range images include:
Based on the moving region of the reference picture, to the registration lower than the candidate image of threshold value moving region into
Row correction obtains candidate correcting image;
The reference picture and the candidate correcting image synthesis are obtained into high dynamic range images.
In the embodiment of the present application, in order to which the high dynamic range images kind moving region that finally obtains is than more visible.And it takes turns
Wide boundary is clearly demarcated, is also based on the moving region of the reference picture, is lower than the candidate image of threshold value to the registration
Moving region is corrected, and candidate correcting image is obtained;The reference picture and the candidate correcting image synthesis are obtained high
Dynamic image.Certainly, when calculating the registration between candidate image and reference picture, reference picture time can also be calculated
Registration between choosing correction image.
The embodiment of the present application selects a frame moving region most clear by user from the multi-frame exposure time different image
Clear image is as reference picture, in this way, the moving region of the high dynamic range images after synthesis is more visible;Also, it will be overlapped
Candidate image of the degree lower than threshold value and reference picture synthesis obtain high dynamic range images, select the candidate figure that registration is high
Other regions of picture and the moving region of reference picture synthesize high dynamic range images, guarantee clear-cut same in moving region
When, additionally it is possible to guarantee to obtain the more detail pictures of non-moving areas.
Fig. 2 is the implementation process signal of the generation method of another high dynamic range images provided by the embodiments of the present application
Figure, as shown, on the basis of this method is embodiment shown in Fig. 1, it is described how show the multiple image, specifically may be used
With the following steps are included:
Step S201 selectes a frame image, selects from other frame images except current frame image in the multiple image
Two field pictures are taken, and the two field pictures for calculating selection obtain two error images respectively with the difference of current frame image.
In the embodiment of the present application, when showing multiple image, it is desirable to by the moving region of multiple image according to from clear
It is shown to fuzzy sequence, to shorten the time that user selects, or directly using the clearest image in moving region as reference
Image, in this way, it is necessary to the moving region for first determining multiple image, before being corrected to the moving region of candidate image,
The difference of moving region between reference picture and candidate image is bigger, the difference being typically referenced between image and candidate image
The moving region of reference picture and the moving region of differential image are contained in image.Therefore, every in calculating multiple image
When the moving region of frame image, a frame image can be selected as current frame image, two field pictures are selected from other images, counted
The two field pictures chosen are calculated respectively with the difference of current frame image, obtain two error images.
Step S202 carries out binary conversion treatment to two error images respectively, obtains two binary images, and calculate two
The intersection area of the target area of a binary image obtains the moving region of current frame image.
In the embodiment of the present application, after obtaining two error images, can't current frame image moving region, also
It needs further to carry out the difference that binary conversion treatment can just embody a frame image and current frame image of selection to error image
Region could obtain diff area, to two diff areas therefore, it is necessary to carry out binary conversion treatment to two error images
Calculate intersection, so that it may obtain the moving region of current frame image.
As an example, the moving region c of moving region b, C image of moving region a, B image of A image, it is assumed that calculate A
The moving region of image carries out gray proces to A image, B image and C image first, handles and then calculates A for gray level image
The error image (gray scale difference value image) of image and B image chooses suitable threshold value and carries out binary conversion treatment, A image and B are schemed
Main difference as in embodies, therefore the binary image (two-value of the differential image between A image and B image obtained
Change image) in contain region a and region b, the same binary image for obtaining the differential image between A image and C image should
Region a and region c are contained in binary image, intersection are taken to two binary images, so that it may obtain region a, region a is just
It is the moving region of A image.After determining moving region, it is also necessary to determine the clarity or fuzziness of moving region.
Step S203 calculates the gray value difference of each pixel on the contour line of the moving region in a first direction
First gradient changing value, and calculate the gray value of each pixel on the contour line of the moving region respectively in second direction
On the second change of gradient value, the first direction and the second direction are vertical.
Step S204 calculates the data feature values of the first gradient changing value and the second change of gradient value, and root
The fuzziness of the moving region is obtained according to the data feature values.
In the embodiment of the present application, after moving region has determined, the contour line of moving region is also determined that in image,
The first ladder of the gray value of each pixel on the contour line of the moving region respectively in the horizontal direction can so be calculated
Changing value (each pixel corresponding a first gradient changing value) is spent, and calculates each picture on the contour line of the moving region
The second change of gradient value (corresponding second change of gradient of each pixel of the gray value of vegetarian refreshments respectively in the vertical direction
Value), in practice, a direction can also be only set, both direction also can be set, and both direction is vertical, can also be arranged
Multiple directions.Then twice of number of change of gradient value for obtaining pixel is calculating these change of gradient value (first gradients
Changing value and the second change of gradient value) data feature values (such as average value etc.), data feature values it is bigger (indicate change of gradient
It is bigger), then boundary is more clear, and moving region fuzziness is also lower.The mould of i.e. described data feature values and the moving region
Paste degree is inversely proportional.Fuzziness can be specific value, be also possible to grade.
Step S205, in calculating the multiple image after the fuzziness of the moving region of each frame image, according to institute
The sequence of fuzziness from small to large is stated, shows the multiple image.
In the embodiment of the present application, as can be seen from the above description, the fuzziness of the moving region of image and moving region side
The change of gradient value in boundary line is related, according to the sequence of the fuzziness from small to large, shows the multiple image, is also possible to root
According to the sequence of the data feature values of the first gradient changing value and the second change of gradient value from big to small, show described more
Frame image.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Fig. 3 is that the schematic block diagram for the mobile terminal that one embodiment of the application provides only is shown and this Shen for ease of description
It please the relevant part of embodiment.
The mobile terminal 3 can be the software unit being built in the mobile terminals such as mobile phone, tablet computer, notebook, hard
Part unit or the unit of soft or hard combination can also be used as independent pendant and be integrated into the mobile phone, tablet computer, notebook etc.
In mobile terminal.
The mobile terminal 3 includes:
Display unit 31 acquires time for exposure different multiple image for the camera by mobile terminal, and shows
The multiple image, using prompt user to select a frame moving region clearest from the multiple image image as with reference to figure
Picture;
Reference picture determination unit 32, the image chosen for obtaining user, and using the image chosen as reference picture,
Using other images other than reference picture described in the multiple image as candidate image;
Image composing unit 33, for determining the registration of the candidate image and the reference picture, and based on described
The moving region of reference picture, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range
Image.
Optionally, the display unit 31 is also used to:
Determine the moving region of every frame image in the multiple image, and according to moving region from clearly to fuzzy sequence
Show the multiple image.
Optionally, the display unit 31 includes:
Error image obtains module 311, in calculating the multiple image when moving region of every frame image, from institute
It states in other frame images in multiple image except current frame image and chooses two field pictures, and calculate the two field pictures difference of selection
With the difference of current frame image, two error images are obtained;
Moving region obtains module 312 and obtains two two-values for carrying out binary conversion treatment respectively to two error images
Change image, and calculate the intersection area of the target area of two binary images, obtains the moving region of current frame image.
Optionally, the display unit 31 further include:
Display module 313, the change of gradient of each pixel gray value on the contour line for calculating the moving region
Value, and the sequence according to the change of gradient value from big to small, show the multiple image.
Optionally, the display module 313 is also used to:
Calculate the first ladder of the gray value of each pixel on the contour line of the moving region respectively in a first direction
Changing value is spent, and calculates second of the gray value of each pixel on the contour line of the moving region respectively in a second direction
Change of gradient value, the first direction and the second direction are vertical;
The data feature values of the first gradient changing value and the second change of gradient value are calculated, and the data are special
The change of gradient value of each pixel gray value on contour line of the value indicative as the moving region.
Optionally, described image synthesis unit 33 includes:
Gray difference image collection module 331, for obtaining pixel and the reference picture in the candidate image
In pixel between gray difference image;
Registration determining module 332 obtains binary image for carrying out binary conversion treatment to the gray difference image,
And the registration of the candidate image and the reference picture is determined according to the binary image.
Optionally, described image synthesis unit 33 includes:
Rectification module 333 is lower than the candidate of threshold value to the registration for the moving region based on the reference picture
The moving region of image is corrected, and candidate correcting image is obtained;
Synthesis module 334, for the reference picture and the candidate correcting image synthesis to be obtained high dynamic range figure
Picture.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of the mobile terminal is divided into different functional unit or module, to complete
All or part of function described above.Each functional unit in embodiment, module can integrate in one processing unit,
It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units, above-mentioned collection
At unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function
Unit, module specific name be also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above-mentioned shifting
The specific work process for moving unit in terminal, module, can refer to corresponding processes in the foregoing method embodiment, no longer superfluous herein
It states.
Fig. 4 is the schematic block diagram for the mobile terminal that the another embodiment of the application provides.As shown in figure 4, the shifting of the embodiment
Dynamic terminal 4 includes: one or more processors 40, memory 41 and is stored in the memory 41 and can be in the processing
The computer program 42 run on device 40.The processor 40 realizes that above-mentioned each method is real when executing the computer program 42
Apply the step in example, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 40 executes the computer program
The function of each module/unit in above-mentioned mobile terminal embodiment, such as the function of module 31 to 33 shown in Fig. 3 are realized when 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the mobile terminal 4 is described.For example, the computer program 42 can be divided
It is cut into display unit, reference picture determination unit, image composing unit,
Display unit acquires time for exposure different multiple image for the camera by mobile terminal, and shows institute
State multiple image, using prompt user to select a frame moving region clearest from the multiple image image as with reference to figure
Picture;
Reference picture determination unit, the image chosen for obtaining user, and using the image chosen as reference picture, it will
Other images other than reference picture described in the multiple image are as candidate image;
Image composing unit for determining the registration of the candidate image and the reference picture, and is based on the ginseng
The moving region for examining image, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range figure
Picture.
Other units or module can refer to the description in embodiment shown in Fig. 3, and details are not described herein.
The mobile terminal includes but are not limited to processor 40, memory 41.It will be understood by those skilled in the art that figure
4 be only an example of mobile terminal 4, does not constitute the restriction to mobile terminal 4, may include more more or less than illustrating
Component, perhaps combine certain components or different components, for example, the mobile terminal can also include input equipment, it is defeated
Equipment, network access equipment, bus etc. out.
The processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the mobile terminal 4, such as the hard disk or interior of mobile terminal 4
It deposits.The memory 41 is also possible to the External memory equipment of the mobile terminal 4, such as be equipped on the mobile terminal 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the mobile terminal 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the mobile terminal
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed mobile terminal and method can pass through it
Its mode is realized.For example, mobile terminal embodiment described above is only schematical, for example, the module or list
Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit
Coupling or communication connection are connect, 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, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of generation method of high dynamic range images characterized by comprising
Time for exposure different multiple image is acquired by the camera of mobile terminal, and shows the multiple image, with prompt
The image that user selects a frame moving region clearest from the multiple image is as reference picture;
Obtain the image chosen of user, and using the image chosen as reference picture, by described in the multiple image with reference to figure
Other images as other than are as candidate image;
It determines the registration of the candidate image and the reference picture, and the moving region based on the reference picture, will weigh
The right candidate image lower than threshold value and reference picture synthesis obtain high dynamic range images.
2. the generation method of high dynamic range images as described in claim 1, which is characterized in that the display multiframe figure
As including:
Determine the moving region of every frame image in the multiple image, and according to moving region from clearly showing to fuzzy sequence
The multiple image.
3. the generation method of high dynamic range images as claimed in claim 2, which is characterized in that the determination multiframe figure
The moving region of every frame image includes: as in
In calculating the multiple image when moving region of every frame image, except current frame image in the multiple image
Two field pictures are chosen in other frame images, and the two field pictures for calculating selection obtain two respectively with the difference of current frame image
Error image;
Binary conversion treatment is carried out to two error images respectively, obtains two binary images, and calculate two binary images
Target area intersection area, obtain the moving region of current frame image.
4. the generation method of high dynamic range images as claimed in claim 2, which is characterized in that it is described according to moving region from
It is clear to show that the multiple image includes: to fuzzy sequence
The change of gradient value of each pixel gray value on the contour line of the moving region is calculated, and according to the change of gradient
The sequence of value from big to small, shows the multiple image.
5. the generation method of high dynamic range images as claimed in claim 4, which is characterized in that described to calculate the motor area
The change of gradient value of each pixel gray value includes: on the contour line in domain
The first gradient of the gray value of each pixel on the contour line of the moving region respectively in a first direction is calculated to become
Change value, and calculate the second gradient of the gray value of each pixel on the contour line of the moving region respectively in a second direction
Changing value, the first direction and the second direction are vertical;
Calculate the data feature values of the first gradient changing value and the second change of gradient value, and by the data feature values
The change of gradient value of each pixel gray value on contour line as the moving region.
6. such as the generation method of high dynamic range images described in any one of claim 1 to 5, which is characterized in that the determination
The registration of the candidate image and the reference picture includes:
Obtain the gray difference image between the pixel in the pixel and the reference picture in the candidate image;
Binary conversion treatment is carried out to the gray difference image and obtains binary image, and institute is determined according to the binary image
State the registration of candidate image and the reference picture.
7. such as the generation method of high dynamic range images described in any one of claim 1 to 5, which is characterized in that described to be based on
The moving region of the reference picture, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic
Range image includes:
Based on the moving region of the reference picture, the moving region to the registration lower than the candidate image of threshold value is rectified
Just, candidate correcting image is obtained;
The reference picture and the candidate correcting image synthesis are obtained into high dynamic range images.
8. a kind of mobile terminal characterized by comprising
Display unit acquires time for exposure different multiple image for the camera by mobile terminal, and shows described more
Frame image, using the image that prompts user to select a frame moving region clearest from the multiple image as reference picture;
Reference picture determination unit, the image chosen for obtaining user, and using the image chosen as reference picture, it will be described
Other images other than reference picture described in multiple image are as candidate image;
Image composing unit, for determining the registration of the candidate image and the reference picture, and based on described with reference to figure
The moving region of picture, candidate image and reference picture synthesis by registration lower than threshold value obtain high dynamic range images.
9. a kind of mobile terminal, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey
Sequence realizes the step such as any one of claim 1 to 7 the method when the computer program is executed by one or more processors
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811196979.9A CN109005368B (en) | 2018-10-15 | 2018-10-15 | High dynamic range image generation method, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811196979.9A CN109005368B (en) | 2018-10-15 | 2018-10-15 | High dynamic range image generation method, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109005368A true CN109005368A (en) | 2018-12-14 |
CN109005368B CN109005368B (en) | 2020-07-31 |
Family
ID=64589985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811196979.9A Active CN109005368B (en) | 2018-10-15 | 2018-10-15 | High dynamic range image generation method, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109005368B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110166710A (en) * | 2019-06-21 | 2019-08-23 | 上海闻泰电子科技有限公司 | Image composition method, device, equipment and medium |
CN110532957A (en) * | 2019-08-30 | 2019-12-03 | 北京市商汤科技开发有限公司 | Face identification method and device, electronic equipment and storage medium |
CN111754411A (en) * | 2019-03-27 | 2020-10-09 | Tcl集团股份有限公司 | Image noise reduction method, image noise reduction device and terminal equipment |
CN112672056A (en) * | 2020-12-25 | 2021-04-16 | 维沃移动通信有限公司 | Image processing method and device |
CN113052815A (en) * | 2021-03-23 | 2021-06-29 | Oppo广东移动通信有限公司 | Image definition determining method and device, storage medium and electronic equipment |
CN113962876A (en) * | 2019-07-17 | 2022-01-21 | 中国电子科技集团公司第十三研究所 | Correction method and correction device for pixel distortion and terminal |
CN117278865A (en) * | 2023-11-16 | 2023-12-22 | 荣耀终端有限公司 | Image processing method and related device |
CN117576490A (en) * | 2024-01-16 | 2024-02-20 | 口碑(上海)信息技术有限公司 | Kitchen environment detection method and device, storage medium and electronic equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040145673A1 (en) * | 2003-01-15 | 2004-07-29 | Koichi Washisu | Camera and program |
CN101674428A (en) * | 2009-09-18 | 2010-03-17 | 青岛海信电器股份有限公司 | Video equipment control method, video playing equipment and playing control system |
CN102404602A (en) * | 2011-09-23 | 2012-04-04 | 浙江工业大学 | Vidicon definition detection method based on definition test card |
CN102694966A (en) * | 2012-03-05 | 2012-09-26 | 天津理工大学 | Construction method of full-automatic video cataloging system |
CN104349066A (en) * | 2013-07-31 | 2015-02-11 | 华为终端有限公司 | Method and device for generating images with high dynamic ranges |
CN105827971A (en) * | 2016-03-31 | 2016-08-03 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN106060418A (en) * | 2016-06-29 | 2016-10-26 | 深圳市优象计算技术有限公司 | IMU information-based wide dynamic image fusion method |
CN106131443A (en) * | 2016-05-30 | 2016-11-16 | 南京大学 | A kind of high dynamic range video synthetic method removing ghost based on Block-matching dynamic estimation |
CN107230192A (en) * | 2017-05-31 | 2017-10-03 | 广东欧珀移动通信有限公司 | Image processing method, device, computer-readable recording medium and mobile terminal |
CN107610075A (en) * | 2017-08-29 | 2018-01-19 | 维沃移动通信有限公司 | Image combining method and mobile terminal |
JP2018019319A (en) * | 2016-07-29 | 2018-02-01 | 株式会社Screenホールディングス | Image processing method, image processing device, and imaging device |
CN107800979A (en) * | 2017-10-23 | 2018-03-13 | 深圳看到科技有限公司 | High dynamic range video image pickup method and filming apparatus |
CN108459788A (en) * | 2018-03-15 | 2018-08-28 | 维沃移动通信有限公司 | A kind of image display method and terminal |
-
2018
- 2018-10-15 CN CN201811196979.9A patent/CN109005368B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040145673A1 (en) * | 2003-01-15 | 2004-07-29 | Koichi Washisu | Camera and program |
CN101674428A (en) * | 2009-09-18 | 2010-03-17 | 青岛海信电器股份有限公司 | Video equipment control method, video playing equipment and playing control system |
CN102404602A (en) * | 2011-09-23 | 2012-04-04 | 浙江工业大学 | Vidicon definition detection method based on definition test card |
CN102694966A (en) * | 2012-03-05 | 2012-09-26 | 天津理工大学 | Construction method of full-automatic video cataloging system |
CN104349066A (en) * | 2013-07-31 | 2015-02-11 | 华为终端有限公司 | Method and device for generating images with high dynamic ranges |
CN105827971A (en) * | 2016-03-31 | 2016-08-03 | 维沃移动通信有限公司 | Image processing method and mobile terminal |
CN106131443A (en) * | 2016-05-30 | 2016-11-16 | 南京大学 | A kind of high dynamic range video synthetic method removing ghost based on Block-matching dynamic estimation |
CN106060418A (en) * | 2016-06-29 | 2016-10-26 | 深圳市优象计算技术有限公司 | IMU information-based wide dynamic image fusion method |
JP2018019319A (en) * | 2016-07-29 | 2018-02-01 | 株式会社Screenホールディングス | Image processing method, image processing device, and imaging device |
CN107230192A (en) * | 2017-05-31 | 2017-10-03 | 广东欧珀移动通信有限公司 | Image processing method, device, computer-readable recording medium and mobile terminal |
CN107610075A (en) * | 2017-08-29 | 2018-01-19 | 维沃移动通信有限公司 | Image combining method and mobile terminal |
CN107800979A (en) * | 2017-10-23 | 2018-03-13 | 深圳看到科技有限公司 | High dynamic range video image pickup method and filming apparatus |
CN108459788A (en) * | 2018-03-15 | 2018-08-28 | 维沃移动通信有限公司 | A kind of image display method and terminal |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111754411A (en) * | 2019-03-27 | 2020-10-09 | Tcl集团股份有限公司 | Image noise reduction method, image noise reduction device and terminal equipment |
CN111754411B (en) * | 2019-03-27 | 2024-01-05 | Tcl科技集团股份有限公司 | Image noise reduction method, image noise reduction device and terminal equipment |
CN110166710A (en) * | 2019-06-21 | 2019-08-23 | 上海闻泰电子科技有限公司 | Image composition method, device, equipment and medium |
CN113962876A (en) * | 2019-07-17 | 2022-01-21 | 中国电子科技集团公司第十三研究所 | Correction method and correction device for pixel distortion and terminal |
CN113962876B (en) * | 2019-07-17 | 2024-06-21 | 中国电子科技集团公司第十三研究所 | Pixel distortion correction method, correction device and terminal |
CN110532957A (en) * | 2019-08-30 | 2019-12-03 | 北京市商汤科技开发有限公司 | Face identification method and device, electronic equipment and storage medium |
CN112672056A (en) * | 2020-12-25 | 2021-04-16 | 维沃移动通信有限公司 | Image processing method and device |
CN113052815A (en) * | 2021-03-23 | 2021-06-29 | Oppo广东移动通信有限公司 | Image definition determining method and device, storage medium and electronic equipment |
CN117278865A (en) * | 2023-11-16 | 2023-12-22 | 荣耀终端有限公司 | Image processing method and related device |
CN117576490A (en) * | 2024-01-16 | 2024-02-20 | 口碑(上海)信息技术有限公司 | Kitchen environment detection method and device, storage medium and electronic equipment |
CN117576490B (en) * | 2024-01-16 | 2024-04-05 | 口碑(上海)信息技术有限公司 | Kitchen environment detection method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109005368B (en) | 2020-07-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109005368A (en) | A kind of generation method of high dynamic range images, mobile terminal and storage medium | |
CN113205568B (en) | Image processing method, device, electronic equipment and storage medium | |
CN108765278A (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN109064390A (en) | A kind of image processing method, image processing apparatus and mobile terminal | |
CN112288665B (en) | Image fusion method and device, storage medium and electronic equipment | |
CN107395958B (en) | Image processing method and device, electronic equipment and storage medium | |
CN107204034B (en) | A kind of image processing method and terminal | |
CN108322724B (en) | Image solid matching method and binocular vision equipment | |
CN111383232B (en) | Matting method, matting device, terminal equipment and computer readable storage medium | |
CN106204513A (en) | The methods, devices and systems of image procossing | |
CN109005367A (en) | A kind of generation method of high dynamic range images, mobile terminal and storage medium | |
CN110199296A (en) | Face identification method, processing chip and electronic equipment | |
CN109671055B (en) | Pulmonary nodule detection method and device | |
CN112381707B (en) | Image generation method, device, equipment and storage medium | |
CN109785246A (en) | A kind of noise-reduction method of non-local mean filtering, device and equipment | |
CN108230234A (en) | Image virtualization processing method, device, storage medium and electronic equipment | |
CN109698944A (en) | View field's bearing calibration, projection device and computer readable storage medium | |
CN109255768A (en) | Image completion method, apparatus, terminal and computer readable storage medium | |
CN108805838A (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN109040596A (en) | A kind of method, mobile terminal and storage medium adjusting camera | |
CN110049332A (en) | A kind of method for compressing image, image compressing device and electronic equipment | |
CN109214996A (en) | A kind of image processing method and device | |
CN114862725A (en) | Method and device for realizing motion perception fuzzy special effect based on optical flow method | |
CN113052923A (en) | Tone mapping method, tone mapping apparatus, electronic device, and storage medium | |
CN107564085B (en) | Image warping processing method and device, computing equipment and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |