TW201419861A - Tone mapping method of high dynamic range image - Google Patents

Tone mapping method of high dynamic range image Download PDF

Info

Publication number
TW201419861A
TW201419861A TW101141334A TW101141334A TW201419861A TW 201419861 A TW201419861 A TW 201419861A TW 101141334 A TW101141334 A TW 101141334A TW 101141334 A TW101141334 A TW 101141334A TW 201419861 A TW201419861 A TW 201419861A
Authority
TW
Taiwan
Prior art keywords
pixel
block
dynamic range
high dynamic
image
Prior art date
Application number
TW101141334A
Other languages
Chinese (zh)
Other versions
TWI487346B (en
Inventor
Jing-Wei Ye
Xuan-Xiang Wang
Original Assignee
Nat Univ Chung Cheng
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 Nat Univ Chung Cheng filed Critical Nat Univ Chung Cheng
Priority to TW101141334A priority Critical patent/TWI487346B/en
Publication of TW201419861A publication Critical patent/TW201419861A/en
Application granted granted Critical
Publication of TWI487346B publication Critical patent/TWI487346B/en

Links

Abstract

There is provided a tone mapping method of high dynamic range image, which comprises the following steps: (A) acquiring a high dynamic range (HDR) image; (B) performing two processes to the HDR image, wherein the first one is to perform a fast screen type tone mapping process to the HDR image so that each processed pixel is outputted as PixelFG, and the second one is to perform a block-based operation of gradient compression-based algorithm so that each processed pixel is outputted as PixelBGC; and c performing a calculation to the pixel output PixelFG and the pixel output PixelBGC corresponding to each pixel and outputting the calculated result as the final result , wherein the calculation is αx PixelFG + β x PixelBGC where the values of α and β are in the range of 0 to 1 and α+βequals 1.

Description

高動態範圍影像之色調對應方法 Tone correspondence method for high dynamic range images

本發明係與影像處理的技術有關,特別是指一種高動態範圍影像之色調對應方法。 The invention relates to the technology of image processing, in particular to a method for matching the color of a high dynamic range image.

目前的攝像與真實場景之間,仍存有許多差異,其中最主要的因素之一,即使這些設備所能支援的亮度動態範圍,遠遜於人眼所能感知者。目前已可見到感光元件日益進展與影像處理技術的進步,這兩項進展都會有效提升攝像之動態範圍,拉近其與真實場景的距離。 There are still many differences between the current camera and the real scene. One of the most important factors, even if these devices can support the dynamic range of brightness, is far less than the human eye can perceive. At present, the progress of photosensitive elements and the advancement of image processing technology have been observed. Both of these advances will effectively enhance the dynamic range of the camera and bring it closer to the real scene.

不過,目前的顯示器受限於其電子元件,仍只能支援低動態範圍,因此即使在攝像方面已可以經由先進的感測元件或透過先進的影像處理技術來獲得高動態範圍(High Dynamic Range,以下簡稱HDR),然而這些HDR影像卻無法直接正確的顯示,必須再經過一色調對應(Tone Mapping,以下簡稱TM)的程序來壓縮動態範圍之後,才能正確的在顯示器上展現影像的原貌。 However, current displays are limited by their electronic components and still only support low dynamic range, so even in the field of imaging, high dynamic range can be obtained through advanced sensing components or through advanced image processing technology. Hereinafter referred to as HDR), however, these HDR images cannot be directly displayed correctly, and the Tone Mapping (TM) program must be used to compress the dynamic range before the original image can be correctly displayed on the display.

目前效果最好的色調對應演算法為梯度壓縮式(Gradient Compression-Based,以下簡稱GC)演算法,但由於GC演算法涉及到計算梯度以及衰減函數,並且必須求解Poisson方程式,其運算十分複雜,僅僅一張靜態的影像即需耗時甚久,因此不能以純軟體方式因應即時性的視訊處理,而必須以硬體加速器來輔助運算,如此一來,硬 體成本增加,而且處理時間長,並不符合經濟效益。 At present, the best-performing tone-corresponding algorithm is the Gradient Compression-Based (GC) algorithm, but since the GC algorithm involves calculating the gradient and the attenuation function, and the Poisson equation must be solved, the operation is very complicated. Just a static image takes a long time, so you can't respond to the instant video processing in pure software, but you must use a hardware accelerator to assist the operation. As a result, hard The increase in body cost and long processing time are not economical.

由於GC演算法運算十分複雜,因此並不適合將全部的運算直接配合畫面之大小以硬體實現。目前的解決方法是將影像切割成區塊,再針對每個區塊進行運算(以下簡稱Block-based GC),才能令硬體成本維持在可接受的範圍內。目前不論區塊間有無重疊,一般通用的解法均是在硬體的成本限制下,尋求最大的區塊,藉以減輕因區塊所造成的畫質下降。但無論區塊如何劃分,Block-based GC都會由於其區塊獨立作業的方式,喪失了畫面原有的全域連續性色調的性質,進而導致了畫質下降,此種問題在目前並未獲得解決。故,以Block-based GC雖為實作之必然,但卻也同時產生了畫質不佳的問題。 Because the GC algorithm is very complicated, it is not suitable to implement all the operations directly with the size of the screen. The current solution is to cut the image into blocks and then perform calculations for each block (hereafter referred to as Block-based GC) in order to maintain the hardware cost within an acceptable range. At present, regardless of whether there is overlap between blocks, the general solution is to seek the largest block under the hardware cost limit, so as to reduce the image quality caused by the block. However, no matter how the blocks are divided, the Block-based GC loses the original continuous color tone of the picture due to the independent operation of the block, which leads to the deterioration of image quality. This problem has not been solved yet. . Therefore, although the Block-based GC is inevitable, it also has the problem of poor image quality.

另外,還有計算較為簡易的「畫面式(Frame-Based)」色調轉換技術,其不需使用到大量的硬體運算成本,例如Photographic(以下簡稱PH)運算法[1],或是Fast Bilateral Filtering法[2]等,其不會有畫質不佳的問題,但仍需使用一定程度的硬體運算資源,因此與Block-based GC可謂互有所長,而可有互補效果。 In addition, there is a simple calculation of the "Frame-Based" tone conversion technology, which does not require a large amount of hardware computing costs, such as Photographic (hereinafter referred to as PH) algorithm [1], or Fast Bilateral. The Filtering method [2], etc., does not have the problem of poor image quality, but still needs to use a certain amount of hardware computing resources, so it can be said that the Block-based GC has a long and complementary effect.

由於HDR影像的全面普及幾乎已是既定的趨勢,即時、快速地顯示HDR的影像資料亦必是不可或缺,因此具有即時且高品質的TM計算能力的設備即具有相當商業潛力,本發明正是呼應此一趨勢而提出。 Since the full popularity of HDR images is almost an established trend, it is indispensable to display HDR image data instantly and quickly. Therefore, devices with instant and high-quality TM computing capabilities have considerable commercial potential, and the present invention is It is echoed by this trend.

[1] E. Reinhard, M. Stark, P. Shirley, and J. Ferwerda, “Photographic Tone Reproduction for Digital Images,” Proc of SIGGRAPH, 2002. [1] E. Reinhard, M. Stark, P. Shirley, and J. Ferwerda, “Photographic Tone Reproduction for Digital Images,” Proc Of SIGGRAPH, 2002.

[2] F. Durand and J. Dorsey, “Fast Bilateral Filtering for the Display of HDR Images,” ACM Transactions on Graphics, 21(3):257-266, 2002. [2] F. Durand and J. Dorsey, “Fast Bilateral Filtering for the Display of HDR Images,” ACM Transactions on Graphics, 21(3): 257-266, 2002.

本發明之主要目的在於提供一種高動態範圍影像之色調對應方法,其可結合以區塊為基礎的梯度壓縮演算法(Block-based GC)以及畫面式(Frame-Based)色調轉換技術,可兼具簡化運算以及提升畫質的效果,進而具有減少硬體需求以及快速處理的效果。 The main object of the present invention is to provide a method for matching the tone of a high dynamic range image, which can be combined with a block-based GC and a frame-based tone conversion technique. With simplified calculations and improved image quality, it has the effect of reducing hardware requirements and processing quickly.

為了達成前述目的,依據本發明所提供之一種高動態範圍影像之色調對應方法,包含有下列步驟:A)取得高動態範圍(HDR)的影像,該HDR影像係由多個畫面所組成,各該畫面係由多個像素所組成;B)對該HDR影像進行兩種處理,其一為將該HDR影像進行快速畫面式色調對應(Fast Global Tone Mapping)處理,並且其所處理的每個像素輸出為PixelFG,其中各個像素所對應的像素輸出PixelFG不一定相同;其二為將該HDR影像切割成多個區塊後再針對每個區塊進行以區塊為基礎的梯度壓縮演算法(Block-based GC)運算,並且其所處理的每個像素輸出為PixelBGC,其中各個像素所對應的像素輸出PixelBGC不一定相同;以及C)將每個像素所對應的該像素輸出PixelFG與該像素輸出PixelBGC進行一運算,此運算內容為 α×PixelFG+β×PixelBGC,其中α及β的數值介於0與1之間,且α+β=1;運算後之結果即為最終之輸出結果。 In order to achieve the foregoing object, a method for color tone corresponding to a high dynamic range image according to the present invention includes the following steps: A) obtaining a high dynamic range (HDR) image, the HDR image is composed of a plurality of screens, each of which The picture is composed of a plurality of pixels; B) performing two kinds of processing on the HDR image, one of which is a Fast Global Tone Mapping process for the HDR image, and each pixel processed by the HDR image The output is Pixel FG , in which the pixel output Pixel FG corresponding to each pixel is not necessarily the same; the second is to cut the HDR image into multiple blocks and then perform a block-based gradient compression algorithm for each block. (Block-based GC) operation, and each pixel output processed is Pixel BGC , in which the pixel output Pixel BGC corresponding to each pixel is not necessarily the same; and C) the pixel corresponding to each pixel is output Pixel FG the pixel output with a pixel BGC operation, this operation content is α × pixel FG + β × pixel BGC, wherein the value beta] [alpha] and is between 0 and 1, and α + β = 1; i.e., the result of the calculation The final output.

較佳地,在步驟C)中,α及β的數值可視區塊的不同或畫面的不同來動態調整,不過仍需維持α及β的數值介於0與1之間,且α+β=1。 Preferably, in step C), the values of α and β are dynamically adjusted depending on the difference of the block or the difference of the picture, but it is still necessary to maintain the values of α and β between 0 and 1, and α+β= 1.

較佳地,於步驟B)中,該快速畫面式色調對應處理,係指以畫面為基礎(Frame-based)的處理方式,而且是針對整張畫面直接處理的方式,並且其運算複雜度不超過以區塊為基礎的梯度壓縮演算法(Block-based GC)。 Preferably, in step B), the fast picture type tone correspondence processing refers to a frame-based processing method, and is a method for directly processing the entire picture, and the operation complexity thereof is not More than the block-based GC-based gradient compression algorithm (Block-based GC).

較佳地,該快速畫面式色調對應處理,係選自影像色調對應法(Photographic Tone Mapping,簡稱PH)或快速雙邊濾波法(Fast Bilateral Filtering)兩者技術的其中之一。 Preferably, the fast-screen tone matching processing is one of two technologies selected from the group consisting of a Photographic Tone Mapping (PH) or a Fast Bilateral Filtering.

為了詳細說明本發明之技術特點所在,茲舉以下之較佳實施例並配合圖式說明如後。 In order to explain the technical features of the present invention in detail, the following preferred embodiments are described below with reference to the drawings.

如第一圖所示,本發明一較佳實施例所提供之一種高動態範圍影像之色調對應方法,主要具有下列步驟: As shown in the first figure, a method for color tone correspondence of a high dynamic range image according to a preferred embodiment of the present invention has the following steps:

A)取得高動態範圍(HDR)影像,該HDR影像係由多個畫面所組成,各該畫面係由多個像素所組成。 A) A high dynamic range (HDR) image is obtained, which is composed of a plurality of pictures, each of which is composed of a plurality of pixels.

B)對該HDR影像進行兩種處理,其一為將該HDR影像進行快速畫面式色調對應(Fast Global Tone Mapping)處理,並且其所處理的每個像素輸出為PixelFG,其中各該像素所對應的像素輸出PixelFG不一定相同;其二為將該HDR 影像切割成多個區塊後再針對每個區塊進行以區塊為基礎的梯度壓縮演算法(Block-based GC)運算,並且其所處理的每個像素輸出為PixelBGC,其中各個像素所對應的像素輸出PixelBGC不一定相同。 B) performing two processes on the HDR image, one of which is to perform a Fast Global Tone Mapping process on the HDR image, and each pixel processed by the pixel is Pixel FG , wherein each pixel is The corresponding pixel output Pixel FG is not necessarily the same; the second is to block the HDR image into multiple blocks and then perform a block-based GC-based operation for each block, and The output of each pixel processed is Pixel BGC , in which the pixel output Pixel BGC corresponding to each pixel is not necessarily the same.

於本實施例中,該快速畫面式色調對應處理,係指以畫面為基礎(Frame-based)的處理方式,而且是針對整張畫面直接處理的方式,並且其運算複雜度不超過以區塊為基礎的梯度壓縮演算法(Block-based GC)。舉例而言,該快速畫面式色調對應處理,係可選擇影像色調對應法(Photographic Tone Mapping,簡稱PH)或快速雙邊濾波法(Fast Bilateral Filtering)兩者技術的其中之一。 In the present embodiment, the fast picture type tone correspondence processing refers to a frame-based processing method, and is a method for directly processing the entire picture, and the operation complexity thereof is not more than the block. A basic block-based GC. For example, the fast-screen tone matching processing is one of a technique of selecting either a Photographic Tone Mapping (PH) or a Fast Bilateral Filtering.

C)將每個像素所對應的該像素輸出PixelFG與該像素輸出PixelBGC進行一運算,此運算內容為α×PixelFG+β×PixelBGC,其中α及β的數值介於0與1之間,且α+β=1;運算後之結果即為最終之輸出結果。於本實施例中,α及β的數值可視區塊的不同或畫面的不同來動態調整,不過仍需維持α及β的數值介於0與1之間,且α+β=1。 C) performing an operation on the pixel output Pixel FG corresponding to each pixel and the pixel output Pixel BGC , the operation content is α×Pixel FG +β×Pixel BGC , wherein the values of α and β are between 0 and 1 Between, and α + β = 1; the result of the operation is the final output. In this embodiment, the values of α and β are dynamically adjusted depending on the block or the difference in the picture, but it is still necessary to maintain the values of α and β between 0 and 1, and α+β=1.

藉由上述步驟,可取得快速畫面式色調處理方法的優點:處理整張畫面,但不分割成區塊,藉以保持畫面品質;另一方面,也可取得以區塊為基礎的梯度壓縮演算法(Block-based GC)的優點:可配合硬體的限制來快速處理,進而減少硬體需求,降低成本。並配合權重的分配(即α及β的比例),可調整出最適合的影像輸出結果。藉此,本 發明所提供之技術解決了先前技術中對於硬體成本的限制,而且也解決了使用以區塊為基礎的梯度壓縮演算法(Block-based GC)造成畫面品質下降的問題。 Through the above steps, the advantage of the fast picture tone processing method can be obtained: the whole picture is processed, but not divided into blocks, thereby maintaining the picture quality; on the other hand, the block-based gradient compression algorithm can also be obtained. (Block-based GC) Advantages: Fast processing with hardware limitations, reducing hardware requirements and reducing costs. Together with the weight distribution (ie the ratio of α and β), the most suitable image output can be adjusted. By this, this The technique provided by the invention solves the limitation on the hardware cost in the prior art, and also solves the problem of using a block-based GC to cause a deterioration in picture quality.

由此可見,本發明達到了兼具簡化運算以及提升畫質的效果,進而具有減少硬體需求以及快速處理的效果。 It can be seen that the present invention achieves the effects of simplifying the calculation and improving the image quality, thereby reducing the hardware requirement and the fast processing effect.

第一圖係本發明一較佳實施例之操作示意圖。 The first figure is a schematic view of the operation of a preferred embodiment of the present invention.

Claims (4)

一種高動態範圍影像之色調對應方法,包含有下列步驟:A)取得高動態範圍(HDR)的影像,該HDR影像係由多個畫面所組成,各該畫面係由多個像素所組成;B)對該HDR影像進行兩種處理,其一為將該HDR影像進行快速畫面式色調對應(Fast Global Tone Mapping)處理,並且其所處理的每個像素輸出為PixelFG,其中各個像素所對應的像素輸出PixelFG不一定相同;其二為將該HDR影像切割成多個區塊後再針對每個區塊進行以區塊為基礎的梯度壓縮演算法(Block-based GC)運算,並且其所處理的每個像素輸出為PixelBGC,其中各個像素所對應的像素輸出PixelBGC不一定相同;以及C)將每個像素所對應的該像素輸出PixelFG與該像素輸出PixelBGC進行一運算,此運算內容為α×PixelFG+β×PixelBGC,其中α及β的數值介於0與1之間,且α+β=1;運算後之結果即為最終之輸出結果。 A method for matching a tone of a high dynamic range image includes the following steps: A) obtaining a high dynamic range (HDR) image, the HDR image being composed of a plurality of pictures, each of the pictures being composed of a plurality of pixels; The HDR image is subjected to two processes, one of which is a Fast Global Tone Mapping process, and each pixel processed is Pixel FG , wherein each pixel corresponds to The pixel output Pixel FG is not necessarily the same; the second is to block the HDR image into a plurality of blocks and then perform a block-based GC-based block operation for each block, and Each pixel output processed is Pixel BGC , wherein the pixel output Pixel BGC corresponding to each pixel is not necessarily the same; and C) an operation is performed on the pixel output Pixel FG corresponding to each pixel and the pixel output Pixel BGC , The operation content is α×Pixel FG +β×Pixel BGC , where the values of α and β are between 0 and 1, and α+β=1; the result of the operation is the final output result. 依據申請專利範圍第1項所述之高動態範圍影像之色調對應方法,其中:在步驟C)中,α及β的數值可視區塊的不同或畫面的不同來動態調整,不過仍需維持α及β的數值介於0與1之間,且α+β=1。 According to the color tone corresponding method of the high dynamic range image according to claim 1, wherein in step C), the values of α and β are dynamically adjusted according to different blocks or different screens, but it is still necessary to maintain α. And the value of β is between 0 and 1, and α + β = 1. 依據申請專利範圍第1項所述之高動態範圍影像之色調對應方法,其中:於步驟B)中,該快速畫面式色調對應處理,係指以畫面為基礎(Frame-based)的處理方式,而 且是針對整張畫面直接處理的方式,並且其運算複雜度不超過以區塊為基礎的梯度壓縮演算法(Block-based GC)。 According to the color tone corresponding method of the high dynamic range image according to the first aspect of the patent application, in the step B), the fast picture type tone corresponding processing refers to a frame-based processing method. and It is a way to directly process the entire picture, and its computational complexity does not exceed the block-based GC-based gradient compression algorithm (Block-based GC). 依據申請專利範圍第3項所述之高動態範圍影像之色調對應方法,其中:該快速畫面式色調對應處理,係選自影像色調對應法(Photographic Tone Mapping,簡稱PH)或快速雙邊濾波法(Fast Bilateral Filtering)兩者技術的其中之一。 According to the color tone corresponding method of the high dynamic range image described in claim 3, wherein the fast picture type tone corresponding processing is selected from a Photographic Tone Mapping (PH) or a fast bilateral filtering method ( Fast Bilateral Filtering) One of the two technologies.
TW101141334A 2012-11-07 2012-11-07 Method of hue corresponding to high dynamic range image TWI487346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101141334A TWI487346B (en) 2012-11-07 2012-11-07 Method of hue corresponding to high dynamic range image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101141334A TWI487346B (en) 2012-11-07 2012-11-07 Method of hue corresponding to high dynamic range image

Publications (2)

Publication Number Publication Date
TW201419861A true TW201419861A (en) 2014-05-16
TWI487346B TWI487346B (en) 2015-06-01

Family

ID=51294550

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101141334A TWI487346B (en) 2012-11-07 2012-11-07 Method of hue corresponding to high dynamic range image

Country Status (1)

Country Link
TW (1) TWI487346B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7142723B2 (en) * 2003-07-18 2006-11-28 Microsoft Corporation System and process for generating high dynamic range images from multiple exposures of a moving scene
US20070040922A1 (en) * 2005-08-22 2007-02-22 Micron Technology, Inc. HDR/AB on multi-way shared pixels
US20070242141A1 (en) * 2006-04-14 2007-10-18 Sony Corporation And Sony Electronics Inc. Adjustable neutral density filter system for dynamic range compression from scene to imaging sensor
US7969490B2 (en) * 2006-08-25 2011-06-28 Micron Technology, Inc. Method, apparatus, and system providing an imager with pixels having extended dynamic range
TWI348816B (en) * 2007-12-14 2011-09-11 Ind Tech Res Inst Variable-gain wide-dynamic-range amplifier

Also Published As

Publication number Publication date
TWI487346B (en) 2015-06-01

Similar Documents

Publication Publication Date Title
US11200649B2 (en) Image processing method and apparatus, display device, and computer readable storage medium
JP5695186B2 (en) 3D video comfort noise and film grain processing
CN108702514B (en) High dynamic range image processing method and device
EP3149706B1 (en) Image refocusing for camera arrays
NZ590610A (en) Perceptually-based compensation of unintended light pollution of images for display systems
CN109345490B (en) Method and system for enhancing real-time video image quality of mobile playing terminal
US20140169669A1 (en) Tone mapping method of high dynamic range image/video
Kovaleski et al. High-quality brightness enhancement functions for real-time reverse tone mapping
US20150373247A1 (en) Method and apparatus for dynamic range expansion of ldr video sequence
CN104182194A (en) Method and system for seamless edge blending processing in projection display
WO2019061654A1 (en) Driving method and system for liquid crystal display, and computer-readable medium
CN108885790B (en) Processing images based on generated motion data
Liu et al. Learning noise-decoupled affine models for extreme low-light image enhancement
Eilertsen The high dynamic range imaging pipeline
WO2022111717A1 (en) Image processing method and apparatus, and electronic device
Lo et al. High dynamic range (hdr) video image processing for digital glass
TWI487346B (en) Method of hue corresponding to high dynamic range image
CN115049572A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
TW202303374A (en) High quality ui elements with frame extrapolation
US10063834B2 (en) Method and apparatus for providing video enhancements for display images
JP2014126774A (en) Image processor, image display device and image processing method
CN108122216A (en) For the system and method for the dynamic range expansion of digital picture
WO2020107651A1 (en) Image processing method
Barladian et al. An effective tone mapping operator for high dynamic range images
Smit et al. Non-uniform crosstalk reduction for dynamic scenes

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees