TWI235608B - Method and apparatus for transforming a high dynamic range image into a low dynamic range image - Google Patents

Method and apparatus for transforming a high dynamic range image into a low dynamic range image Download PDF

Info

Publication number
TWI235608B
TWI235608B TW93103574A TW93103574A TWI235608B TW I235608 B TWI235608 B TW I235608B TW 93103574 A TW93103574 A TW 93103574A TW 93103574 A TW93103574 A TW 93103574A TW I235608 B TWI235608 B TW I235608B
Authority
TW
Taiwan
Prior art keywords
image
dynamic range
image processing
brightness
pixels
Prior art date
Application number
TW93103574A
Other languages
Chinese (zh)
Other versions
TW200527916A (en
Inventor
Chiou-Shann Fuh
Chik-Yau Foo
Chao-Yang Kao
Original Assignee
Inventec Appliances Corp
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 Inventec Appliances Corp filed Critical Inventec Appliances Corp
Priority to TW93103574A priority Critical patent/TWI235608B/en
Application granted granted Critical
Publication of TWI235608B publication Critical patent/TWI235608B/en
Publication of TW200527916A publication Critical patent/TW200527916A/en

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Studio Devices (AREA)

Abstract

A method and an apparatus for transforming a high dynamic range image into a low dynamic range image. The method includes converting first luminance values associated with pixels into a plurality of second luminance values, and utilizing a film transfer function for mapping the second luminance values associated with the pixels into a plurality of third luminance values to generate the low dynamic range image. A second luminance range of the second luminance values is smaller than a first luminance range of the first luminance values, and the film transfer function adds no visual artifact to the low dynamic range image.

Description

1235608 五、發明說明(1) 【發明所屬之技術領域】 本發明係提供一種影像處理方法與相關裝置,尤指 一種用來將一高動態範圍影像轉換成一低動態範圍影像 的方法與相關裝置。 【先前技術】 一個景物(s c e n e )的動態範圍係定義為最高的景物 亮度與最低的景物亮度之間的比例。一般來說,一標準 顯示裝置(如CRT顯示器或是LCD顯示器)的動態範圍大 約為2 5 0 : 1 ,這大約涵蓋了整個可見顏色範圍的一半。 然而,人類的視覺系統(h u m a n v i s i ο n s y s t e m,Η V S ) 通常具有一大於10, 〇〇〇 :1的動態範圍,且在一特定的亮 度下,可以區別大約1 0,0 0 0種不同的顏色。另外,一張 由電腦產生的影像(computer-generated image ,CGI) 通常在最高與最低的強度值(intensity value)之間則 具有約等於3 0 0 0倍的比例關係。 通常,在標準顯示裝置所顯示出的影像可以對應到 256個不同的灰階值(gray level)。亦即,每一個色彩 通道(R,G,B)皆由8個位元所決定。因此,最小的灰階 值為0,最大的灰階值則為255。由上述可知,在真實世 界中景物的動態範圍通常都超過標準顯示裝置所能顯示1235608 V. Description of the invention (1) [Technical field to which the invention belongs] The present invention provides an image processing method and related device, and more particularly, a method and related device for converting a high dynamic range image into a low dynamic range image. [Prior Art] The dynamic range of a scene (scene) is defined as the ratio between the highest scene brightness and the lowest scene brightness. In general, the dynamic range of a standard display device (such as a CRT display or an LCD display) is approximately 250: 1, which covers approximately half of the entire visible color range. However, the human visual system (humanvisi ο nsystem, Η VS) usually has a dynamic range greater than 10,000: 1, and can distinguish about 10, 000 different colors at a specific brightness. . In addition, a computer-generated image (CGI) usually has a proportional relationship between the highest and lowest intensity values, which is approximately equal to 3000 times. Generally, an image displayed on a standard display device can correspond to 256 different gray levels. That is, each color channel (R, G, B) is determined by 8 bits. Therefore, the minimum grayscale value is 0 and the maximum grayscale value is 255. It can be known from the above that the dynamic range of the scene in the real world is usually beyond the display of standard display devices.

1235608 五、發明說明(2) 的動態範圍 個具有高動態範 態範圍影像 並沒有任何一種簡單且 (capture 一種較為複 」(以下簡 須要對同一 exposure) 同的影像( 因此,不同 度資料。接 算法,組合 (radiance 的HDR影像 並描繪出 雜的技術, 個景物進行 。結果就是 不同的影像 曝光條件得 下來,不同 得出欲捕捉 level ), 圍的影像通常可以稱為是「高動 稱為HDR影像)。目前的科技中, 直接的方法可以用來捕捉 (render )高動態範圍影像。而有 可用來捕捉HDR影像,然而,卻必 多重曝光(mul tiple 對於相同的景物會得出複數張不 係使用不同的曝光條件得出)。 出不同的影像可以提供不同的亮 的景> 像可以藉由習知技術的一演 之景物真正的輕射等級10展 故可以得出欲捕捉景物所對應到 /在正確地記錄下HDR影像之後,下一個 景^像儲存起來。現今常見的各種數位影像袼式大^把 :用於傳統的顯示裝置上。如前文所述,一 m 位70來儲存影像的每—個色彩通道(color ^疋 C、MM1 ) ’以正確地驅動標準顯示裝置。顧而且曰 :知之影像格式的動態範圍並不足在Η | :: 上述的問題。要加大數位…. + Μ解决 1235608 五、發明說明(3) 的方法就是增加每一個色彩通道的位元數,L〇gLuv編碼 技術就疋^中的一個例子’對每一個像素皆使用了 4個位 元組來表示。有2個位元組係用來對亮度γ的對數值 (logarithm )進行編碼,另外2個位元組則用來對LUV色 彩空間(color space )上的U通道與v通道進行編碼。 在正確產生出H D R影像之後,還必須使用一色調對映 程序(tone mapping procedure),以利用所得的HDr影 像’將捕捉到的景物再製顯示於標準顯示裝置上。換句 話說,色調對映程序會將HDR影像中所記錄的亮度值轉換 成具有較低動態範圍的亮度值,以驅動具有較低動態範 圍的標準顯示裝置。因此,上述色調對映程序的主要目 的,是要將較大的動態範圍壓縮成適合標準顯示裝置的 動態範圍。眾所周知,一色調再製曲線(t 〇 n e reproduction curve ,TRC) 或是一色調再製運算子 (tone reproduction operator ,TR0)皆可應用在HDR 影像中的影像資料上。以色調再製曲線為例,每一個像 素皆會從其目前的亮度值轉換到標準顯示裝置之動態範 圍内的一顯示強度。上述的色調再製曲線係對應於一個 與空間分佈無關的轉換函數,HDR影像中的每一個像素皆 使用相同的轉換函數進行處理。至於色調再製運算子, 則會使用到空間的關係(s p a t i a 1 c ο n t e X t )來調整每一 個像素的亮度。亦即,兩個具有相同亮度值的像素可能 會對應到標準顯示裝置之動態範圍内不同的顯示強度,1235608 V. Description of the invention (2) The dynamic range of an image with a high dynamic normal range is not any simple and (capture a more complex) (the following brief need to be the same exposure) the same image (therefore, different degrees of data. Then Algorithm, combination (radiance of the HDR image and depicting the miscellaneous technique, the scene is performed. The result is that different image exposure conditions are obtained, and different levels are to be captured.) The surrounding image can usually be called "high motion is called HDR image). In current technology, direct methods can be used to capture (high dynamic range) images. Some can be used to capture HDR images, however, multiple exposures (mul tiple for the same scene will result in multiple photos). It is not derived using different exposure conditions.) Different images can provide different bright scenes.> The scene can be shot with the conventional technology. The real light shot level is 10, so you can get the scene you want to capture. Corresponding to / After the HDR image is recorded correctly, the next scene is stored. Various digital images commonly used today 袼Large handle: used on traditional display devices. As mentioned earlier, an m-bit 70 stores each color channel (color ^ 疋 C, MM1) of the image to properly drive standard display devices. Gu also said : The dynamic range of the known image format is not enough. | :: The above problem. To increase the number of digits .. + Μ to solve 1235608 V. The method of invention description (3) is to increase the number of bits per color channel, L〇 The gLuv coding technique is an example in the following example: 'Each pixel uses 4 bytes to represent. There are 2 bytes used to encode the logarithm of the brightness γ (logarithm), and the other 2 Bytes are used to encode the U and V channels in the LUV color space. After the HDR image is generated correctly, a tone mapping procedure must be used to use the resulting HDr image 'reproduces the captured scene on a standard display device. In other words, the tone mapping program converts the brightness values recorded in the HDR image into brightness values with a lower dynamic range to drive Standard display device with low dynamic range. Therefore, the main purpose of the above-mentioned tone mapping program is to compress a larger dynamic range into a dynamic range suitable for standard display devices. It is well known that a tone reproduction curve, TRC) or a tone reproduction operator (TR0) can be applied to the image data in the HDR image. Taking the tone reproduction curve as an example, each pixel will be converted from its current brightness value to a display intensity within the dynamic range of a standard display device. The above-mentioned tone reproduction curve corresponds to a transformation function independent of the spatial distribution. Each pixel in the HDR image is processed using the same transformation function. As for the hue reproduction operator, the spatial relationship (s p a t i a 1 c ο n t e X t) is used to adjust the brightness of each pixel. That is, two pixels with the same brightness value may correspond to different display intensities in the dynamic range of a standard display device.

第8頁 1235608 五、發明說明(4) 兩個具有不同亮度值的像素亦可能會對應到標準顯示裝 置之動態範圍内相同的顯示強度。 色調對映的技術亦可以用來調整捕捉到之HDR影像的 顯示品質。舉例來說,習知技術的色調對映程序可以模 擬人類眼睛的反應。請注意,H D R影像係由在不同曝光條 件下得到不同的影像而組合得出的,亦即,傳送的HDR影 像原本並不包含有任何的人類視覺效果(ν i s u a 1 artifact )下的產物。然而,人類的視覺系統中卻充滿 著各類的視覺效果,例如在高亮度下的刺眼的效果 (glare)、或是低亮度下模糊的效果(blur)。因此, 習知技術的色調對映程序會在接收到HDR影像之後,會將 人類的視覺系統中的視覺效果加入LDR影像之中。雖然最 後的LDR影像顯示於標準顯示裝置時,會對應到觀察者看 到被捕捉景物的情形,但是由於加入了視覺效果,因此 影像的品質還是會降低。另外,這種作法必須配合複雜 的即時運算,以將所要的視覺效果加到L D R影像之中,如 此耗時的複雜運算,最後則會導致不良的影像處理效 率〇 【發明内容】 本發明的一個目的在於提供一種方法及一種裝置, 用來將一高動態範圍影像轉換成相對應的一低動態範圍Page 8 1235608 V. Description of the invention (4) Two pixels with different brightness values may also correspond to the same display intensity in the dynamic range of a standard display device. Tone mapping technology can also be used to adjust the display quality of captured HDR images. For example, the hue mapping program of the prior art can simulate the response of the human eye. Please note that the HD image is obtained by combining different images under different exposure conditions, that is, the transmitted HDR image does not originally contain any human visual effects (ν i s u a 1 artifact). However, the human visual system is full of various visual effects, such as a glare effect at high brightness, or a blur effect at low brightness. Therefore, the conventional tone mapping program will add the visual effects of the human visual system to the LDR image after receiving the HDR image. Although the final LDR image is displayed on a standard display device, it will correspond to the situation where the observer sees the captured scene, but due to the added visual effects, the image quality will still be reduced. In addition, this method must be combined with complex real-time operations to add the desired visual effects to the LDR image. Such time-consuming and complicated operations will eventually lead to poor image processing efficiency. [Summary of the Invention] One of the present invention The purpose is to provide a method and a device for converting a high dynamic range image into a corresponding low dynamic range.

12356081235608

五、發明說明(5) 影像。 ^ 根據以下所提出的一實施例,本發明所揭露的方法 係,來將一高動態範圍影像轉換成一低動態範圍影像/。 該高動態範圍影像具有複數個像素,該等像素分別 ,複數個第一亮度值,該方法包含有以下步驟:)將嗲 等像素所對應到的該等第一亮度值轉換成複數個第二真〃 f ^,該等第二亮度值的一第二亮度範圍係小於該等第ϋ —壳度值的一第一亮度範圍;以及(b)使用一膠捲轉換 數’以將該等像素所對應到的該等第二亮度值對映到複 數個第三亮度值,以產生該低動態範圍影像,其中該膠 捲轉換函數並不將視覺效果加入該低動態範圍影像之/ 中0 根據以下所挺出的另一實施例,本發明所揭露的一 影,處理系統係包含有··一影像產生器,用來產生一言 ,怨範圍影像,該尚動態範圍影像具有複數個像素,= 等像素係分別對應於複數個第一亮度值;以及一 $ = 理邏輯,用來將該等像素所對應到的該等第一亮度值2 ^,複數個第二亮度值,並使用一膠捲轉換函g,以 J專像素所對應到的5亥專弟一免度值對映到複數個第二 亮度值,且在不加入視覺效果的情形下產生一低 = 圍係小於 ,影像;其中該等第二亮度值的一第二亮度欸阁μ心11 該等第一亮度值的一第一亮度範圍。5. Description of the invention (5) Video. ^ According to an embodiment proposed below, the method disclosed in the present invention is to convert a high dynamic range image into a low dynamic range image. The high dynamic range image has a plurality of pixels, and the pixels respectively have a plurality of first brightness values. The method includes the following steps :) The first brightness values corresponding to the first pixels are converted into a plurality of second brightness values. True f ^, a second brightness range of the second brightness values is less than a first brightness range of the (i) -shell value; and (b) a film conversion number is used to convert the pixels The corresponding second brightness values are mapped to a plurality of third brightness values to generate the low dynamic range image, wherein the film conversion function does not add a visual effect to the middle of the low dynamic range image. 0 According to the following In another embodiment, a video processing system disclosed in the present invention includes an image generator, which is used to generate a speech, range image, the dynamic range image has a plurality of pixels, etc. The pixels are respectively corresponding to a plurality of first brightness values; and a $ = logical logic is used for the first brightness values 2 ^ corresponding to the pixels, the plurality of second brightness values, and a film conversion is used Letter g, with J The 5 degrees corresponding to the pixels corresponding to the pixels are mapped to a plurality of second brightness values, and a low value is generated without adding visual effects = the range is less than the image; where the second brightness values are A second brightness is a first brightness range of the first brightness values.

1235608 五、發明說明(6) 由於本發明使用了一膠捲轉換S曲線,最終的LDR影 像係為一較為逼真的影像,而不包含有其他的視覺效 果,最終顯示於標準顯示裝置的LDR影像會更為清晰。藉 由使用膠捲轉換S曲線,具有亮度值在中間亮度範圍的像 素會得到較佳的影像反差,而更多細微的變化會變得更 加清楚。且膠捲轉換S曲線可以是預先定義好的,並不需 要在色調處理程序中動態地進行計算。因此,在實施 上,本發明所提出的色調對映程序會非常地簡單,且影 像處理效能會變得更好。 【實施方式】 請參閱圖一,圖一為本發明之色調對映程序(tone mapping process )的一實施例流程圖。以下將詳述圖一 中所包含的各步驟。首先,先於步驟100中載入一 HDR影 像。載入的HDR影像如前文所述,係由複數個於不同曝光 條件下得出的影像所產生出來的,其所對應到的動態範 圍係大於標準顯示裝置的動態範圍。因此,輸入之HDR影 像原本的動態範圍必須被壓縮成適用於標準顯示裝置的 低動態範圍。另外,人類的視覺系統對於絕對亮度 (absolute luminance )並不敏感,才目對地浴p對於局咅[5 的亮度變化(local luminance change)有更大的反 應,且會減少較大的總體亮度差異(global1235608 V. Description of the invention (6) Since the present invention uses a film to transform the S curve, the final LDR image is a more realistic image without other visual effects. The LDR image displayed on a standard display device will be More clear. By using the film to convert the S-curve, pixels with brightness values in the middle brightness range will get better image contrast, and more subtle changes will become more clear. And the film conversion S curve can be defined in advance and does not need to be calculated dynamically in the tone processing program. Therefore, in practice, the tone mapping procedure proposed by the present invention will be very simple, and the image processing performance will become better. [Embodiment] Please refer to FIG. 1. FIG. 1 is a flowchart of an embodiment of a tone mapping process. The steps involved in Figure 1 are detailed below. First, an HDR image is loaded before step 100. The loaded HDR image is generated by a plurality of images obtained under different exposure conditions, as described above, and the corresponding dynamic range is larger than that of a standard display device. Therefore, the original dynamic range of the input HDR image must be compressed to a low dynamic range suitable for standard display devices. In addition, the human visual system is not sensitive to absolute luminance, so the floor bath p has a greater response to the local luminance change of [5], and it will reduce the larger overall luminance. Difference

1235608 五、發明說明(7) illumination difference)所產生的效應。因此’在步 驟1 0 2中係執行了一總體梯度壓縮(g 1 〇 b a 1 g r a d i e n t c o m p r e s s i ο n )程序,以壓縮原本的動態範圍並降低總體 亮度差異。為了要降低運算時以及實施上的複雜度,在 此可以使用一空間不變的運算子(spatially invariant operator ),如以下方程式所示:1235608 V. Description of the invention (7) Effects produced by illumination difference). Therefore, in step 102, a global gradient compression (g 1 0 b a 1 g r a d i e n t c o m p r e s s i ο n) procedure is performed to compress the original dynamic range and reduce the overall brightness difference. In order to reduce the complexity of operation and implementation, a spatially invariant operator can be used here, as shown in the following equation:

Lrf(x,y)=lf^方程式⑴ 在分母的Lw( x,y)係代表在HDR影像中像素(x,y)的一 原始亮度(world luminance 或raw luminance ),至於 Ld(x,y)則代表像素(x,y)的縮放後亮度(scaled 1 u m i n a n c e )。請參閱圖二,圖二為本發明所使用之總體 梯度壓縮程序的示意圖。如圖二所示,Ld. (x,y)代表了適 用於標準顯示裝置的一正規化灰階值(normalized gray 1 e v e 1 ),亦即,Ld ( x,y )會介於〇與1之間。很明顯的,Lrf (x, y) = lf ^ Equation 的 Lw (x, y) in the denominator represents a primitive luminance (world luminance or raw luminance) of the pixel (x, y) in the HDR image. As for Ld (x, y ) Represents the scaled 1 uminance of the pixel (x, y). Please refer to FIG. 2. FIG. 2 is a schematic diagram of a general gradient compression program used in the present invention. As shown in FIG. 2, Ld. (X, y) represents a normalized gray level value (normalized gray 1 eve 1) suitable for a standard display device, that is, Ld (x, y) will be between 0 and 1 between. obviously,

Lw ( X,y )會對應到一較高的亮度值(被lw (x,y)本身正規 化),至於Lw( X,y )則會對應到一較低的亮度值 (被’ Γ正規化)。而方程式(1 )中的分母則會讓正規化 的方式界於上述兩者之間,且方程式(1)可以確保所有的 原始亮度值皆可被轉變到可接受的動態範圍之内。舉例 來說,原始的亮度值會被壓縮成適用於一特定顯示裝置 的顯示亮度值。Lw (X, y) will correspond to a higher brightness value (normalized by lw (x, y) itself), as for Lw (X, y) will correspond to a lower brightness value (normalized by 'Γ Into). The denominator in equation (1) allows the normalization method to fall between the two, and equation (1) can ensure that all the original brightness values can be transformed into an acceptable dynamic range. For example, the original brightness value is compressed into a display brightness value suitable for a particular display device.

第12頁 1235608 五、發明說明(8) 然後,步驟1 0 4會再執行一曝光分析圖等化 (histogram equalization)程序,以改善調整後景多像 正規化亮度值中的影像反差(contrast)。此處的曝光 分析圖等化會將調整後影像的曝光分析圖轉變成一個均 勻的曝光分析圖 (uniform histogram)。假設在等化 一曝光分析圖時需要使用一累計頻率分佈(cumulative frequency distribution ) P(b),其定義如以下方程式 所示:Page 12 1235608 V. Description of the invention (8) Then, step 104 executes a histogram equalization program to improve the contrast of the image in the normalized brightness value of the multi-image after adjustment. . The exposure analysis image equalization here will transform the exposure analysis image of the adjusted image into a uniform exposure histogram. Assume that a cumulative frequency distribution P (b) is needed to equalize an exposure analysis chart, and its definition is shown in the following equation:

ΡΦ) = ^bi<bTf^-方程式(2) 其中,T係代表曝光分析圖中欄位(e n t r y )的總 數。因此,P (bi)係為曝光分析圖中於‘bi之圖格(bin ) 的頻率分佈,f (bjJ則為曝光分析圖中於bi之圖格 (bin)的頻率總數(frequency count ) 〇將此一曝光 分析圖等化程序應用在一輸入影像上,會產生一輸出影 像,其亮度值(brightness value)具有相等的機率分 佈(probability)。至於等化用的方程式可以如以下所 不 ·(PΦ) = ^ bi < bTf ^ -Equation (2) where T represents the total number of fields (e n t r y) in the exposure analysis chart. Therefore, P (bi) is the frequency distribution of bins in 'bi in the exposure analysis graph, and f (bjJ is the frequency count) of bins in bi in the exposure analysis graph. Applying this equalization program of an exposure analysis map to an input image will produce an output image whose brightness value has equal probability distribution. The equation for equalization can be as follows:

Bd-l〇g ( ) + [ l〇g ( Ldmax ) -l〇g ( Ldmin ) ] *P ( B ) 方程式(3)Bd-l0g () + [l0g (Ldmax)-l0g (Ldmin)] * P (B) Equation (3)

第13頁 1235608 五、發明說明(9) 其中,Bd代表調整後的顯示亮度,B代表原始的影像亮 度。log^Ldmin) 係為標準顯示裝置的最小亮度值,l〇g (Ldmax) 則為標準顯示裝置的最大亮度值。在對輸入影像 中像素的亮度值進行重新分配(re-distributing)之 後,輸出影像可具有較佳的影像反差,故可以更清晰地 顯示出來。 然而,若是有一半的像素具有低於0 · 2+Ldmax的亮度 值時,亦即一較小的亮度範圍 [〇 ’ 〇 · 2*Ldmax]就會使用 到標準顯示裝置顯示亮度值中一半的範圍而已。因此, 有可能調整後影像的影像反差會被過度地強化 (overemphasize)。舉個例子,假設原始的影像中兩個 調整後的像素具有一較小的亮度差異。經過上述的曝光 分析圖等化程序之後,亮度差異會被放大。這會導致一 影像出現不自然的現象,故顯示品質會變得較低。因 此,於步驟1 0 6中使用了一曝光分析圖調整程序,來防止 最後的影像中影像反差被異常地放大。前述的曝光分析 圖調整程序會藉由使用一最高限制條件(c e i 1 i n g condition ),來對影像反差進行限制。以下則提出一個 實施例,最高限制條件可以如以下方程式所示:Page 13 1235608 V. Description of the invention (9) Among them, Bd represents the adjusted display brightness, and B represents the original image brightness. log ^ Ldmin) is the minimum brightness value of the standard display device, and 10 g (Ldmax) is the maximum brightness value of the standard display device. After re-distributing the brightness values of the pixels in the input image, the output image can have better image contrast, so it can be displayed more clearly. However, if half of the pixels have a brightness value lower than 0 · 2 + Ldmax, that is, a small brightness range [0 '〇 2 * Ldmax] will be used to display half of the brightness value of the standard display device. Just the scope. Therefore, it is possible that the image contrast of the adjusted image will be overemphasize. For example, suppose the two adjusted pixels in the original image have a small difference in brightness. After the above-mentioned equalization procedure of the exposure analysis chart, the brightness difference will be enlarged. This causes an image to appear unnatural, so the display quality becomes lower. Therefore, an exposure analysis map adjustment program is used in step 106 to prevent the image contrast in the final image from being abnormally enlarged. The aforementioned exposure analysis map adjustment procedure limits the image contrast by using a maximum limit condition (c e i 1 i n g condition). An example is proposed below, and the highest limit condition can be shown by the following equation:

第14頁 1235608 五、發明說明(ίο) 方程式(4 )表示了影像反差不可以超過使用一習知的 線性正規化運算子(linear scaling operation,其斜 率等於Ld/ L )所得出的影像反差。由前述的方程式(2 ), 可以導出以下的不等式: f(h\ r*Afo 方程式(5 ) 1〇g(Aw) - 1〇g(A/min) 其中,△!)係為[i〇g(Lmax)-log(Lmin) ]/N, N 為曝光 分析圖中圖格的數量,:log (LinaxV係為原始影像的最大亮 度’ 1 〇 g (Lmin)則為原始影像的最小亮度。因此,符號 △b會對應於每一個圖格的大小。如方程式(5 )所示,可 以月疋的是’只要曝光分析圖中沒有圖格的頻率總數大 於上限(亦即Ld ‘/ L ),則調整後影像的曝光分析圖就不 會異常放大影像反差。如此一來,所輸出的影像中就不 會包含有過於密集的(overpopulated)曝光分析圖的圖 格。 執行完步驟1 0 6之後,於步驟1 0 8則使用一膠捲轉換s 曲線(film transfer S-curve),啟動—對映運# (mapping operation),最後的LDR影像則合於步I驟11〇 中產生。請參閱圖三’圖三為本發明之S曲線胃的i個例 子。圖三的橫軸表示輸入亮度,縱軸則表示輪出亮产。 這個例子中的膠捲轉換S曲線1 0係對應於一相$片膠$捲^ °Page 14 1235608 V. Explanation of the invention (ίο) Equation (4) indicates that the image contrast cannot exceed the image contrast obtained using a conventional linear scaling operation (the slope of which is equal to Ld / L). From the foregoing equation (2), the following inequality can be derived: f (h \ r * Afo equation (5) 10 g (Aw)-10 g (A / min) where △!) Is [i〇 g (Lmax) -log (Lmin)] / N, where N is the number of grids in the exposure analysis graph, and log (LinaxV is the maximum brightness of the original image '10 g (Lmin) is the minimum brightness of the original image. Therefore, the symbol △ b will correspond to the size of each grid. As shown in equation (5), it can be said that 'as long as the total frequency of no grid in the exposure analysis graph is greater than the upper limit (that is, Ld' / L) , Then the exposure analysis chart of the adjusted image will not abnormally enlarge the contrast of the image. In this way, the output image will not contain the grid of the overpopulated exposure analysis chart. After completing step 1 0 6 After that, in step 108, a film transfer S-curve is used to start — mapping operation # (mapping operation), and the final LDR image is generated in step 11 and step 10. Please refer to Fig. 3 'Fig. 3 is an example of the S curve stomach of the present invention. The horizontal axis of Fig. 3 represents the input brightness, and the vertical axis It means that the production is in succession. The film conversion S curve 10 in this example corresponds to one-phase $ 片 胶 $ 卷 ^ °

第15頁 1235608 五、發明說明(11) (photographic film)的一感光反應(sensitization response )曲線。如圖三所示,位於中間範圍(1 〇〜 1000 )的輸入亮度值大約就佔掉了輸出亮度值的整個範 圍。換句話說,膠捲轉換S曲線1 〇會加大影像在中間範圍 亮度區的影像反差。因此,對應於較高亮度區與較低亮 度區的影像反差就會大幅地壓抑掉。故最後LDR影像的視 覺品質可以大幅提昇。 本發明所提出的色調對映程序亦可已使用於一影像 處理系統中,用來將一 H D R影像轉換成一 L D R影像。請參 閱圖四,圖四為本發明之影像處理系統的一實施例示意 圖。本實施例中的影像處理系統2 〇包含有一影像產生器 22以及一影像處理邏輯24。影像產生器22可以產生一高 動態範圍影像,至於影像處理邏輯2 4則可執行一色調對 映程序,以將H D R影像轉變成相對應的l d R影像。舉例來 說,影像處理系統2 0可以是一數位相機,影像產生器2 2 則包含有一CCD模組,用來捕捉入射光,以產生相對應的 影像,以及一相機快門(c a m e r a s h u 11 e r ),用來控制 CCD模組的曝光狀態。因此,影像產生器22可以藉由ccj) 模組捕捉一景物,並可藉由適當控制相機快門,9而產生 複數個不同曝光狀況的影像。接下來,影像 =習二方傻式,將得出的影像組合成對應到欲捕捉景 物的一HDR影像。Page 15 1235608 Fifth, the invention (11) (photographic film) a photosensitive response (sensitization response) curve. As shown in Figure 3, the input brightness value in the middle range (10 ~ 1000) occupies approximately the entire range of the output brightness value. In other words, the film conversion S curve 10 will increase the contrast of the image in the middle range and brightness area. Therefore, the image contrast corresponding to the higher brightness area and the lower brightness area is greatly suppressed. Therefore, the visual quality of the final LDR image can be greatly improved. The tone mapping program proposed by the present invention can also be used in an image processing system to convert an H D R image into an L D R image. Please refer to FIG. 4, which is a schematic diagram of an image processing system according to an embodiment of the present invention. The image processing system 20 in this embodiment includes an image generator 22 and an image processing logic 24. The image generator 22 can generate a high dynamic range image. As for the image processing logic 24, a tone mapping program can be executed to transform the HDR image into a corresponding LD image. For example, the image processing system 20 may be a digital camera, and the image generator 22 includes a CCD module for capturing incident light to generate a corresponding image and a camera shutter (camerashu 11 er). Used to control the exposure status of the CCD module. Therefore, the image generator 22 can capture a scene by the ccj) module, and by appropriately controlling the camera shutter, 9 can generate a plurality of images with different exposure conditions. Next, the image = Xi Erfang's silly style, combines the obtained images into an HDR image corresponding to the scene to be captured.

第16頁 1235608 五、發明說明(12) 之後,再啟動影像處理邏輯24以對HDR影像進行處 理。本實施例中的影像處理邏輯2 4可以執行上述的步驟 102、104、106、108,以產生出所需的LDR影像。由於影 像處理邏輯2 4可以是一數位訊號處理器(d i g i t a 1 signal processor, DSP),使用一簡單的膠捲轉換函 數,故相關的計算並不會太過複雜。一般而言,數位相 機大多具有一小型的LCD顯示幕,用來預覽捕捉到的景 物。而由於影像處理邏輯2 4使用簡單的膠捲轉換函數, 故其會具有不錯的影像處理效能,使用者可以很快地在 LCD顯示幕上預覽LDR影像。另外,所產生的LDR影像亦會 具有較佳的影像品質(因為並沒有任何的視覺效果被加 入LDR影像之中)。 至於在另外的實施例中,影像產生器2 2可以僅用來 捕捉一景物以於不同的曝光條件下產生複數個影像。然 後,再由影像處理邏輯24負責產生HDR影像。相似的,影 像處理邏輯2 4亦可以執行前文所提到的步驟1 0 2、1 0 4、 1 06、1 08,以產生最終的LDR影像。 如前文所述,影像處理系統2 0可以是一數位相機, 故影像產生器22與影像處理邏輯24皆設置於相同的殼體 之中。然而,影像處理系統2 0亦可以由複數個獨立的裝 置所構成。舉例來說,影像產生器2 2本身即可以是一數 位相機,至於影像處理邏輯2 4則可以是一電腦主機。在Page 16 1235608 V. Description of the invention (12) After that, the image processing logic 24 is started to process the HDR image. The image processing logic 24 in this embodiment may perform the above steps 102, 104, 106, and 108 to generate a desired LDR image. Since the image processing logic 24 can be a digital signal processor (DSP) and a simple film conversion function is used, the related calculations are not too complicated. Generally speaking, most digital cameras have a small LCD display for previewing the captured scene. Since the image processing logic 24 uses a simple film conversion function, it will have good image processing performance, and users can quickly preview LDR images on the LCD display. In addition, the generated LDR image will also have better image quality (because no visual effects are added to the LDR image). As for another embodiment, the image generator 22 can only be used to capture a scene to generate multiple images under different exposure conditions. The image processing logic 24 is then responsible for generating the HDR image. Similarly, the image processing logic 24 can also perform the steps 10, 102, 104, 106, and 08 mentioned above to generate the final LDR image. As described above, the image processing system 20 may be a digital camera, so the image generator 22 and the image processing logic 24 are both disposed in the same casing. However, the image processing system 20 may also be composed of a plurality of independent devices. For example, the image generator 2 2 itself can be a digital camera, and the image processing logic 24 can be a computer host. in

第17頁 1235608 五、發明說明(13) 此種架構下,由影像產生器2 2所產生輸出的影像資料會 被傳送至外部的影像處理邏輯2 4,以進行後續的影像處 理程序。 如前文所述,在習知技術的作法中會將視覺效果加 在最終的L D R影像之中,以便強調視覺的正確性(v i s u a 1 accuracy )。然而,由於加入了視覺效果,LDR影像的影 像品質會變得較差。另外,要加入人類視覺系統的視覺 效果,會需要用到大量耗時的影像再製工作,例如於較 高亮度之處加入刺眼的效果,以及於低亮度之處加入模 糊的效果,這皆會降低影像處理的效能。相較於習知技 術,本發明則是採用一膠捲轉換S曲線。最終的LDR影像 係為一較為逼真的影像,而不包含有其他的視覺效果, 且最終顯示於標準顯示裝置的LDR影像會更為清晰。藉由 使用膠捲轉換S曲線,具有亮度值在中間亮度範圍的像素 會得到較佳的影像反差,而更多細微的變化會變得更加 清楚。且膠捲轉換S曲線可以是預先定義好的,並不需要 在色調處理程序中動態地進行計算。因此,在實施上, 本發明所提出的色調對映程序會非常地簡單,且影像處 理效能會變得更好。 以上所述僅為本發明之較佳實施例,凡依本發明申 請專利範圍所做之均等變化與修飾,皆應屬本發明專利 之涵蓋範圍。Page 17 1235608 V. Description of the invention (13) Under this structure, the image data output by the image generator 2 2 will be transmitted to the external image processing logic 24 for subsequent image processing procedures. As mentioned above, in the practice of the conventional technology, visual effects are added to the final L DR image in order to emphasize the visual correctness (v i s u a 1 accuracy). However, due to the added visual effects, the image quality of LDR images will become worse. In addition, to add the visual effects of the human visual system, it will require a lot of time-consuming image reproduction work, such as adding a glare effect at a higher brightness and a blur effect at a lower brightness. Performance of image processing. Compared with the prior art, the present invention uses a film conversion S curve. The final LDR image is a more realistic image without other visual effects, and the final LDR image displayed on a standard display device will be clearer. By using the film to convert the S-curve, pixels with brightness values in the middle brightness range will get better image contrast, and more subtle changes will become clearer. And the film conversion S curve can be predefined, and it does not need to be calculated dynamically in the tone processing program. Therefore, in practice, the tone mapping procedure proposed by the present invention will be very simple, and the image processing performance will become better. The above description is only a preferred embodiment of the present invention, and any equivalent changes and modifications made in accordance with the scope of the patent application of the present invention shall fall within the scope of the patent of the present invention.

第18頁 1235608 圖式簡單說明 圖式之簡單說明 圖 一 為 本 發 明 之 色調 對映 程序的一 實 施 例 流 程 圖。 圖 二 為 本 發 明 所 使用 之總 體梯度壓 縮 程 序 的 示 意圖 圖 二 為 本 發 明 之S曲線的- -個例子 〇 圖 四 為 本 發 明 之 影像 處理 系統的一 實 施 例 示 意 圖。 圖 式 之 符 號 說 明 10 S曲線 20 影 像 處 理 系 統 22 影 像 產 生 器 24 影 像 處 理 邏 輯Page 18 1235608 Brief description of the diagram Brief description of the diagram Figure 1 is a flowchart of an embodiment of the tone mapping program of the present invention. Figure 2 is a schematic diagram of the overall gradient compression program used in the present invention. Figure 2 is an example of the S curve of the present invention. Figure 4 is a schematic diagram of an embodiment of the image processing system of the present invention. The symbol of the pattern indicates the 10 S curve 20 the image processing system 22 the image generator 24 the image processing logic

第19頁Page 19

Claims (1)

1235608 六、申請專利範圍 5 . —種影像處理系統,包含有: 一影像產生器,用來產生一高動態範圍影像,該高動 態範圍影像具有複數個像素,該等像素係分別對 應於複數個第一亮度值;以及 一影像處理邏輯,用來將該等像素所對應到的該等第 一亮度值轉換成複數個第二亮度值,並使用一膠 捲轉換函數,以將該等像素所對應到的該等第二 亮度值對映到複數個第三亮度值,且在不加入視 覺效果的情形下產生一低動態範圍影像; 其中該等第二亮度值的一第二亮度範圍係小於該等第 一亮度值的一第一亮度範圍。 6. 如申請專利範圍第5項所述之影像處理系統,其係為一 數位相機。 7. 如申請專利範圍第5項所述之影像處理系統,其中該影 像產生器係可在不同的曝光情形下捕捉複數個影像, 以產生該高動態範圍影像。 8. 如申請專利範圍第5項所述之影像處理系統,其中該影 像處理邏輯係可執行一曝光分析圖等化程序,以調整 該等像素的該等第二亮度值。 9 ·如申請專利範圍第8項所述之影像處理系統,其中該影1235608 VI. Application for patent scope 5. — An image processing system including: an image generator for generating a high dynamic range image, the high dynamic range image has a plurality of pixels, and the pixels correspond to a plurality of pixels, respectively. A first brightness value; and an image processing logic for converting the first brightness values corresponding to the pixels into a plurality of second brightness values, and using a film conversion function to correspond to the pixels The obtained second brightness values are mapped to a plurality of third brightness values, and a low dynamic range image is generated without adding visual effects; wherein a second brightness range of the second brightness values is smaller than the A first brightness range equal to the first brightness value. 6. The image processing system described in item 5 of the scope of patent application, which is a digital camera. 7. The image processing system according to item 5 of the scope of patent application, wherein the image generator is capable of capturing a plurality of images under different exposure situations to generate the high dynamic range image. 8. The image processing system described in item 5 of the scope of patent application, wherein the image processing logic can execute an exposure analysis map equalization program to adjust the second brightness values of the pixels. 9 · The image processing system described in item 8 of the scope of patent application, wherein the image 1235608 六、申請專利範圍 像處理邏輯係可防止對應到一第二亮度值之預設像素 的一總數量大於一預設限度。 1 0 .如申請專利範圍第5項所述之影像處理系統,其中該 影像處理邏輯係可執行一總體梯度壓縮程序,以將該 等第一亮度值轉換成該等第二亮度值。1235608 VI. Patent Application Range The image processing logic can prevent a total number of preset pixels corresponding to a second brightness value from exceeding a preset limit. 10. The image processing system according to item 5 of the scope of patent application, wherein the image processing logic is capable of executing an overall gradient compression program to convert the first brightness values into the second brightness values. 第22頁Page 22
TW93103574A 2004-02-13 2004-02-13 Method and apparatus for transforming a high dynamic range image into a low dynamic range image TWI235608B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW93103574A TWI235608B (en) 2004-02-13 2004-02-13 Method and apparatus for transforming a high dynamic range image into a low dynamic range image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW93103574A TWI235608B (en) 2004-02-13 2004-02-13 Method and apparatus for transforming a high dynamic range image into a low dynamic range image

Publications (2)

Publication Number Publication Date
TWI235608B true TWI235608B (en) 2005-07-01
TW200527916A TW200527916A (en) 2005-08-16

Family

ID=36637729

Family Applications (1)

Application Number Title Priority Date Filing Date
TW93103574A TWI235608B (en) 2004-02-13 2004-02-13 Method and apparatus for transforming a high dynamic range image into a low dynamic range image

Country Status (1)

Country Link
TW (1) TWI235608B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI401963B (en) * 2009-06-25 2013-07-11 Pixart Imaging Inc Dynamic image compression method for face detection
US10616497B2 (en) 2015-12-23 2020-04-07 Huawei Technologies Co., Ltd. Method and apparatus for processing image signal conversion, and terminal device
US10783621B2 (en) 2015-12-15 2020-09-22 Huawei Technologies Co., Ltd. Method and apparatus for processing high dynamic range image, and terminal device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI401963B (en) * 2009-06-25 2013-07-11 Pixart Imaging Inc Dynamic image compression method for face detection
US10783621B2 (en) 2015-12-15 2020-09-22 Huawei Technologies Co., Ltd. Method and apparatus for processing high dynamic range image, and terminal device
US10616497B2 (en) 2015-12-23 2020-04-07 Huawei Technologies Co., Ltd. Method and apparatus for processing image signal conversion, and terminal device

Also Published As

Publication number Publication date
TW200527916A (en) 2005-08-16

Similar Documents

Publication Publication Date Title
US20050117799A1 (en) Method and apparatus for transforming a high dynamic range image into a low dynamic range image
JP5476793B2 (en) Method and apparatus for compressing dynamic range of original image and digital camera
JP5713752B2 (en) Image processing apparatus and control method thereof
JP5806682B2 (en) Generation and rendering of high dynamic range images
JP5408053B2 (en) Image processing apparatus and image processing method
CN111885312B (en) HDR image imaging method, system, electronic device and storage medium
WO2012098768A1 (en) Image processing device, image processing method, image processing program, and photography device
JP5457652B2 (en) Image processing apparatus and method
CN114866809B (en) Video conversion method, apparatus, device, storage medium, and program product
DE112013001976B4 (en) Image pickup device and method for controlling this
US7613338B2 (en) Image processing method and apparatus, program, and storage medium
WO2021213336A1 (en) Image quality enhancement device and related method
KR20120114899A (en) Image processing method and image processing apparatus
CN109643528B (en) Information processing apparatus, information processing method, and program
Chaurasiya et al. High dynamic range imaging
TWI235608B (en) Method and apparatus for transforming a high dynamic range image into a low dynamic range image
KR101642034B1 (en) Method and Apparatus for converting dynamic ranges of input images
JP2008294524A (en) Image processor and image processing method
JP2005284534A (en) Method for converting image of high dynamic range into image of low dynamic range and device related to the method
GB2408872A (en) Converting a high dynamic range image to a low dynamic range image using a film transfer function
US11647298B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
CN114283100A (en) High dynamic range image synthesis and tone mapping method and electronic equipment
Johnson Cares and concerns of CIE TC8-08: spatial appearance modeling and HDR rendering
Luzardo et al. Fully-automatic inverse tone mapping algorithm based on dynamic mid-level tone mapping
KR100520970B1 (en) Method and apparatus for transforming a high dynamic range image into a low dynamic range image

Legal Events

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