200922287 九、發明說明: 【發明所屬之技術領域】 本發明涉及一種高動態範圍圖片擷取裝置及方法。 【先前技術】 HDR ( High Dynamic Range,高動態範圍)檔是一種 特殊圖形檔格式,它的每一個圖元除了普通的RGB資訊, 還有該點的實際亮度資訊。普通的圖形檔每個圖元只有0 〜255的灰度範圍,這實際上是不夠的。想像一下太陽的 發光強度和一個純黑的物體之間的灰度範圍或者說亮度範 圍的差別,遠遠超過了 256個級別。因此,一張普通的白 天風景圖片,看上去白雲和太陽可能都呈現是同樣的灰度/ 亮度,都是純白色,但實際上白雲和太陽之間實際的亮度 不可能一樣,它們之間的亮度差別是巨大的。因此,普通 的圖形檔格式是很不精確的,遠遠沒有記錄到現實世界的 實際狀況。 高動態範圍是指一個場景的最亮和最暗部分之間的 相對比值。一張HDR圖片,它記錄了遠遠超出256個級 別的實際場景的亮度值,超出的部分在螢幕上是顯示不出 來的。可以這樣想像:在Photoshop裏打開一張從室内往 窗外拍的圖片,窗外的部分處在強烈的陽光下,曝光過度, 呈現的是一片白色,沒有多少細節。你將毫無辦法,調暗 只會變成灰色而已,並不會呈現更多的細節。但如果同一 場景是由HDR記錄的話,減低曝光度,原來純白的部分 將會呈現更多的細節。 5 200922287 j而目别僅在單純遊戲或動畫中才用到HDR技術, 一般普通相機若需要拍攝到足夠HDR資訊的圖片,則需 人手動周整不同的曝光值,再經由計算的方式過濾掉過 曝以及曝光不足的圖片,最後才能得到一張HDR資訊的 圖片;若透過使用專業相機來拍攝HDR資訊的圖片,但 專業相機需要特製硬體來匹配從而導致耗費巨大成本,因 此大大增加拍攝得到HDR資訊圖片的難度。 【發明内容】 壯鑒於以上内容,有必要提供一種高動態範圍圖片擷取 衣置及方法,透過將不同曝光值範圍拍攝得到的亮度不同 的圖片中的母一圖元點的亮度資訊進行疊加得到一張高動 態範圍圖片。 本發明較佳實施例提供一種高動態範圍圖片擷取裝 置運行有鬲動態範圍圖片擷取程式,該程式包括: 、.模式開啟模組,用於開啟高動態範圍圖片的拍攝模 式; 參數設定模組,用於根據需求設定拍攝圖片時的曝 值範圍大小; >圖片合成模組,用於將在不同曝光值範圍内拍攝得到 的亮度不同的圖片中的每個圖元點的亮度資訊進行疊加得 到一張疊加後的高動態範圍圖片。 一種高動態範圍圖片擷取方法,透過將不同曝光值範 圍拍,得到的亮度不同的圖片中的每一圖元點的亮度資訊 進仃疊加得到一張高動態範圍圖片,該方法包括步驟: 200922287 開啟高動態範圍圖片的拍攝模式; 利用自動曝光功能來獲取需拍攝場景的亮度最大值 及最小值; 又 根據上述亮度最大值及最小值來設定曝光值範圍,即 設定進行拍攝圖片所採用的曝光值範圍大小; 根據上述設定的曝光值範圍拍攝圖片得到不同亮度 的圖片’每張圖片記錄了每個圖元點的RGB資訊及該= 點的亮度資訊;及 /田將上述不同亮度的圖片中每個圖元點的亮度資訊進 加得到-張高動態範圍圖片以更真實的反映現實場 景。 、相較於習知技術,所述之高動態範圍圖片操取裝置及 方法,透過设定不同的曝光值範圍來拍攝得到不同亮产的 圖片,再將每一圖片中每一圖元點的亮度資訊進行疊Γ得200922287 IX. Description of the Invention: [Technical Field] The present invention relates to a high dynamic range picture capturing device and method. [Prior Art] The HDR (High Dynamic Range) file is a special graphic file format. Each element of the picture has the actual brightness information of the point in addition to the normal RGB information. Ordinary graphics files have only 0 to 255 grayscale ranges per primitive, which is actually not enough. Imagine the difference between the luminous intensity of the sun and the grayscale range or brightness range between a pure black object, far exceeding 256 levels. Therefore, an ordinary daytime landscape picture, it seems that both white clouds and the sun may appear to be the same grayscale/brightness, both of which are pure white, but in fact the actual brightness between the white clouds and the sun cannot be the same, between them The difference in brightness is huge. Therefore, the normal graphic file format is very inaccurate and far from being recorded in the real world. A high dynamic range is the relative ratio between the lightest and darkest parts of a scene. An HDR picture that records the brightness values of actual scenes far beyond 256 levels, and the excess is not displayed on the screen. Think of it like this: Open a picture taken from the room to the window in Photoshop. The part outside the window is in strong sunlight, overexposed, showing a piece of white, with little detail. You will have no way, dimming will only turn gray, and will not present more details. However, if the same scene is recorded by HDR, the exposure will be reduced, and the original white part will show more details. 5 200922287 j and only use HDR technology in simple games or animations. Generally, if a normal camera needs to capture enough HDR information, it will need to manually adjust the exposure value and filter it out by calculation. Exposure and underexposed pictures, in the end, can get a picture of HDR information; if you use a professional camera to take pictures of HDR information, but professional cameras need special hardware to match, resulting in huge cost, so greatly increase the shooting to get HDR The difficulty of the information picture. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide a high dynamic range picture capture device and method, by superimposing the brightness information of the mother-one picture point in the picture with different brightness obtained by different exposure value ranges. A high dynamic range image. The preferred embodiment of the present invention provides a high dynamic range picture capturing device that operates a dynamic range image capturing program, and the program includes: a mode opening module for turning on a shooting mode of a high dynamic range picture; Group, used to set the exposure range size when taking pictures according to requirements; > picture synthesis module, which is used to perform brightness information of each element point in a picture with different brightness obtained in different exposure value ranges Superimpose to get a superimposed high dynamic range image. A high dynamic range image capturing method, which is obtained by superimposing the brightness information of each primitive point in a different brightness image obtained by shooting different exposure value ranges to obtain a high dynamic range image, the method comprising the steps: 200922287 Turn on the shooting mode of the high dynamic range picture; use the auto exposure function to get the maximum and minimum brightness of the scene to be shot; and set the exposure value range according to the maximum and minimum values of the above brightness, that is, set the exposure used to take the picture. Value range size; according to the above-mentioned set exposure range, the picture is taken to obtain pictures of different brightness. 'Each picture records the RGB information of each element point and the brightness information of the = point; and / Tian will be in the above different brightness pictures The brightness information of each element point is added to obtain a high-dynamic range picture to more realistically reflect the real scene. Compared with the prior art, the high dynamic range picture manipulation device and method can capture different brightly produced pictures by setting different exposure value ranges, and then each pixel point in each picture. Brightness information is superimposed
^張㈣態範圍㈣,以更真實的反映現實場景從 到更尚品質的圖片。 T 【實施方式】^ Zhang (four) state range (four), to more realistically reflect the actual scene from the more quality pictures. T [Embodiment]
二斤示,係本發明高動態範圍圖片擷取裝置較 土A例的硬體架構圖。所述之高動態範圍圖片操取裝置 以下間無裝置1}可以是任何可以拍攝圖片的裝置,如 ^機’ 4像頭的手機或其他任何帶鏡頭或⑽(C ?::?eViCe)的數碼裝置等。該裝置!中運行了一個 南動恶範圍圖片擷取寇十川 —1 彌取备式10 (以下簡稱程式10),其用於 δ又疋拍攝圖片的亮度最大㈢ 、 取入值及取小值,並設定曝光值範 200922287 圍,將拍攝好的圖片進行亮度疊加得到一高動態範圍的圖 片,並將它保存於存儲裝置12中。該存儲裝置12可為一 FLASH快閃記憶體,其可獨立於裝置1,也可位於裝置1 中〇 參閱圖2所示,係本發明高動態範圍圖片擷取程式的 軟體功能模組圖。該程式10包括一模式開啟模組100,一 參數設定模組110,一圖片合成模組120及一圖片存儲模 組 130。 該模式開啟模組100用於開啟裝置1的高動態範圍圖 片的拍攝模式,通常,裝置1處於普通拍攝模式。 參數設定模組110用於根據需求設定裝置1拍攝圖片 時的曝光值範圍大小,如拍攝場景的亮度最大值為25 5, 最小值為0,可將曝光值範圍設定為10〜75,60〜100, 110〜200等不同曝光值範圍。 圖片合成模組120用於將裝置1在不同曝光值範圍内 拍攝得到的亮度不同的圖片進行疊加得到一張疊加後的高 動態範圍圖片。 圖片存儲模組130用於存儲高動態範圍圖片至存儲裝 置12中。 圖3係本發明高動態範圍圖片擷取方法的工作流程 圖。步驟S300,當用戶打開裝置1後,用戶透過模式開啟 模組100開啟高動態範圍圖片的拍攝模式。通常,裝置1 處於默認的普通拍攝模式狀態下。 200922287 步驟S301,利用裝置1的内置自動曝光功能來獲取需 拍攝場景的亮度最大值及最小值,如亮度最大值為255, 最小值為0。 步驟S302,參數設定模組110根據上述亮度最大值及 最小值來設定曝光值範圍,即設定裝置1進行拍攝圖片所 採用的曝光值範圍大小如,10〜75,60〜100,110〜200等不 同曝光值範圍。 步驟S303,根據上述設定的曝光值範圍拍攝圖片,如 在10〜75,60~100,110〜200等不同曝光值範圍各拍攝一 張得到不同亮度的3張圖片,每張圖片記錄了每個圖元點 的RGB資訊及該圖元點的亮度資訊;圖片合成模組120 將上述3張不同亮度的圖片中每個圖元點的亮度資訊進行 疊加得到一張高動態範圍圖片以更真實的反映現實場景。 步驟S304,根據用戶設定的圖片存儲格式將圖片進行 存儲,如以JPEG或Raw格式進行存儲。 本發明高動態範圍圖片擷取裝置及方法,雖以較佳實 施方式揭露如上,然其並非用以限定本發明。任何熟悉此 項技藝之人士,在不脫離本發明之精神和範圍内,當可做 更動與潤飾,因此本發明之保護範圍當視後附之申請專利 範圍所界定者為準。 【圖式簡單說明】 圖1係本發明高動態範圍圖片擷取裝置的應用環境 圖。 圖2係本發明高動態範圍圖片擷取裝置的功能模組 9 200922287 圖。 圖3係本發明高動態範圍圖片擷取方法較佳實施例的 流程圖。 【主要元件符號說明】 高動態範圍圖片擷取裝置 1 存儲裝置 12 高動態範圍圖片擷取程式 10 模式開啟模組 100 參數設定模組 110 圖片合成模組 120 圖片存儲模組 130 10The two-pound display is a hardware structure diagram of the high dynamic range picture capturing device of the present invention. The high dynamic range picture manipulation device has no device 1} in the following, and can be any device that can take pictures, such as a mobile phone with a camera or any other lens or (10) (C?::?eViCe) Digital devices, etc. The device! In the middle of the operation, a picture of the south of the evil range is taken from the 寇10chuan-1 (the program 10), which is used for the maximum brightness of the δ and 疋 pictures, the value of the input and the small value, and set The exposure value is 200922287, and the captured picture is superimposed on the brightness to obtain a picture with a high dynamic range, and is saved in the storage device 12. The storage device 12 can be a FLASH flash memory, which can be independent of the device 1 or in the device 1. Referring to FIG. 2, it is a software functional module diagram of the high dynamic range image capture program of the present invention. The program 10 includes a mode open module 100, a parameter setting module 110, a picture synthesis module 120 and a picture storage module 130. The mode opening module 100 is used to turn on the shooting mode of the high dynamic range picture of the device 1, and generally, the device 1 is in the normal shooting mode. The parameter setting module 110 is configured to set the exposure value range when the device 1 takes a picture according to the requirement. For example, the maximum brightness of the shooting scene is 25 5, the minimum value is 0, and the exposure value range can be set to 10 to 75, 60~ 100, 110~200 and other different exposure value ranges. The picture synthesizing module 120 is configured to superimpose the pictures of the brightness differently captured by the device 1 in different exposure value ranges to obtain a superimposed high dynamic range picture. The picture storage module 130 is used to store high dynamic range pictures into the storage device 12. 3 is a workflow diagram of a high dynamic range image capture method of the present invention. In step S300, after the user turns on the device 1, the user turns on the shooting mode of the high dynamic range picture through the mode opening module 100. Normally, device 1 is in the default normal shooting mode. 200922287 Step S301, using the built-in automatic exposure function of the device 1 to obtain the maximum and minimum brightness values of the scene to be photographed, such as a maximum brightness value of 255 and a minimum value of zero. In step S302, the parameter setting module 110 sets the exposure value range according to the brightness maximum value and the minimum value, that is, the exposure value range used by the setting device 1 to take a picture, such as 10~75, 60~100, 110~200, etc. Different exposure value ranges. Step S303, taking a picture according to the set exposure value range, for example, taking three pictures of different brightness in different exposure value ranges of 10 to 75, 60 to 100, 110 to 200, each picture records each The RGB information of the primitive point and the brightness information of the primitive point; the image synthesis module 120 superimposes the brightness information of each of the three different brightness images to obtain a high dynamic range image to be more realistic. Reflect the real scene. Step S304, the picture is stored according to a picture storage format set by the user, for example, stored in a JPEG or Raw format. The high dynamic range picture capturing device and method of the present invention are disclosed above in a preferred embodiment, but are not intended to limit the present invention. Any person skilled in the art will be able to make modifications and refinements without departing from the spirit and scope of the invention, and the scope of the invention is defined by the scope of the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a diagram showing an application environment of a high dynamic range picture capturing device of the present invention. 2 is a functional module of the high dynamic range picture capturing device of the present invention 9 200922287. Figure 3 is a flow chart of a preferred embodiment of the high dynamic range picture capture method of the present invention. [Main component symbol description] High dynamic range image capture device 1 Storage device 12 High dynamic range image capture program 10 Mode open module 100 Parameter setting module 110 Picture synthesis module 120 Picture storage module 130 10