CN113850743B - Video global tone mapping method based on self-adaptive parameters - Google Patents
Video global tone mapping method based on self-adaptive parameters Download PDFInfo
- Publication number
- CN113850743B CN113850743B CN202111438104.7A CN202111438104A CN113850743B CN 113850743 B CN113850743 B CN 113850743B CN 202111438104 A CN202111438104 A CN 202111438104A CN 113850743 B CN113850743 B CN 113850743B
- Authority
- CN
- China
- Prior art keywords
- lum
- tone mapping
- image
- global tone
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000013507 mapping Methods 0.000 title claims abstract description 48
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000003044 adaptive effect Effects 0.000 claims abstract description 14
- 230000008569 process Effects 0.000 claims abstract description 6
- 238000012545 processing Methods 0.000 claims abstract description 6
- 238000012935 Averaging Methods 0.000 claims description 3
- 238000001914 filtration Methods 0.000 claims description 2
- 230000008859 change Effects 0.000 abstract description 5
- 235000019557 luminance Nutrition 0.000 description 33
- 239000003086 colorant Substances 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 239000007991 ACES buffer Substances 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a video global tone mapping method based on self-adaptive parameters, which adopts a global tone mapping function f (lum + ∂) to process video images frame by frame, wherein the self-adaptive parameters ∂ in the global tone mapping function change along with each frame of image, and the confirming method comprises the following steps: firstly, acquiring a brightness average value of an image; then, an offset parameter a = ln [ (lum) is determined from the luminance average valuemean+1)/(0.5+1)](ii) a And determining a proportion parameter b according to the offset parameter a to finally obtain an adaptive parameter ∂ = a × b. And (3) processing the video image frame by adopting a global tone mapping function f (lum + ∂), and converting the video image into three-channel RGB data to obtain a low dynamic range image. The invention adds the number ∂ which is adaptively changed according to the brightness of the current frame to quickly adjust the prior tone mapping method, thereby solving the problem of detail loss caused by the instantaneous change of the brightness of the image in the prior method.
Description
Technical Field
The invention relates to a video global tone mapping method based on self-adaptive parameters.
Background
The tone mapping algorithm is to compress the display luminances of the HDR image into the display range of the LDR device, while keeping important information such as details and colors of the image during the conversion. The tone mapping algorithm needs to have two basic functions: 1. compressing the image brightness; 2. and the details and the color of the image are kept, so that important information is prevented from being lost.
The range of luminances of an LDR display device is much smaller than the HDR image, for which the luminance values represent absolute luminance values, and in nature. Since the luminance range of the HDR display device is large enough, the luminance value recorded by each pixel of the HDR image is the luminance value displayed on the HDR display device. LDR images differ in that the LDR display devices have a small luminance range, and display ranges of only 0-255, so that the range of colors and luminances that can be displayed is limited. In order to make reasonable use of the limited luminance space, the luminance of the LDR image does not actually correspond to the luminance in the displayed scene, but is a relative luminance. Some high-quality global tone mapping algorithms, such as an ACES tone mapping algorithm and a film tone mapping algorithm, need to adjust partially adjustable parameters in the algorithm according to the brightness of an actual image before processing the image, and then perform mapping processing on the image. However, images in a video are changed from frame to frame, and the brightness difference of the images in a short time under the same environment is generally not large, if special conditions such as: the object blocks the whole dark of the sunlight image; when sunlight is exposed in rainy days and sunny days, the image becomes bright as a whole, which may cause the global tone mapping algorithm for the previous environment, which has adjusted parameters, to lose part of details when processing the current image, and affect the quality of the image.
Disclosure of Invention
The purpose of the invention is as follows: aiming at the prior art, the video global tone mapping method based on the self-adaptive parameters is provided, and in the video tone mapping process, the parameters are changed according to the brightness of the current frame, so that the algorithm is quickly adjusted, and the problem of detail loss caused by instantaneous change of the image brightness is solved.
The technical scheme is as follows: a video global tone mapping method based on adaptive parameters adopts a global tone mapping function f (lum + ∂) to process video images frame by frame, the global tone mapping function f (lum + ∂) comprises adaptive parameters ∂, and the method for confirming the adaptive parameters ∂ along with each frame of image comprises the following steps:
step 1: obtaining the average value of brightness lum of the imagemean;
Step 2: determining an offset parameter a, a = ln [ (lum)mean+1)/(0.5+1)];
And step 3: determining a proportional parameter b when the offset parameter a>0, b = lumldrWherein lumldr=f(lumwdr) Wide dynamic range luminance data lum representing a picturewdrSubstitution into the low dynamic range luminance calculated by the existing global tone mapping function f (lum)Degree data; when the offset parameter a<0, b =1-lumldr;
And 4, step 4: obtaining an adaptive parameter ∂ = a × b according to the offset parameter a and the proportional parameter b;
and (3) processing the video image frame by adopting a global tone mapping function f (lum + ∂), and converting the video image into three-channel RGB data to obtain a low dynamic range image.
Further, the step 1 comprises the following specific steps:
step 1.1: converting the wide dynamic RGB three-channel pixel value into a single-channel brightness value lum, and converting the wide dynamic range brightness data lum of the picturewdr= lum/256, and the number of brightness value data is recorded as W;
step 1.2: filtering out the brightest percentage of the luminance datal 1And the darkest percentl 2The number of the remaining luminance data is denoted as W1=(1-0.01*l 1-0.01*l 2) W, maximum value in the residual luminance data is recorded as lummax;
Step 1.3: normalizing and averaging the filtered luminance data:
wherein, lumwdr(i) Indicating the luminance value of each of the remaining luminance data.
Has the advantages that: the video global tone mapping method based on the self-adaptive parameters is based on the existing global tone mapping algorithm, and the number ∂ which is changed in a self-adaptive manner according to the brightness of the current frame is added in the video tone mapping process to quickly adjust the algorithm, so that the problem of detail loss caused by the instantaneous change of the brightness of the image in the existing global tone mapping algorithm is solved.
Drawings
FIG. 1 is a flow chart of the present method;
fig. 2 is a tone mapping graph.
Detailed Description
The invention is further explained below with reference to the drawings.
As shown in fig. 1, in a video global tone mapping method based on adaptive parameters, a global tone mapping function f (lum + ∂) is used to process video images frame by frame, so as to solve the problem of detail loss caused by instantaneous change of image brightness when the existing global tone mapping algorithm is used, the global tone mapping function f (lum + ∂) includes adaptive parameters ∂, and the adaptive parameters ∂ are dynamically adjusted along with each frame of image.
The dynamic confirmation method of the adaptive parameter ∂ comprises the following steps:
step 1: obtaining the average value of brightness lum of the imagemeanThe method specifically comprises the following substeps:
step 1.1: converting a wide dynamic RGB three-channel pixel value into a single-channel brightness value lum, wherein the value range of the data is determined by the number of bits of wide dynamic image data, and the value range is generally 0 to (2)10-1) or 0 to (2)12-1) for easy calculation, recording wide dynamic range luminance data lumwdrNumber of luminance value data is represented as W, = lum/256.
Step 1.2: to avoid the influence of the original image defects on tone mapping, the brightest percentage of the brightness data is filteredl 1And the darkest percentl 2The data of (a) to (b) to (c),l 1andl 1usually 1-5, the number of the residual brightness data is recorded as W1=(1-0.01*l 1-0.01*l 2) W, maximum value in the residual luminance data is recorded as lummax。
Step 1.3: normalizing and averaging the filtered luminance data:
wherein, lumwdr(i) Indicating the luminance value of each of the remaining luminance data. Mean value of brightness lum of imagemeanThe range of (1) is 0-1, and the method is used for subsequently judging the brightness distribution of the image.
Step 2: an offset parameter a is determined.
Wide dynamic range luminance data lum of picturewdrThe low dynamic range luminance data lum can be calculated by substituting the existing global tone mapping function f (lum)ldrInstant lumldr=f(lumwdr) The tone mapping curve is shown in fig. 2, where the horizontal axis represents the image-wide dynamic luminance value and the vertical axis represents the low dynamic luminance value after mapping. Normalized luminance mean value lum obtained in step 1meanAs can be seen, the following three situations exist in the image: the first expression is as follows: lummean>At 0.5, the entire image appears as more dots with relatively large brightness; performing two steps: lummean<At 0.5, the entire image appears as more dots of relatively small brightness; the third expression is that: lummeanWhen =0.5, the entire image appears uniform in brightness and darkness.
Offset parameter a = ln [ (lum)mean+1)/(0.5+1)]When the image situation is in manifestation, a>0, the tone mapping curve is shown as a dashed line in FIG. 2; when the image situation is in representation two, a<0, the tone mapping curve is shown by the dotted line in FIG. 2; when the image condition is expressed in three, a =0, the original algorithm is unchanged, that is, the existing global tone mapping function f (lum) is directly adopted to obtain the low dynamic range image, and the tone mapping curve is shown as a solid line in fig. 2. The purpose of parameter 1 used in offset parameter a is to prevent the value of a from being too large, which affects the tone mapping effect.
And step 3: and determining a proportion parameter b.
When the offset parameter a>When 0, the whole image is slightly bright, the part with high brightness in the image is important information, the offset of the curve in a high-brightness area is adjusted and reduced through a proportion parameter b, namely, the loss of high-brightness detail information is reduced, and b = lumldr。
When the offset parameter a<When 0, the whole image is dark, the part with low brightness in the image is important information, the offset of the curve in the low brightness area is reduced by adjusting the proportion parameter b, namely, the loss of the detail information of the low brightness is reduced, and b =1-lumldr。
And 4, step 4: obtaining an adaptive parameter ∂ = a × b according to the offset parameter a and the proportional parameter b;
parameter(s)∂ acting on the existing global tone mapping function, i.e. outputting a low dynamic range luminance lumldr-∂=f(lumwdr+ ∂) as horizontal shift ∂ of tone mapping curve horizontal axis, finally converting into three-channel RGB data to obtain low dynamic range image.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (2)
1. A video global tone mapping method based on self-adaptive parameters is characterized in that a global tone mapping function f (lum) is adoptedwdr+ ∂) the global tone mapping function f (lum) processes the video image frame by framewdr+ ∂) includes adaptive parameter ∂, and the method for confirming the adaptive parameter ∂ with each frame of image includes:
step 1: obtaining the average value of brightness lum of the imagemean;
Step 2: determining an offset parameter a, a = ln [ (lum)mean+1)/(0.5+1)];
And step 3: determining a proportional parameter b when the offset parameter a>0, b = lumldrWherein lumldr=f(lumwdr) Wide dynamic range luminance data lum representing a picturewdrSubstituting into the existing global tone mapping function f (lum)wdr) (ii) calculated low dynamic range luminance data; when the offset parameter a<0, b =1-lumldr;
And 4, step 4: obtaining an adaptive parameter ∂ = a × b according to the offset parameter a and the proportional parameter b;
using a global tone mapping function f (lum)wdr+ ∂) processing the video image frame by frame, then converting into three-channel RGB data to obtain low dynamic range image.
2. The adaptive parameter based video global tone mapping method according to claim 1, wherein the step 1 comprises the following specific steps:
step 1.1: converting the wide dynamic RGB three-channel pixel value into a single-channel brightness value lum, and converting the wide dynamic range brightness data lum of the picturewdr= lum/256, and the number of brightness value data is recorded as W;
step 1.2: filtering out the brightest percentage of the luminance datal 1And the darkest percentl 2The number of the remaining luminance data is denoted as W1=(1-0.01*l 1-0.01*l 2) W, maximum value in the residual luminance data is recorded as lummax;
Step 1.3: normalizing and averaging the filtered luminance data:
wherein, lumwdr(i) Indicating the luminance value of each of the remaining luminance data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111438104.7A CN113850743B (en) | 2021-11-30 | 2021-11-30 | Video global tone mapping method based on self-adaptive parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111438104.7A CN113850743B (en) | 2021-11-30 | 2021-11-30 | Video global tone mapping method based on self-adaptive parameters |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113850743A CN113850743A (en) | 2021-12-28 |
CN113850743B true CN113850743B (en) | 2022-03-01 |
Family
ID=78982278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111438104.7A Active CN113850743B (en) | 2021-11-30 | 2021-11-30 | Video global tone mapping method based on self-adaptive parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113850743B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2515273A1 (en) * | 2011-04-20 | 2012-10-24 | CSR Technology Inc. | Multiple exposure high dynamic range image capture |
CN109410126A (en) * | 2017-08-30 | 2019-03-01 | 中山大学 | A kind of tone mapping method of details enhancing and the adaptive high dynamic range images of brightness |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101901475B (en) * | 2010-06-12 | 2011-10-05 | 北京理工大学 | High dynamic range image tone mapping method based on retina adaptive model |
EP3324629B1 (en) * | 2014-05-28 | 2019-06-19 | Koninklijke Philips N.V. | Methods and apparatuses for encoding an hdr images, and methods and apparatuses for use of such encoded images |
GB201410635D0 (en) * | 2014-06-13 | 2014-07-30 | Univ Bangor | Improvements in and relating to the display of images |
SG11201705702XA (en) * | 2015-01-19 | 2017-08-30 | Dolby Laboratories Licensing Corp | Display management for high dynamic range video |
EP3220349A1 (en) * | 2016-03-16 | 2017-09-20 | Thomson Licensing | Methods, apparatus, and systems for extended high dynamic range ("hdr") hdr to hdr tone mapping |
US10074162B2 (en) * | 2016-08-11 | 2018-09-11 | Intel Corporation | Brightness control for spatially adaptive tone mapping of high dynamic range (HDR) images |
EP3312798A1 (en) * | 2016-10-20 | 2018-04-25 | Thomson Licensing | Method and device for inverse tone mapping |
CN110473158A (en) * | 2019-08-14 | 2019-11-19 | 上海世茂物联网科技有限公司 | A kind of processing method, device and the equipment of license plate image brightness |
CN113596424B (en) * | 2020-04-30 | 2022-12-06 | 华为技术有限公司 | Method and apparatus for dynamic range mapping |
-
2021
- 2021-11-30 CN CN202111438104.7A patent/CN113850743B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2515273A1 (en) * | 2011-04-20 | 2012-10-24 | CSR Technology Inc. | Multiple exposure high dynamic range image capture |
CN109410126A (en) * | 2017-08-30 | 2019-03-01 | 中山大学 | A kind of tone mapping method of details enhancing and the adaptive high dynamic range images of brightness |
Also Published As
Publication number | Publication date |
---|---|
CN113850743A (en) | 2021-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5105209B2 (en) | Image processing apparatus and method, program, and recording medium | |
JP3375921B2 (en) | Image quality improvement apparatus and method for maintaining luminance of input image | |
KR100970883B1 (en) | The apparatus for enhancing image considering the region characteristic and method therefor | |
WO2018133609A1 (en) | Method for producing high dynamic range image from low dynamic range image | |
US10469760B2 (en) | High dynamic range imaging | |
US8208039B2 (en) | Image processing apparatus and computer-readable medium | |
CN105407296B (en) | Real-time video enhancement method and device | |
CN112752023B (en) | Image adjusting method and device, electronic equipment and storage medium | |
US20090304274A1 (en) | Image Processing Apparatus and Image Display Apparatus | |
KR100925629B1 (en) | METHOD FOR AUTO WHITE BALANCE IN YCbCr COLOR SPACE | |
US7613338B2 (en) | Image processing method and apparatus, program, and storage medium | |
CN110827225A (en) | Non-uniform illumination underwater image enhancement method based on double exposure frame | |
CN112288661B (en) | Image color correction method | |
CN113411554A (en) | Underwater image color restoration method and device | |
EP3460748B1 (en) | Dynamic range compression device and image processing device cross-reference to related application | |
JP2012108898A (en) | Image processing device and image processing method | |
KR20110125170A (en) | Apparatus and method for auto adjusting brightness of image taking device | |
JP2012175310A (en) | Image processing apparatus and image processing method | |
US20080131007A1 (en) | Image Coding Method and Image Coding Device | |
JP2018112936A (en) | HDR image processing apparatus and method | |
CN107358578B (en) | Yin-yang face treatment method and device | |
CN113850743B (en) | Video global tone mapping method based on self-adaptive parameters | |
JP5591026B2 (en) | Imaging apparatus and control method thereof | |
JP5297897B2 (en) | Image signal processing device | |
JP2008227959A (en) | Image processing device, image processing method and image processing system |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220316 Address after: No. 88, Wenchang East Road, Yangzhou, Jiangsu 225000 Patentee after: Jiangsu Daoyuan Technology Group Co.,Ltd. Address before: 211135 enlightenment star Nanjing maker space G41, second floor, No. 188, Qidi street, Qilin science and Technology Innovation Park, Qixia District, Nanjing, Jiangsu Province Patentee before: Jiangsu Peregrine Microelectronics Co.,Ltd. |
|
TR01 | Transfer of patent right |