CN101859430B - Method for generating high dynamic range (HDR) image and device therefor - Google Patents

Method for generating high dynamic range (HDR) image and device therefor Download PDF

Info

Publication number
CN101859430B
CN101859430B CN200910134240.XA CN200910134240A CN101859430B CN 101859430 B CN101859430 B CN 101859430B CN 200910134240 A CN200910134240 A CN 200910134240A CN 101859430 B CN101859430 B CN 101859430B
Authority
CN
China
Prior art keywords
pixel
original image
eigenvalue
image
training image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910134240.XA
Other languages
Chinese (zh)
Other versions
CN101859430A (en
Inventor
林照钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MSI Computer Shenzhen Co Ltd
Original Assignee
MSI Computer Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by MSI Computer Shenzhen Co Ltd filed Critical MSI Computer Shenzhen Co Ltd
Priority to CN200910134240.XA priority Critical patent/CN101859430B/en
Publication of CN101859430A publication Critical patent/CN101859430A/en
Application granted granted Critical
Publication of CN101859430B publication Critical patent/CN101859430B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention discloses a method for generating a high dynamic range (HDR) image and an electronic device. The method comprises the steps of: loading a brightness control model which is structured by an application type neural network algorithm; acquiring an original image; capturing a pixel characteristic value, a first characteristic value on a first direction and a second characteristic value on a second direction of the original image; and generating the HDR image on the basis of the pixel characteristic value, the first characteristic value and the second characteristic value of the original image through the brightness control model. The electronic device comprises the brightness control model, a characteristic value capturing unit and a brightness control program. The electronic device captures the pixel characteristic value, the first characteristic value and the second characteristic value of the original image through the characteristic value capturing unit and generates the HDR image based on the original image through the brightness control model.

Description

Produce method and the device of high dynamic range images
Technical field
The invention relates to a kind of method and device of image, particularly a kind of method and device that produces high dynamic range images.
Background technology
The mankind's vision system is in induction during light, be via arround distribution of light adjust the sensitization degree, so the mankind when excessive or excessively dark environment, through adaptation after a while, things arround can seeing.Photographic goods now, as video camera, camera, S.L.R, network camera ... wait basic principle in fact similar.With the principle of pin-hole imaging, by truncated picture, via camera lens, project on inductive component.But due to photosensory assembly as egative film (film), Charged Coupled Device sensor (Charge Coupled Device sensor, CCD sensor), complementary metal oxide semiconductor sensor (Complementary Metal-Oxide Semiconductor sensor, CMOS sensor) sensitive volume is different from human eye, and can't do dynamic adjustment along with image.So causing shooting image out usually to have certain a part of brightness crosses bright or excessively dark.Please refer to shown in " Fig. 1 " schematic diagram of its image that is the dynamic range deficiency.Image 10 is the image of the general captured dynamic range deficiency obtained of digital camera, the zone that wherein lower left corner image block 12 is too dark brightness, and upper right corner image block 14 is the excessively bright zone of brightness.This kind of situation make lower left corner image area certainly the details in the trees in 12 and house all because too secretly seeing clearly.
Knownly in order to overcome this problem, can adopt high dynamic range images (High Dynamic Range Images, HDR).The way of high dynamic range images is with different exposure settings, shoots the different sensitization degree of same area image, then, via the image synthetic technology, synthesizes the image that meets the human vision impression.Please refer to shown in " Fig. 2 ", it is the schematic diagram of the synthetic high dynamic range images of multiple images.High dynamic range images 20 sees through the image synthesis mode by the image 21,23,25,27,29 of multiple different sensitization degree, and a synthetic high dynamic range images 20.This way effect is fine, but shortcoming is also very obvious.At first can not there be error captured picture position, if there is error can cause the difficulty on synthesizing.Image is when taking, and required storage area also becomes multiple from individual, adds and processes the required time cost expended while synthesizing.So this be a kind ofly expend time in, storage area, error-prone way again.
Summary of the invention
In view of above problem, the invention provides a kind of method that produces high dynamic range images, use an original image, see through the brightness adjustment model that the neural network algorithm is trained and obtain and produce high dynamic range images.
Therefore, the invention provides the method for a kind of generation high dynamic range images (High Dynamic Range Image, HDR), the method comprises: load a brightness adjustment model, this brightness adjustment model is that application one neural network algorithm forms; Obtain an original image; Capture a pixel characteristic value, the First Eigenvalue on a first direction and the Second Eigenvalue on a second direction of this original image; And, according to this pixel characteristic value, this First Eigenvalue and this Second Eigenvalue of this original image, see through this brightness adjustment model and produce a high dynamic range images, wherein this pixel characteristic value of this original image utilizes following formula to calculate:
C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M
Wherein, C 1sum of all pixels, Y for the sum of all pixels of this pixel characteristic value of this original image, horizontal direction that N is this original image, vertical direction that M is this original image ijfor this first direction i in this original image brightness value and N, M, i and j that reaches j pixel of this second direction is positive integer, wherein this First Eigenvalue of this original image utilizes following formula to calculate:
C 2 x = Y ij - Y ( i + x ) j x
Wherein,
Figure GSB00001114842200023
for this First Eigenvalue of this original image, number, the Y that x is the pixel of this first direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction (i+x) jfor the brightness value of this first direction i+x in this original image and j pixel of this second direction and i, j and x are positive integer,
Wherein this Second Eigenvalue of this original image utilizes following formula to calculate:
C 2 y = Y ij - Y i ( j + y ) y
Wherein,
Figure GSB00001114842200025
for this Second Eigenvalue of this original image, number, the Y that y is the pixel of this second direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction i (j+y)for the brightness value of this first direction x in this original image and j+y pixel of this second direction and i, j and y are positive integer.
Wherein, the direction of above-mentioned first direction and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.
In addition, above-mentioned brightness adjustment model produces in external device (ED), comprising: load a plurality of frame training images; And the pixel characteristic value, the First Eigenvalue on first direction and the Second Eigenvalue on second direction that capture each frame training image, and see through neural network algorithm generation brightness adjustment model.
Wherein, the direction of above-mentioned first direction and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.
In addition, the pixel characteristic value of each frame training image utilizes following formula to calculate: C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M . Wherein, C 1sum of all pixels, Y for the sum of all pixels of the pixel characteristic value of each frame training image, horizontal direction that N is each frame training image, vertical direction that M is each frame training image ijfor first direction i in each frame training image brightness value and N, M, i and j that reaches j pixel of second direction is positive integer.
In this, the First Eigenvalue of above-mentioned each frame training image utilizes following formula to calculate: wherein,
Figure GSB00001114842200033
for the First Eigenvalue, the x of each frame training image be the pixel of first direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction (i+x) jfor the brightness value of first direction i+x in each frame training image and j pixel of second direction and i, j and x are positive integer.
In addition, the Second Eigenvalue of above-mentioned each frame training image utilizes following formula to calculate:
Figure GSB00001114842200034
wherein,
Figure GSB00001114842200035
for Second Eigenvalue, the y of each frame training image be the pixel of second direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction i (j+y)for the brightness value of first direction x in each frame training image and j+y pixel of second direction and i, j and y are positive integer.
Here, above-mentioned neural network algorithm is back propagation network (Back-propagation Neural Network, BNN) algorithm, radial basis function (Radial Basis Function, RBF) or autonomous feature reflection network (Self-Organizing Map, SOM) algorithm one of them.
Therefore, the present invention also provides a kind of device that produces high dynamic range images, and this device comprises: load the device of a brightness adjustment model, this brightness adjustment model is that application one neural network algorithm forms; Obtain the device of an original image; Capture the device of a pixel characteristic value, the First Eigenvalue on a first direction and the Second Eigenvalue on a second direction of this original image; And, according to this pixel characteristic value, this First Eigenvalue and this Second Eigenvalue of this original image, see through the device that this brightness adjustment model produces a high dynamic range images, wherein this pixel characteristic value of this original image utilizes following formula to calculate:
C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M
Wherein, C 1sum of all pixels, Y for the sum of all pixels of this pixel characteristic value of this original image, horizontal direction that N is this original image, vertical direction that M is this original image ijfor this first direction i in this original image brightness value and N, M, i and j that reaches j pixel of this second direction is positive integer,
Wherein this First Eigenvalue of this original image utilizes following formula to calculate:
C 2 x = Y ij - Y ( i + x ) j x
Wherein,
Figure GSB00001114842200043
for this First Eigenvalue of this original image, number, the Y that x is the pixel of this first direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction (i+x) jfor the brightness value of this first direction i+x in this original image and j pixel of this second direction and i, j and x are positive integer,
Wherein this Second Eigenvalue of this original image utilizes following formula to calculate:
C 2 y = Y ij - Y i ( j + y ) y
Wherein,
Figure GSB00001114842200045
for this Second Eigenvalue of this original image, number, the Y that y is the pixel of this second direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction i (j+y)for the brightness value of this first direction x in this original image and j+y pixel of this second direction and i, j and y are positive integer.
In this, the direction of above-mentioned first direction and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.
In this, above-mentioned brightness adjustment model produces in external device (ED), comprising: load a plurality of frame training images; And the pixel characteristic value, the First Eigenvalue on first direction and the Second Eigenvalue on second direction that capture each frame training image, and see through neural network algorithm generation brightness adjustment model.
Wherein, the direction of above-mentioned first direction and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.
In this, the pixel characteristic value of each frame training image utilizes following formula to calculate: C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M . Wherein, C 1sum of all pixels, Y for the sum of all pixels of the pixel characteristic value of each frame training image, horizontal direction that N is each frame training image, vertical direction that M is each frame training image ijfor first direction i in each frame training image brightness value and N, M, i and j that reaches j pixel of second direction is positive integer.
In addition, the First Eigenvalue of each frame training image utilizes following formula to calculate: wherein, for the First Eigenvalue, the x of each frame training image be the pixel of first direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction (i+x) jfor the brightness value of first direction i+x in each frame training image and j pixel of second direction and i, j and x are positive integer.
In this, the Second Eigenvalue of each frame training image utilizes following formula to calculate:
Figure GSB00001114842200054
wherein,
Figure GSB00001114842200055
for Second Eigenvalue, the y of each frame training image be the pixel of second direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction i (j+y)for the brightness value of first direction x in each frame training image and j+y pixel of second direction and i, j and y are positive integer.
Wherein, above-mentioned neural network algorithm is back propagation network (Back-propagation Neural Network, BNN) algorithm, radial basis function (Radial Basis Function, RBF) or autonomous feature reflection network (Self-Organizing, SOM) algorithm one of them.
According to method and the electronic installation of generation high dynamic range images provided by the present invention, can see through the neural network Algorithm for Training and produce the brightness adjustment model, and utilize the brightness adjustment model to be processed single image and produce high dynamic range images.And then can improve time and the storage area that needs to take multiple images, reduce the processing time of the synthetic single image of multiple images.
About feature of the present invention and practical application, hereby coordinate accompanying drawing to be described in detail as follows as most preferred embodiment.
The accompanying drawing explanation
The schematic diagram of the image that Fig. 1 is the dynamic range deficiency.
Fig. 2 is the schematic diagram of the synthetic high dynamic range images of multiple images.
Fig. 3 is the process flow diagram according to the method for the generation high dynamic range images of one embodiment of the invention.
Fig. 4 is the process flow diagram according to the generation brightness adjustment model of one embodiment of the invention.
Fig. 5 is the configuration diagram according to the electronic installation of the generation high dynamic range images of another embodiment of the present invention.
Fig. 6 is the process flow diagram according to the generation brightness adjustment model of another embodiment of the present invention.
Fig. 7 is the schematic diagram according to the back propagation network algorithm of embodiments of the invention.
[primary clustering symbol description]
10 images
12 lower left corner image block
14 upper right corner image block
20 high dynamic range images
21 images
23 images
25 images
27 images
29 images
30 electronic installations
32 storage elements
322 original images
34 processing units
344 brightness adjustment models
342 eigenwert acquisition units
346 brightness adjustment programs
36 output units
Embodiment
According to the method for generation high dynamic range images of the present invention, be applied to have the electronic installation of image acquisition function.This method can see through in software or firmware program and be built in the storage device of electronic installation, then carries out built-in software or firmware program collocation image acquisition function is realized the method according to generation high dynamic range images of the present invention by the processor of electronic installation.In this, electronic installation can be the digital camera (DIGITAL CAMERA) of tool image acquisition function, the computing machine of tool image acquisition function, the mobile phone (Mobile Phone) of tool image acquisition function or personal digital assistant (the Personal Digital Assistant of tool image acquisition function, but not only be confined to above-mentioned electronic installation PDA) etc..
Please refer to shown in Fig. 3, it is the process flow diagram according to the method for the generation high dynamic range images of one embodiment of the invention.Flow process of the present invention comprises the following steps:
S100, loading brightness adjustment model, the brightness adjustment model is that the application class neural network algorithm forms;
S110, obtain original image (original image);
Pixel characteristic value, the First Eigenvalue on first direction and the Second Eigenvalue on second direction of S120, acquisition original image; And
S130, according to pixel characteristic value, the First Eigenvalue and the Second Eigenvalue of original image, see through the brightness adjustment model and produce high dynamic range images.
Wherein, the direction of the first direction in step S120 and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.Though the direction of describing first direction in this is horizontal direction, the direction of second direction is vertical direction, but application is adjusted direction according to actual demand, as X axis intersects the direction of positive 45 degree and the direction that X axis intersects positive 135 degree, the direction and the X axis that intersect positive 30 degree as X axis intersect direction of positive 150 degree etc.Only the direction of the acquisition of the eigenwert of original image must with the direction consistent (being equidirectional) of the acquisition of the eigenwert of training image.
In addition, the pixel characteristic value of the original image in step S120 utilizes following formula to calculate: C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M . Wherein, C 1sum of all pixels, Y for the sum of all pixels of the pixel characteristic value of original image, horizontal direction that N is original image, vertical direction that M is original image ijfor first direction i in original image brightness value and N, M, i and j that reaches j pixel of second direction is positive integer.
In addition, the First Eigenvalue of the original image in step S120 utilizes following formula to calculate:
Figure GSB00001114842200082
wherein,
Figure GSB00001114842200083
for the First Eigenvalue of original image, number, the Y that x is the pixel of first direction in original image ijfor first direction i in original image brightness value, Y that reaches j pixel of second direction (i+x) jfor the brightness value of first direction i+x in original image and j pixel of second direction and i, j and x are positive integer.
In this, the Second Eigenvalue of the original image in step S120 is to utilize following formula to calculate:
Figure GSB00001114842200084
wherein,
Figure GSB00001114842200085
for the Second Eigenvalue of original image, number, the Y that y is the pixel of second direction in original image ijfor first direction i in original image brightness value, Y that reaches j pixel of second direction i (j+y)for the brightness value of first direction x in original image and j+y pixel of second direction and i, j and y are positive integer.
In addition, the described brightness adjustment model in step S100 produces in external device (ED).External device (ED) can be but be not limited to the computer installation of manufacturer or the computer installation in laboratory etc.Please refer to shown in Fig. 4, it is the process flow diagram according to the generation brightness adjustment model of one embodiment of the invention.The flow process that produces the brightness adjustment model comprises the following steps:
S200, load a plurality of frame training images; And
S210, the pixel characteristic value that captures each frame training image, the First Eigenvalue on first direction and the Second Eigenvalue on second direction, and see through neural network algorithm generation brightness adjustment model.
Wherein, the direction of the first direction described in step S210 and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.Though the direction of describing first direction in this is horizontal direction, the direction of second direction is vertical direction, but application is adjusted direction according to actual demand, as X axis intersects the direction of positive 45 degree and the direction that X axis intersects positive 135 degree, the direction and the X axis that intersect positive 30 degree as X axis intersect direction of positive 150 degree etc.Only the direction of the acquisition of the eigenwert of original image must with the direction consistent (being equidirectional) of the acquisition of the eigenwert of training image.
In addition, the pixel characteristic value of each the frame training image described in step S210 utilizes following formula to calculate: C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M . Wherein, C 1sum of all pixels, Y for the sum of all pixels of the pixel characteristic value of each frame training image, horizontal direction that N is each frame training image, vertical direction that M is each frame training image ijfor first direction i in each frame training image brightness value and N, M, i and j that reaches j pixel of second direction is positive integer.
In this, the First Eigenvalue of each the frame training image described in step S210 utilizes following formula to calculate:
Figure GSB00001114842200092
wherein,
Figure GSB00001114842200093
for the First Eigenvalue, the x of each frame training image be the pixel of first direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction (i+x) jfor the brightness value of first direction i+x in each frame training image and j pixel of second direction and i, j and x are positive integer.
In addition, the Second Eigenvalue of each the frame training image described in step S210 is to utilize following formula to calculate:
Figure GSB00001114842200094
wherein,
Figure GSB00001114842200095
for Second Eigenvalue, the y of each frame training image be the pixel of second direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction i (j+y)for the brightness value of first direction x in each frame training image and j+y pixel of second direction and i, j and y are positive integer.
In this, above-mentioned neural network algorithm can be back propagation network (Back-propagation Neural Network, BNN) algorithm, radial basis function (Radial Basis Function, RBF) or autonomous feature reflection network (Self-Organizing Map, SOM) algorithm one of them.
In addition, please refer to shown in Fig. 5, it is the configuration diagram according to the electronic installation of the generation high dynamic range images of another embodiment of the present invention.Electronic installation 30 comprises: storage element 32, processing unit 34 and output unit 36.Wherein, storage element 32 stores original image 322, storage element 32 can be but be not limited to random access memory (Random Access Memory, RAM), dynamic RAM (Dynamic Random Access Memory, DRAM) or wherein arbitrary of Synchronous Dynamic Random Access Memory (Synchronous Dynamic Random Access Memory, SDRAM).
Processing unit 34 connects storage element 32, and processing unit 34 can comprise: brightness adjustment model 344, eigenwert acquisition unit 342 and brightness adjustment program 346.Pixel characteristic value, the First Eigenvalue on first direction and the Second Eigenvalue on second direction of eigenwert acquisition unit 342 acquisition original images 322.Brightness adjustment model 344 is that the application class neural network algorithm forms.Brightness adjustment program 346, according to pixel characteristic value, the First Eigenvalue and the Second Eigenvalue of original image 322, sees through brightness adjustment model 344 and produces high dynamic range images.Processing unit 34 can be but be not limited to central processing unit (CPU), microprocessor (Micro Control Unit, MCU).Output unit 36 connects processing unit 34, and output unit 36 can be shown in the high dynamic range images of generation on the screen of electronic installation 30.
In this, the direction of above-mentioned first direction and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.Though the direction of describing first direction in this is horizontal direction, the direction of second direction is vertical direction, but application is adjusted direction according to actual demand, as X axis intersects the direction of positive 45 degree and the direction that X axis intersects positive 135 degree, the direction and the X axis that intersect positive 30 degree as X axis intersect direction of positive 150 degree etc.Only the direction of the acquisition of the eigenwert of original image must with the direction consistent (being equidirectional) of the acquisition of the eigenwert of training image.
In addition, the pixel characteristic value of original image 322 utilizes following formula to calculate: C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M . Wherein, C 1sum of all pixels, Y for the sum of all pixels of the pixel characteristic value of original image 322, horizontal direction that N is original image 322, vertical direction that M is original image 322 ijfor first direction i in original image 322 brightness value and N, M, i and j that reaches j pixel of second direction is positive integer.
In addition, the First Eigenvalue of original image 322 is to utilize following formula to calculate:
Figure GSB00001114842200102
wherein,
Figure GSB00001114842200103
for the First Eigenvalue of original image 322, number, the Y that x is the pixel of first direction in original image 322 ijfor first direction i in original image 322 brightness value, Y that reaches j pixel of second direction (i+x) jfor the brightness value of first direction i+x in original image 322 and j pixel of second direction and i, j and x are positive integer.
Wherein, the Second Eigenvalue of original image 322 is to utilize following formula to calculate:
Figure GSB00001114842200111
wherein, for the Second Eigenvalue of original image 322, number, the Y that y is the pixel of second direction in original image 322 ijfor first direction i in original image 322 brightness value, Y that reaches j pixel of second direction i (j+y)for the brightness value of first direction x in original image 322 and j+y pixel of second direction and i, j and y are positive integer.
In this, above-mentioned brightness adjustment model produces in external device (ED).External device (ED) can be but be not limited to the computer installation of manufacturer or the computer installation in laboratory etc.Please refer to shown in Fig. 6, it is the process flow diagram according to the generation brightness adjustment model of another embodiment of the present invention.The flow process that produces the brightness adjustment model comprises the following steps:
S300, load a plurality of frame training images; And
S310, the pixel characteristic value that captures each frame training image, the First Eigenvalue on first direction and the Second Eigenvalue on second direction, and see through neural network algorithm generation brightness adjustment model.
Wherein, the direction of the first direction described in step S310 and the direction of second direction are different, and the direction of first direction is horizontal direction, and the direction of second direction is vertical direction.Though the direction of describing first direction in this is horizontal direction, the direction of second direction is vertical direction, but application is adjusted direction according to actual demand, as X axis intersects the direction of positive 45 degree and the direction that X axis intersects positive 135 degree, the direction and the X axis that intersect positive 30 degree as X axis intersect direction of positive 150 degree etc.Only the direction of the acquisition of the eigenwert of original image must with the direction consistent (being equidirectional) of the acquisition of the eigenwert of training image.
In addition, the pixel characteristic value of each the frame training image described in step S310 utilizes following formula to calculate: C 1 = Y ij Σ i = 1 N Σ j = 1 M Y ij N × M . Wherein, C 1sum of all pixels, Y for the sum of all pixels of the pixel characteristic value of each frame training image, horizontal direction that N is each frame training image, vertical direction that M is each frame training image ijfor first direction i in each frame training image brightness value and N, M, i and j that reaches j pixel of second direction is positive integer.
In this, the First Eigenvalue of each the frame training image described in step S310 is to utilize following formula to calculate: wherein,
Figure GSB00001114842200122
for the First Eigenvalue, the x of each frame training image be the pixel of first direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction (i+x) jfor the brightness value of first direction i+x in each frame training image and j pixel of second direction and i, j and x are positive integer.
In addition, the Second Eigenvalue of each the frame training image described in step S310 utilizes following formula to calculate:
Figure GSB00001114842200123
wherein, for Second Eigenvalue, the y of each frame training image be the pixel of second direction in each frame training image number, Y ijfor first direction i in each frame training image brightness value, Y that reaches j pixel of second direction i (j+y)for the brightness value of first direction x in each frame training image and j+y pixel of second direction and i, j and y are positive integer.
In this, above-mentioned neural network algorithm can be back propagation network (Back-propagation Neural Network, BNN) algorithm, radial basis function (Radial Basis Function, RBF) or autonomous feature reflection network (Self-Organizing Map, SOM) algorithm one of them.
In addition, please refer to shown in Fig. 7, it is the schematic diagram according to the back propagation network algorithm of embodiments of the invention.Back propagation network 40 comprises: input layer 42, hidden layer 44 and output layer 46.Wherein each frame training image has M*N pixel, and each pixel has three eigenwerts (pixel characteristic value, the First Eigenvalue and Second Eigenvalue).Input layer imports respectively the eigenwert of the pixel of training image into, so the node (X of input layer 42 1, X 2, X 3..., X α) the number summation be α=3*M*N.Node (the P of hidden layer 44 1, P 2, P 3..., P β) number be β, the node (Y of output layer 46 1, Y 2, Y 3..., Y γ) number be γ, and α>=β>=γ.After back propagation network Algorithm for Training and judgement convergence, can obtain the brightness adjustment model in all training images.Wherein between the input layer 42 of brightness adjustment model and hidden layer 44, obtain first group of weighted value W α β, obtain second group of weighted value W between hidden layer 44 and output layer 46 β γ.
Wherein, the value of each node of hidden layer 44 is utilized following formula to calculate and is obtained:
Figure GSB00001114842200131
wherein, P jvalue, X for j node of hidden layer 44 ivalue, W for i node of input layer 42 ijfor weighted value, the b between j node of i node of input layer 42 and hidden layer 44 jfor the side-play amount of j node of hidden layer 44 and α, i and j are positive integer.
In addition, the value of each node of output layer 46 is utilize following formula to calculate and obtain:
Figure GSB00001114842200132
wherein, Y kvalue, P for k node of output layer 46 jvalue, W for j node of hidden layer 44 jkfor weighted value, the c between k node of j node of hidden layer 44 and output layer 46 kfor the side-play amount of k node of output layer 46 and β, j and k are positive integer.
In addition, the judgement convergence is to utilize Mean Square Error value (Mean Squared Error, MSE) to calculate and obtain: MSE = 1 &lambda; &times; &gamma; &times; &Sigma; s &lambda; &Sigma; k &gamma; ( T k s - Y k s ) 2 < 10 - 10 . Wherein, the quantity summation that λ is training image, number of nodes summation, the T that γ is output layer k sbe target output value, the Y of k output node of s training image k sthe inference output valve and λ, γ, s and the k that are k output node of s training image are positive integer.
Although the present invention discloses as above with aforesaid preferred embodiment; so it is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; therefore when doing a little change and retouching, scope of patent protection of the present invention must be looked this instructions appending claims scope person of defining and is as the criterion.

Claims (10)

1. a method that produces high dynamic range images (High Dynamic Range Image, HDR), the method comprises:
Load a brightness adjustment model, this brightness adjustment model is that application one neural network algorithm forms;
Obtain an original image;
Capture a pixel characteristic value, the First Eigenvalue on a first direction and the Second Eigenvalue on a second direction of this original image; And
According to this pixel characteristic value, this First Eigenvalue and this Second Eigenvalue of this original image, see through this brightness adjustment model and produce a high dynamic range images,
Wherein this pixel characteristic value of this original image utilizes following formula to calculate:
C 1 = Y ij &Sigma; i = 1 N &Sigma; j = 1 M Y ij N &times; M
Wherein, C 1sum of all pixels, Y for the sum of all pixels of this pixel characteristic value of this original image, horizontal direction that N is this original image, vertical direction that M is this original image ijfor this first direction i in this original image brightness value and N, M, i and j that reaches j pixel of this second direction is positive integer,
Wherein this First Eigenvalue of this original image utilizes following formula to calculate:
C 2 x = Y ij - Y ( i + x ) j x
Wherein, for this First Eigenvalue of this original image, number, the Y that x is the pixel of this first direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction (i+x) jfor the brightness value of this first direction i+x in this original image and j pixel of this second direction and i, j and x are positive integer,
Wherein this Second Eigenvalue of this original image utilizes following formula to calculate:
C 2 y = Y ij + Y i ( j + y ) y
Wherein,
Figure FSB0000111484210000015
for this Second Eigenvalue of this original image, number, the Y that y is the pixel of this second direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction i (i+y)for the brightness value of this first direction x in this original image and j+y pixel of this second direction and i, j and y are positive integer.
2. the method for generation high dynamic range images as claimed in claim 1, wherein the direction of the direction of this first direction and this second direction is different, and the direction of this first direction is horizontal direction, and the direction of this second direction is vertical direction.
3. the method for generation high dynamic range images as claimed in claim 1, wherein this brightness adjustment model lies in an external device (ED) and produces, and comprising:
Load a plurality of frame training images; And
Capture a pixel characteristic value, the First Eigenvalue on a first direction and the Second Eigenvalue on a second direction of each this training image, and produce this brightness adjustment model through such neural network algorithm,
Wherein this pixel characteristic value of each this training image utilizes following formula to calculate:
C 1 = Y ij &Sigma; i = 1 N &Sigma; j = 1 M Y ij N &times; M
Wherein, C 1sum of all pixels, Y for the sum of all pixels of this pixel characteristic value of each this training image, horizontal direction that N is each this training image, vertical direction that M is each this training image ijfor this first direction i in each this training image brightness value and N, M, i and j that reaches j pixel of this second direction is positive integer,
Wherein this First Eigenvalue of each this training image utilizes following formula to calculate:
C 2 x = Y ij - Y ( i + x ) j x
Wherein,
Figure FSB0000111484210000023
for this First Eigenvalue, the x of each this training image be the pixel of this first direction in each this training image number, Y ijfor this first direction i in each this training image brightness value, Y that reaches j pixel of this second direction (i+x) jfor the brightness value of this first direction i+x in each this training image and j pixel of this second direction and i, j and x are positive integer,
Wherein this Second Eigenvalue of each this training image utilizes following formula to calculate:
C 2 y = Y ij + Y i ( j + y ) y
Wherein,
Figure FSB0000111484210000025
for this Second Eigenvalue, the y of each this training image be the pixel of this second direction in each this training image number, Y ijfor this first direction i in each this training image brightness value, Y that reaches j pixel of this second direction i (j+y)for the brightness value of this first direction x in each this training image and j+y pixel of this second direction and i, j and y are positive integer.
4. the method for generation high dynamic range images as claimed in claim 3, wherein the direction of the direction of this first direction and this second direction is different, and the direction of this first direction is horizontal direction, and the direction of this second direction is vertical direction.
5. the method for generation high dynamic range images as claimed in claim 1, wherein such neural network algorithm is back propagation network (Back-propagation Neural Network, BNN) algorithm, radial basis function (Radial Basis Function, RBF) or autonomous feature reflection network (Self-Organizing Map, SOM) algorithm one of them.
6. a device that produces high dynamic range images, this device comprises:
Load the device of a brightness adjustment model, this brightness adjustment model is that application one neural network algorithm forms;
Obtain the device of an original image;
Capture the device of a pixel characteristic value, the First Eigenvalue on a first direction and the Second Eigenvalue on a second direction of this original image; And
According to this pixel characteristic value, this First Eigenvalue and this Second Eigenvalue of this original image, see through the device that this brightness adjustment model produces a high dynamic range images,
Wherein this pixel characteristic value of this original image utilizes following formula to calculate:
C 1 = Y ij &Sigma; i = 1 N &Sigma; j = 1 M Y ij N &times; M
Wherein, C 1sum of all pixels, Y for the sum of all pixels of this pixel characteristic value of this original image, horizontal direction that N is this original image, vertical direction that M is this original image ijfor this first direction i in this original image brightness value and N, M, i and j that reaches j pixel of this second direction is positive integer,
Wherein this First Eigenvalue of this original image utilizes following formula to calculate:
C 2 x = Y ij - Y ( i + x ) j x
Wherein,
Figure FSB0000111484210000041
for this First Eigenvalue of this original image, number, the Y that x is the pixel of this first direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction (i+x) jfor the brightness value of this first direction i+x in this original image and j pixel of this second direction and i, j and x are positive integer,
Wherein this Second Eigenvalue of this original image utilizes following formula to calculate:
C 2 y = Y ij - Y i ( j + y ) y
Wherein,
Figure FSB0000111484210000043
for this Second Eigenvalue of this original image, number, the Y that y is the pixel of this second direction in this original image ijfor this first direction i in this original image brightness value, Y that reaches j pixel of this second direction i (j+y)for the brightness value of this first direction x in this original image and j+y pixel of this second direction and i, j and y are positive integer.
7. the device of generation high dynamic range images as claimed in claim 6, wherein the direction of the direction of this first direction and this second direction is different, and the direction of this first direction is horizontal direction, and the direction of this second direction is vertical direction.
8. the device of generation high dynamic range images as claimed in claim 6, wherein, this device comprises:
Load the device of a plurality of frame training images; And
Capture a pixel characteristic value, the First Eigenvalue on a first direction and the Second Eigenvalue on a second direction of each this training image, and see through the device that such neural network algorithm produces this brightness adjustment model,
Wherein this pixel characteristic value of each this training image utilizes following formula to calculate:
C 1 = Y ij &Sigma; i = 1 N &Sigma; j = 1 M Y ij N &times; M
Wherein, C 1sum of all pixels, Y for the sum of all pixels of this pixel characteristic value of each this training image, horizontal direction that N is each this training image, vertical direction that M is each this training image ijfor this first direction i in each this training image brightness value and N, M, i and j that reaches j pixel of this second direction is positive integer,
Wherein this First Eigenvalue of each this training image utilizes following formula to calculate:
C 2 x = Y ij - Y ( i + x ) j x
Wherein,
Figure FSB0000111484210000052
for this First Eigenvalue, the x of each this training image be the pixel of this first direction in each this training image number, Y ijfor this first direction i in each this training image brightness value, Y that reaches j pixel of this second direction (i+x) jfor the brightness value of this first direction i+x in each this training image and j pixel of this second direction and i, j and x are positive integer,
Wherein this Second Eigenvalue of each this training image utilizes following formula to calculate:
C 2 y = Y ij - Y i ( j + y ) y
Wherein,
Figure FSB0000111484210000054
for this Second Eigenvalue, the y of each this training image be the pixel of this second direction in each this training image number, Y ijfor this first direction i in each this training image brightness value, Y that reaches j pixel of this second direction i (j+y)for the brightness value of this first direction x in each this training image and j+y pixel of this second direction and i, j and y are positive integer.
9. the device of generation high dynamic range images as claimed in claim 8, wherein the direction of the direction of this first direction and this second direction is different, and the direction of this first direction is horizontal direction, and the direction of this second direction is vertical direction.
10. the device of generation high dynamic range images as claimed in claim 8, wherein such neural network algorithm is back propagation network (Back-propagation Neural Network, BNN) algorithm, radial basis function (Radial Basis Function, RBF) or autonomous feature reflection network (Self-OrganizingMap, SOM) algorithm one of them.
CN200910134240.XA 2009-04-09 2009-04-09 Method for generating high dynamic range (HDR) image and device therefor Active CN101859430B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910134240.XA CN101859430B (en) 2009-04-09 2009-04-09 Method for generating high dynamic range (HDR) image and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910134240.XA CN101859430B (en) 2009-04-09 2009-04-09 Method for generating high dynamic range (HDR) image and device therefor

Publications (2)

Publication Number Publication Date
CN101859430A CN101859430A (en) 2010-10-13
CN101859430B true CN101859430B (en) 2014-01-01

Family

ID=42945319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910134240.XA Active CN101859430B (en) 2009-04-09 2009-04-09 Method for generating high dynamic range (HDR) image and device therefor

Country Status (1)

Country Link
CN (1) CN101859430B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3343933A1 (en) * 2015-08-24 2018-07-04 Sharp Kabushiki Kaisha Reception device, broadcast system, reception method, and program
EP3350767B1 (en) * 2016-06-17 2020-06-03 Huawei Technologies Co., Ltd. Exposure-related intensity transformation
CN110475072B (en) * 2017-11-13 2021-03-09 Oppo广东移动通信有限公司 Method, device, terminal and storage medium for shooting image
CN108416744B (en) * 2018-01-30 2019-11-26 百度在线网络技术(北京)有限公司 Image processing method, device, equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7149262B1 (en) * 2000-07-06 2006-12-12 The Trustees Of Columbia University In The City Of New York Method and apparatus for enhancing data resolution
CN101371583A (en) * 2006-01-23 2009-02-18 马普科技促进协会 High dynamic range codecs

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7149262B1 (en) * 2000-07-06 2006-12-12 The Trustees Of Columbia University In The City Of New York Method and apparatus for enhancing data resolution
CN101371583A (en) * 2006-01-23 2009-02-18 马普科技促进协会 High dynamic range codecs

Also Published As

Publication number Publication date
CN101859430A (en) 2010-10-13

Similar Documents

Publication Publication Date Title
US20100246940A1 (en) Method of generating hdr image and electronic device using the same
WO2020192483A1 (en) Image display method and device
CN109005366B (en) Night scene shooting processing method and device for camera module, electronic equipment and storage medium
US11049212B2 (en) Data processing device for processing multiple sensor data and system including the same
US11532076B2 (en) Image processing method, electronic device and storage medium
CN110191291B (en) Image processing method and device based on multi-frame images
CN105141853B (en) Image processing method and electronic equipment
JP5756572B2 (en) Image processing apparatus and method, and imaging apparatus
CN103051837A (en) Method and device for improving effect of camera shooting in dark
CN113518210B (en) Method and device for automatic white balance of image
CN102023456B (en) Light metering weight regulating method and device thereof
CN101873435B (en) Method and device thereof for generating high dynamic range image
CN101859430B (en) Method for generating high dynamic range (HDR) image and device therefor
CN113313661A (en) Image fusion method and device, electronic equipment and computer readable storage medium
CN101144959A (en) Automatic focusing method for camera and digital camera
US20240073496A1 (en) Auto exposure for spherical images
JP2023521541A (en) Image detection method, apparatus, system, device and storage medium
CN113643214B (en) Image exposure correction method and system based on artificial intelligence
TWI684165B (en) Image processing method and electronic device
CN113177886B (en) Image processing method, device, computer equipment and readable storage medium
WO2023124202A1 (en) Image processing method and electronic device
KR20160100785A (en) Data Processing Device For Processing Multiple Sensor Data and System including the Same
TWI723729B (en) White balance adjustment method, image processing device and image processing system
JP7212128B2 (en) Image processing method, device and storage medium
TWI768282B (en) Method and system for establishing light source information prediction model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: MSI COMPUTER SHENZHEN CO., LTD.

Free format text: FORMER OWNER: WEIXING SCIENCE + TECHNOLOGY CO., LTD.

Effective date: 20131128

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: TAIWAN, CHINA TO: 518000 SHENZHEN, GUANGDONG PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20131128

Address after: 518000 Guangdong city of Shenzhen Province Shiyan town Tangtou village Longma Information Technology Industrial Park

Applicant after: MSI Computer Shenzhen Co., Ltd.

Address before: Taiwan County, Taipei, China

Applicant before: Weixing Science & Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant