CN110769210B - Method and device for generating HDR image - Google Patents

Method and device for generating HDR image Download PDF

Info

Publication number
CN110769210B
CN110769210B CN201911079737.6A CN201911079737A CN110769210B CN 110769210 B CN110769210 B CN 110769210B CN 201911079737 A CN201911079737 A CN 201911079737A CN 110769210 B CN110769210 B CN 110769210B
Authority
CN
China
Prior art keywords
ldr image
brightness
image
ldr
luminance
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
CN201911079737.6A
Other languages
Chinese (zh)
Other versions
CN110769210A (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.)
Hunan Goke Microelectronics Co Ltd
Original Assignee
Hunan Goke Microelectronics 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 Hunan Goke Microelectronics Co Ltd filed Critical Hunan Goke Microelectronics Co Ltd
Priority to CN201911079737.6A priority Critical patent/CN110769210B/en
Publication of CN110769210A publication Critical patent/CN110769210A/en
Application granted granted Critical
Publication of CN110769210B publication Critical patent/CN110769210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/21Circuitry for suppressing or minimising disturbance, e.g. moiré or halo
    • H04N5/213Circuitry for suppressing or minimising impulsive noise

Abstract

The application discloses a method and a device for generating an HDR image, which are used for obtaining the brightness of an LDR image; obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image; obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image; obtaining the expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image and the adjusting parameter; performing linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image; and combining the filtered brightness of the LDR image with the chromaticity of the LDR image to generate the HDR image. According to the technical scheme, the brightness level and the dynamic range of the LDR image can be expanded by using the average brightness, the brightness and the adjustment parameters of the LDR image, and the expanded image brightness is subjected to filtering processing, so that the detail information of the image is enhanced, and the noise is effectively inhibited.

Description

Method and device for generating HDR image
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a method and an apparatus for generating an HDR image.
Background
With the rapid development of science and technology, the HDR (High Dynamic Range) display technology is more and more mature, and many display screens in the market can display HDR images. An HDR image is an image with a high dynamic range, which refers to the ratio of the maximum value to the minimum value of the illumination level in the environment. The coverage of dynamic range in the real world can span 10-6To 109The dynamic range of the human eye which can be captured is 105About the order of magnitude, the dynamic range of HDR image video or HDR equipment can reach 105An order of magnitude, while LDR (Low Dynamic Range) image video can usually only reach 102Several orders of magnitude.
If the HDR image is displayed on a normal display, the dynamic range of the HDR image is compressed first, and the graphics are typically compressed by using a tone mapping operator. But HDR display technology is becoming more mature, and how to display LDR images on HDR display devices is also a research hotspot. In contrast to displaying an image video on an LDR device with an HDR image video, when displaying an LDR image video on an HDR device, it is necessary to expand the dynamic range of the LDR image, i.e. to increase the bit depth and expand the brightness level, so that when expanding the dynamic range of the LDR image, an inverse tone mapping operator is required.
However, in the existing inverse tone mapping method for generating an HDR image from an LDR image, details of the generated HDR image are weak and accompanied by image noise, and therefore how to enhance details of the generated HDR image becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
The application provides a method and a device for generating an HDR image, which aim to solve the problem that in an existing inverse tone mapping method for generating an HDR image from an LDR image, the detail part of the generated HDR image is weak.
In a first aspect, an embodiment of the present application provides a method for generating an HDR image, including:
acquiring the brightness of an LDR image;
obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image;
obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image;
obtaining the expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image and the adjusting parameter;
performing linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image;
and combining the filtered brightness of the LDR image with the chromaticity of the LDR image to generate the HDR image.
With reference to the first aspect, in an implementation manner of the first aspect, the luminance of the LDR image is obtained according to the following formula:
Ls(x,y)=(0.27*R(x,y)+0.67G(x,y)+0.06B(x,y))/255,
wherein L iss(x, y) represents the luminance of the LDR image, x represents the horizontal position in the LDR image, and y represents the vertical position in the LDR image; r (x, y) represents the value of the color component R of the pixel point at the (x, y) position in the LDR image; g (x, y) represents the value of the color component G of the pixel point at the (x, y) position in the LDR image; b (x, y) represents the value of the color component B of the pixel point at the (x, y) position in the LDR image.
With reference to the first aspect, in an implementation manner of the first aspect, the average luminance of the LDR image and the weighted filtered luminance of the LDR image are obtained according to the following formulas:
Figure BDA0002263572830000021
wherein L issAvgRepresenting an average luminance of the LDR image; h represents the height of the LDR image; w represents the width of the LDR image; δ represents a constant;
Figure BDA0002263572830000022
wherein L isFilter(x, y) represents the weighted filtered luminance of the original LDR image, and a 5 x 1 weighted average filtering template is introduced in the formula.
With reference to the first aspect, in an implementation manner of the first aspect, the adjustment parameter is obtained according to the following formula:
Figure BDA0002263572830000023
Figure BDA0002263572830000024
wherein, K1And K2To adjust the parameters.
With reference to the first aspect, in an implementable manner of the first aspect, the expanded luminance of the LDR image is obtained according to the following formula:
Figure BDA0002263572830000025
wherein L isdst(x, y) denotes the expanded luminance of the LDR image, where K1And K2The larger the value of (A), the more dynamic the luminance after inverse tone mappingThe greater the range is extended.
With reference to the first aspect, in an implementation manner of the first aspect, the filtered luminance of the LDR image is obtained according to the following formula:
Figure BDA0002263572830000026
wherein L ishdr(x, y) represents the filtered luminance of the LDR image, and w (s, t) is a weighted filtering template in the form of plus N x M.
In a second aspect, an embodiment of the present application provides an apparatus for generating an HDR image, including:
the first brightness obtaining module is used for obtaining the brightness of the LDR image;
the second brightness obtaining module is used for obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image;
the parameter obtaining module is used for obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image;
a third brightness obtaining module, configured to obtain an expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image, and the adjustment parameter;
the fourth brightness obtaining module is used for carrying out linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image;
and the image generation module is used for combining the filtered brightness of the LDR image and the chromaticity of the LDR image to generate the HDR image.
With reference to the second aspect, in an implementable manner of the second aspect, the first luminance obtaining module obtains the luminance of the LDR image according to the following formula:
Ls(x,y)=(0.27*R(x,y)+0.67G(x,y)+0.06B(x,y))/255,
wherein L iss(x, y) represents the luminance of the LDR image, x represents the horizontal position in the LDR image, and y represents the vertical position in the LDR image; r (x, y) represents the value of the color component R of the pixel point at the (x, y) position in the LDR image; g (x, y) represents (x, y) bits in LDR imageSetting the value of the color component G of the pixel point; b (x, y) represents the value of the color component B of the pixel point at the (x, y) position in the LDR image.
With reference to the second aspect, in an implementation manner of the second aspect, the second luminance obtaining module obtains the average luminance of the LDR image and the weighted filtered luminance of the LDR image according to the following formulas:
Figure BDA0002263572830000031
wherein L issAvgRepresenting an average luminance of the LDR image; h represents the height of the LDR image; w represents the width of the LDR image; δ represents a constant;
Figure BDA0002263572830000032
wherein L isFilter(x, y) represents the weighted filtered luminance of the original LDR image, and a 5 x 1 weighted average filter is introduced in the formula.
With reference to the second aspect, in an implementation manner of the second aspect, the parameter obtaining module obtains the adjustment parameter according to the following formula:
Figure BDA0002263572830000041
Figure BDA0002263572830000042
wherein, K1And K2To adjust the parameters.
With reference to the second aspect, in an implementable manner of the second aspect, the third luminance obtaining module obtains the expanded luminance of the LDR image according to the following formula:
Figure BDA0002263572830000043
wherein L isdst(x, y) represents the expanded luminance of the LDR image, where K1And K2The larger the value of (b), the larger the dynamic range expansion of the luminance after inverse tone mapping.
With reference to the second aspect, in an implementation manner of the second aspect, the fourth luminance obtaining module obtains the filtered luminance of the LDR image according to the following formula:
Figure BDA0002263572830000044
wherein L ishdr(x, y) represents the filtered luminance of the LDR image, and w (s, t) is a weighted filtering template in the form of plus N x M.
As can be seen from the foregoing technical solutions, an embodiment of the present application provides a method and an apparatus for generating an HDR image, where the method for generating an HDR image includes obtaining a luminance of an LDR image; obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image; obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image; obtaining the expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image and the adjustment parameter; performing linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image; and combining the filtered brightness of the LDR image with the chromaticity of the LDR image to generate the HDR image. According to the technical scheme, the brightness level and the dynamic range of the LDR image can be expanded by using the average brightness, the brightness and the adjustment parameters of the LDR image, and the expanded image brightness is subjected to filtering processing, so that the detail information of the image is enhanced, and the noise is effectively inhibited.
Drawings
In order to more clearly illustrate the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a flowchart of a method for generating an HDR image according to an embodiment of the present application;
fig. 2 is a block diagram of a structure of an apparatus for generating an HDR image according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for generating an HDR image according to an embodiment of the present application. As shown in fig. 1, the steps of the method for generating an HDR image provided by the embodiment of the present application are as follows:
s101, obtaining the brightness of the LDR image. First, values of three color components in the LDR image, namely a red component R, a green component G, and a blue component B, need to be obtained, and then the values of the three components are substituted into a calculation formula to calculate the brightness of the LDR image.
Specifically, the brightness of the LDR image is obtained according to the following formula:
Ls(x,y)=(0.27*R(x,y)+0.67G(x,y)+0.06B(x,y))/255,
wherein L iss(x, y) represents the luminance of the LDR image, x represents the horizontal position in the LDR image, and y represents the vertical position in the LDR image; r (x, y) represents the value of the color component R of the pixel point at the (x, y) position in the LDR image; g (x, y) represents the value of the color component G of the pixel point at the (x, y) position in the LDR image; b (x, y) represents the value of the color component B of the pixel point at the (x, y) position in the LDR image. In the embodiment of the present application, the brightness of the LDR image is preferably calculated by using the above coefficients of 0.27, 0.67, and 0.06, and other parameters capable of calculating the brightness of the LDR image according to the above formula are also within the scope of the present application.
And S102, acquiring the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image.
The current tone mapping is to map HDR image data into LDR image data, and to keep the original rich detail information and the like in the HDR image as much as possible, and to retain the original visual effect. Inverse tone mapping is the inverse of tone mapping and is used to extend the dynamic range of the image, which is very critical for the conversion of LDR images to HDR images, so the method of generating HDR images in this application is based on inverse tone mapping. And obtaining the average brightness of the LDR image is the geometric average brightness of the inverse tone mapping operator.
Specifically, in the embodiment of the present application, the average luminance of the LDR image and the weighted filtered luminance of the LDR image are preferably obtained according to the following formulas:
Figure BDA0002263572830000051
wherein L issAvgRepresenting an average luminance of the LDR image; h represents the height of the LDR image; w represents the width of the LDR image; δ represents a constant, and δ in this application may represent a very small constant, such as 0.0001, which is added to the formula to prevent the logarithm calculation from going to infinity.
Figure BDA0002263572830000061
Wherein L isFilter(x, y) represents the weighted filtered luminance of the original LDR image, and preferably a 5 × 1 weighted average filtering template is introduced into the formula, although templates of other specifications may be implemented, and the specific specification may be selected according to the actual requirements in calculation.
And S103, acquiring an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image. The adjustment parameters in the embodiments of the present application are parameters in the inverse tone mapping process.
Specifically, in the embodiment of the present application, the adjustment parameter is preferably obtained according to the following formula:
Figure BDA0002263572830000062
Figure BDA0002263572830000063
wherein, K1And K2To adjust the parameters.
And S104, acquiring the expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image and the adjustment parameter. The inverse tone mapping process is a process of expanding the image, and the expanded brightness is the brightness of the image after the inverse tone mapping is performed on the LDR image.
Specifically, in the embodiment of the present application, the expanded brightness of the LDR image is preferably obtained according to the following formula:
Figure BDA0002263572830000064
wherein L isdst(x, y) represents the expanded luminance of the LDR image, where K1And K2The larger the value of (a), the larger the dynamic range expansion of the luminance after inverse tone mapping.
The original LDR image may have details lost and noise increased in the dark and highlight portions, so the embodiment of the present application further performs highlight detail portion reconstruction, noise suppression, and the like on the expanded luminance. The method comprises the following specific steps:
and S105, performing linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image.
Specifically, in the embodiment of the present application, the filtered brightness of the LDR image is preferably obtained according to the following formula:
Figure BDA0002263572830000065
wherein L ishdr(x, y) represents the filtered luminance of the LDR image, and w (s, t) is a weighted filtering template in the form of plus N x M.
In practical application, w (s, t) in the embodiment of the present application can adapt to different filter templates by taking different values of s and t as required. For example, w (s, t) takes the following values:
Figure BDA0002263572830000066
at this time, the process of the present invention,
Figure BDA0002263572830000071
in the present application, N and M may be integers greater than or equal to 0, respectively, where N and M may be equal or unequal.
And S106, combining the filtered brightness of the LDR image and the chromaticity of the LDR image to generate the HDR image.
Therefore, the method for generating the HDR image provided by the embodiment of the application can better restore the detail part in the HDR image and has better inhibition effect on noise when the low dynamic range image is displayed on the high dynamic range device. In addition, the method of the embodiment of the application does not need to perform color space conversion on the image for many times, and is simple and high in efficiency.
In addition, the calculation formulas in the above embodiments of the present application are all preferred calculation methods, and do not represent that only one formula can be used in each calculation, and the present application only exemplifies some formulas, and other calculation methods that can obtain the brightness, the average brightness, the weighted filtering brightness, the adjustment parameter, and the filtering brightness of the image in the present application, which are not listed, also belong to the methods that can be implemented in the solution of the present application.
Fig. 2 is a block diagram of an apparatus for generating an HDR image according to an embodiment of the present application. As shown in fig. 2, an apparatus for generating an HDR image according to an embodiment of the present application includes: a first luminance obtaining module 21, configured to obtain a luminance of the LDR image; a second luminance obtaining module 22, configured to obtain an average luminance of the LDR image and a weighted filtered luminance of the LDR image according to the luminance of the LDR image; a parameter obtaining module 23, configured to obtain an adjustment parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image; a third luminance obtaining module 24, configured to obtain an expanded luminance of the LDR image according to the average luminance of the LDR image, the luminance of the LDR image, and the adjustment parameter; a fourth luminance obtaining module 25, configured to perform linear filtering on the expanded luminance of the LDR image to obtain a filtered luminance of the LDR image; and an image generation module 26, configured to combine the filtered luminance of the LDR image and the chrominance of the LDR image to generate an HDR image.
The first brightness obtaining module obtains the brightness of the LDR image according to the following formula:
Ls(x,y)=(0.27*R(x,y)+0.67G(x,y)+0.06B(x,y))/255,
wherein L iss(x, y) represents the luminance of the LDR image, x represents the horizontal position in the LDR image, and y represents the vertical position in the LDR image; r (x, y) represents the value of the color component R of the pixel point at the (x, y) position in the LDR image; g (x, y) represents the value of the color component G of the pixel point at the (x, y) position in the LDR image; b (x, y) represents the value of the color component B of the pixel point at the (x, y) position in the LDR image.
The second brightness obtaining module obtains the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the following formula:
Figure BDA0002263572830000072
wherein L isSAvgRepresenting an average luminance of the LDR image; h represents the height of the LDR image; w represents the width of the LDR image; δ represents a constant;
Figure BDA0002263572830000081
wherein L isFilter(x, y) represents the weighted filtered luminance of the original LDR image, and a 5 x 1 weighted average filter is introduced in the formula.
The parameter obtaining module obtains the adjusting parameters according to the following formula:
Figure BDA0002263572830000082
Figure BDA0002263572830000083
wherein, K1And K2To adjust the parameters.
The third brightness obtaining module obtains the expanded brightness of the LDR image according to the following formula:
Figure BDA0002263572830000084
wherein L isdst(x, y) represents the expanded luminance of the LDR image, where K1And K2The larger the value of (a), the larger the dynamic range expansion of the luminance after inverse tone mapping.
The fourth brightness obtaining module obtains the filtering brightness of the LDR image according to the following formula:
Figure BDA0002263572830000085
wherein L ishdr(x, y) represents the filtered luminance of the LDR image, and w (s, t) is a weighted filtering template in the form of plus N x M.
Additionally, the methods in embodiments of the present application may also be implemented on a computing device that includes one or more processors, which may be microprocessors, controllers, or any other suitable processors for processing computer-executable instructions to control the operation of a device to enable a low dynamic range image inverse tone mapping method. Platform software for an operating system or other suitable platform software may be provided at a computing device to enable application software to execute on the device. The computing device also includes a display device capable of displaying HDR images. The computing device should also include an input device that receives the low dynamic range image.
It is worth to be noted that the scenes to which the method of the embodiment of the present application is specifically applied may include two types, that is, the LDR image directly obtains the high-quality HDR image through the method of the present application, and that the LDR image is tone-mapped to the LDR image, and then the LDR image is subjected to the method of the present application to obtain the high-quality HDR image. Therefore, the method in the embodiment of the application can be suitable for various application scenes, and can obtain HDR images through LDR images, so that not only is the details of the images enhanced, but also the noise influence is inhibited.
As can be seen from the above technical solutions, the embodiments of the present application provide a method and an apparatus for generating an HDR image, to obtain a luminance of an LDR image; obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image; obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image; obtaining the expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image and the adjusting parameter; performing linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image; and combining the filtered brightness of the LDR image with the chromaticity of the LDR image to generate the HDR image. According to the technical scheme, the brightness level and the dynamic range of the LDR image can be expanded by using the average brightness, the brightness and the adjustment parameters of the LDR image, and the expanded image brightness is subjected to filtering processing, so that the detail information of the image is enhanced, and the noise is effectively inhibited.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (4)

1. A method of generating an HDR image, comprising:
acquiring the brightness of an LDR image;
obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image;
obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image; obtaining the expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image and the adjustment parameter;
obtaining the expanded brightness of the LDR image according to the following formula:
Figure FDA0003503339280000011
wherein L isdst(x, y) is the expanded luminance of the LDR image, K1And K2To adjust the parameters, Ls (x, y) is the luminance of the LDR image, LSAvgRepresenting an average luminance of the LDR image;
performing linear filtering on the expanded brightness of the LDR image to obtain the filtered brightness of the LDR image;
combining the filtering brightness of the LDR image with the chromaticity of the LDR image to generate an HDR image;
obtaining the filtered brightness of the LDR image according to the following formula:
Figure FDA0003503339280000012
wherein L ishdr(x, y) represents the filtered luminance of the LDR image, w (s, t) is a weighted filtering template in the form of N x M, Ldst(x, y) represents the expanded luminance of the LDR image, N and M each take an integer greater than or equal to 0, and s and t each take a different value to accommodate different filter templates.
2. The method of claim 1, wherein the tuning parameters are obtained according to the following formula:
Figure FDA0003503339280000013
Figure FDA0003503339280000014
wherein, K1And K2To adjust the parameters, Ls(x, y) denotes the luminance of the LDR image, LSAvgRepresenting the average luminance, L, of an LDR imageFilter(x, y) represents the weighted filtered luminance of the LDR image.
3. An apparatus for generating an HDR image, comprising:
the first brightness obtaining module is used for obtaining the brightness of the LDR image;
the second brightness obtaining module is used for obtaining the average brightness of the LDR image and the weighted filtering brightness of the LDR image according to the brightness of the LDR image;
the parameter obtaining module is used for obtaining an adjusting parameter according to the average brightness of the LDR image and the weighted filtering brightness of the LDR image;
a third brightness obtaining module, configured to obtain an expanded brightness of the LDR image according to the average brightness of the LDR image, the brightness of the LDR image, and the adjustment parameter;
the third brightness obtaining module obtains the expanded brightness of the LDR image according to the following formula:
Figure FDA0003503339280000021
wherein L isdst(x, y) is the expanded luminance of the LDR image, K1And K2To adjust the parameters, Ls (x, y) is the luminance of the LDR image, LSAvgRepresenting an average luminance of the LDR image;
the fourth brightness obtaining module is used for carrying out linear filtering on the expanded brightness of the LDR image to obtain the filtering brightness of the LDR image;
the image generation module is used for combining the filtering brightness of the LDR image and the chromaticity of the LDR image to generate an HDR image;
the fourth brightness obtaining module obtains the filtering brightness of the LDR image according to the following formula:
Figure FDA0003503339280000022
wherein L ishdr(x, y) represents the filtered luminance of the LDR image, w (s, t) is a weighted filtering template in the form of N x M, Ldst(x, y) represents the expanded luminance of the LDR image, N and M each take an integer greater than or equal to 0, and s and t each take a different value to accommodate different filter templates.
4. The apparatus of claim 3, wherein the parameter obtaining module obtains the adjustment parameter according to the following formula:
Figure FDA0003503339280000023
Figure FDA0003503339280000024
wherein, K1And K2In order to adjust the parameters of the device,Ls(x, y) denotes the luminance of the LDR image, LSAvgRepresenting the average luminance, L, of an LDR imageFilter(x, y) represents the weighted filtered luminance of the LDR image.
CN201911079737.6A 2019-11-07 2019-11-07 Method and device for generating HDR image Active CN110769210B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911079737.6A CN110769210B (en) 2019-11-07 2019-11-07 Method and device for generating HDR image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911079737.6A CN110769210B (en) 2019-11-07 2019-11-07 Method and device for generating HDR image

Publications (2)

Publication Number Publication Date
CN110769210A CN110769210A (en) 2020-02-07
CN110769210B true CN110769210B (en) 2022-06-03

Family

ID=69336656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911079737.6A Active CN110769210B (en) 2019-11-07 2019-11-07 Method and device for generating HDR image

Country Status (1)

Country Link
CN (1) CN110769210B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738950B (en) * 2020-06-22 2023-06-13 北京字节跳动网络技术有限公司 Image processing method and device
CN114827484B (en) * 2022-04-22 2023-10-20 咪咕视讯科技有限公司 Video image quality enhancement method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391435A (en) * 2013-07-02 2013-11-13 广东工业大学 Coding method for high dynamic range (HDR) image compatible with low dynamic range (LDR) and decoding method thereof
CN106062816A (en) * 2014-02-26 2016-10-26 汤姆逊许可公司 Method and apparatus for encoding and decoding HDR images
CN106780402A (en) * 2017-01-16 2017-05-31 聚龙智瞳科技有限公司 Dynamic range of images extended method and device based on Bayer format
CN107154059A (en) * 2017-06-26 2017-09-12 杭州当虹科技有限公司 A kind of high dynamic range video processing method
JP2018112936A (en) * 2017-01-12 2018-07-19 ピナクル イメージング コーポレーション HDR image processing apparatus and method
CN108510557A (en) * 2018-04-09 2018-09-07 湖南国科微电子股份有限公司 image tone mapping method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103391435A (en) * 2013-07-02 2013-11-13 广东工业大学 Coding method for high dynamic range (HDR) image compatible with low dynamic range (LDR) and decoding method thereof
CN106062816A (en) * 2014-02-26 2016-10-26 汤姆逊许可公司 Method and apparatus for encoding and decoding HDR images
JP2018112936A (en) * 2017-01-12 2018-07-19 ピナクル イメージング コーポレーション HDR image processing apparatus and method
CN106780402A (en) * 2017-01-16 2017-05-31 聚龙智瞳科技有限公司 Dynamic range of images extended method and device based on Bayer format
CN107154059A (en) * 2017-06-26 2017-09-12 杭州当虹科技有限公司 A kind of high dynamic range video processing method
CN108510557A (en) * 2018-04-09 2018-09-07 湖南国科微电子股份有限公司 image tone mapping method and device

Also Published As

Publication number Publication date
CN110769210A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
EP2624204B1 (en) Image processing apparatus and method of controlling the same
JP5159208B2 (en) Image correction method and apparatus
Lee et al. A space-variant luminance map based color image enhancement
US20150161773A1 (en) Image processing device and image processing method
KR20160102524A (en) Method for inverse tone mapping of an image
JP5669513B2 (en) Image processing apparatus, image processing program, and image processing method
US8369624B2 (en) Image processing apparatus, image processing method, program of image processing method, and recording medium having program of image processing method recorded thereon
US11348210B2 (en) Inverse tone mapping method and corresponding device
CN109817170B (en) Pixel compensation method and device and terminal equipment
JP2009017200A (en) Image processing apparatus, image processing method, and program
DE112006002124T5 (en) Method for improving the contrast enhancement
CN110769210B (en) Method and device for generating HDR image
WO2009107197A1 (en) Picture processor, picture processing method and picture processing program
CN111353955A (en) Image processing method, device, equipment and storage medium
KR20140026747A (en) Apparatus and method for image defogging in hsv color space and recording medium storing program for executing method of the same in computer
CN112669241B (en) Image processing method, device, equipment and medium
CN116453470B (en) Image display method, device, electronic equipment and computer readable storage medium
JP2008287329A (en) Image evaluation device and image evaluation program
CN106780400B (en) Image processing method and device
JP5682443B2 (en) Image processing apparatus, image processing method, and image processing program
JP2020532246A (en) Image processing method and equipment
CN111986096B (en) Cartoon generation method and cartoon generation device based on edge extraction
CN113936020A (en) Drawing method and device of inner drawn line, electronic equipment and storage medium
JP2018128764A (en) Image processing device, image processing method and program
Liu et al. An adaptive tone mapping algorithm based on gaussian filter

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