1380225 101年08月08日接正替^頁 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種影像處理技術,尤其涉及一種影像處理 裝置及其影像處理方法。 【先前技術】 [0002] 目前消費型數位相機已具備笑臉偵測連拍之功能。一旦 偵測到笑臉,數位相機就會自動拍攝多張笑臉照片(常見 為三張)。然而這些拍攝之笑臉照片中,由於人物晃動或 為拍攝者之手振動往往會發生笑臉照片模糊之現象。因 φ 此,拍攝者必須將每張笑臉照片進行放大檢查,從而將 模糊之笑臉照片刪除,保留最清晰之笑臉照片。惟,如 果連拍之照片張數很多,這種人為檢查往往會造成拍攝 者使用上之不便。 【發明内容】 [0003] 有鑒於此,有必要提供一種能在連拍之複數影像中自動 檢查出最清晰影像之影像處理裝置及其影像處理方法。 [0004] 一種影像處理裝置,其用於將連拍之複數影像進行處理 Φ 。該影像處理裝置包括一個中央處理單元、一個顯示單 元、一個刪除單元、一個計算單元、一個比較單元、一 個標識單元、一個提示單元及一個輸入單元。該令央處 — 理單元控制該計算單元計算該連拍之複數影像對應之複 數梯度總值,該梯度總值與影像之清晰度成正比。該比 較單元用於比較該複數梯度總值以得到一個最大之梯度 總值。該中央處理單元根據該最大之梯度總值,控制該 標識單元標識區分與該最大之梯度總值對應之影像與其 09811370#單编號 A〇101 第 4 頁 / 共 15 頁 1013300720-0 13802251380225 Aug. 08, 2010, the following is a summary of the invention. [Technical Field] The present invention relates to an image processing technology, and more particularly to an image processing apparatus and an image processing method thereof. [Prior Art] [0002] Currently, consumer digital cameras have the function of smiling face detection. Once a smile is detected, the digital camera automatically takes multiple smiley photos (three are common). However, in these photographs of smiling faces, the phenomenon of blurred faces is often caused by the shaking of the characters or the shaking of the hands of the photographer. Because of φ, the photographer must zoom in on each smiley photo to remove the blurred smiley photo and keep the clearest smiley photo. However, if the number of consecutive shots is large, such human inspection often causes inconvenience to the photographer. SUMMARY OF THE INVENTION [0003] In view of the above, it is necessary to provide an image processing apparatus and an image processing method thereof that can automatically detect the clearest image in a plurality of images of continuous shooting. [0004] An image processing apparatus for processing a plurality of images of continuous shooting Φ . The image processing apparatus includes a central processing unit, a display unit, a deletion unit, a calculation unit, a comparison unit, an identification unit, a prompt unit, and an input unit. The central unit controls the computing unit to calculate a total value of the complex gradient corresponding to the complex image of the continuous shooting, the total value of the gradient being proportional to the sharpness of the image. The comparison unit is used to compare the total value of the complex gradient to obtain a maximum gradient total value. The central processing unit controls the identification unit to distinguish the image corresponding to the maximum gradient total value according to the maximum gradient total value and the 09811370# single number A〇101 page 4 / total 15 pages 1013300720-0 1380225
101年.08月08日梭正_頁 他影像,同時控制該提示單元發出提示資訊以提示拍攝 者是否刪除該其他影像。該顯示單元顯示該標識區分後 之影像。該輸入單元用於接收用戶輸入之指令,使該刪 除單元根據該用戶輸入之指令對該其他影像進行刪除。 [0005] 一種影像處理方法,其用於將連拍之複數影像進行處理 ,該影像處理方法包括以下步驟: [0006] 計算該連拍之複數影像對應之複數梯度總值,該梯度總 值與影像之清晰度成正比; [0007] 比較該複數梯度總值以得到一個最大之梯度總值; [0008] 根據該最大之梯度總值對與該最大之梯度總值對應之影 像與其他影像標識區分; [0009] 顯示該標識區分後之複數影像; [0010] 提示拍攝者是否刪除該其他影像; [0011] 接收用戶輸入之指令;及 [0012] 根據該用戶輸入之指令對該其他影像進行刪除。 [0013] 所述影像處理裝置及其影像處理方法,籍由在連拍之複 數影像令自動查找與最大梯度總值對應之影像,並將該 影像與其他影像區分開來,同時提示用戶刪除該其他影 像,從而能在連拍之複數影像中自動檢查出最清晰影像 之,節省了拍攝者查找最清晰影像之時間,方便拍攝者 使用。 【實施方式】 1013300720-0 [0014] 下面將結合附圖,對本發明作進一步之詳細說明。 098113Y0#單編號A〇1(n 第5頁/共15頁 1380225 101年.08月08日接正替換頁 [_請參閱圖卜為本發明實施方式提供之影像處理裝置1〇〇 ,其用於將連拍之複數影像進行處g 1影像處理裝置 100包括一個計算單元10、—個刪除單元11、-個比較單 . 元12、-個標識單元14、—個顯示單元15、一個提示單 兀16、-個取像單元17、一個存儲軍元以、一個中央處 理半元(CPU)19及一個輸入單元2〇。 [麵]t玄取像單兀17用於獲取連拍之複數影像,並將該連拍之 複數影像存儲在該存儲單元18中。 剛Θ中央處理單疋19控制該計算單元1◦計算該連拍之複& φ 影像對應之複數梯度(gradient)總值Ti(i為正整數且不 大於該複數影像之數量)。梯度之大小(啊nitude)定義 為某個像素(pixel)與相鄰像素在灰階(gray level)上 之最大變化里,且該梯度總值與影像之清晰度成正比。 田而要對S玄連拍之複數影像進行處理時,用戶需要輸入 才曰令進入播放模式(Play m〇de),使該顯示單元15顯示 該連拍之複數影像,之後,用戶繼續輸入指令使該中央 處理單元19控制該計算單元10進入後續程式。在本實施 鲁 方式中,在該影像處理裝置丨〇〇之功能表模式中設置功能 選項,從而用戶籍由啟動該功能選項即可使該中央處理 單元19控制該計算單元10進入後續程式。可以理解,也 可以設定該影像處理裝置1〇〇之某個按鍵為快捷鍵,用戶 使用該快捷鍵即可使該中央處理單元丨9控制該計算單元 10進入後續程式。 [0018] 該比較單元12用於比較該複數梯度總值h以得到一個最 大之梯度總值Timax,因此,該最大之梯度總值T.對應 _ 1 max 〇981137〇产早編號A01〇l 第6頁/共15頁 1013300720-0 1380225On 101.08.08, the shuttle is _page, and the image is controlled, and the prompting unit sends a prompt message to prompt the photographer to delete the other image. The display unit displays the image after the identification is distinguished. The input unit is configured to receive an instruction input by the user, and cause the deleting unit to delete the other image according to the instruction input by the user. [0005] An image processing method for processing a continuous image of a continuous shooting, the image processing method comprising the following steps: [0006] calculating a total value of a complex gradient corresponding to a plurality of images of the continuous shooting, the total value of the gradient The resolution of the image is proportional; [0007] comparing the total value of the complex gradient to obtain a maximum gradient total value; [0008] the image corresponding to the maximum gradient value and other image identifiers according to the maximum gradient total value Differentiating; [0009] displaying the plural image after the identification is distinguished; [0010] prompting the photographer to delete the other image; [0011] receiving an instruction input by the user; and [0012] performing the other image according to the instruction input by the user delete. [0013] The image processing device and the image processing method thereof, by automatically capturing the image corresponding to the maximum gradient total value in the continuous image of the continuous shooting, and distinguishing the image from other images, and prompting the user to delete the image Other images can automatically detect the clearest image in the continuous image, saving the photographer the time to find the clearest image for the photographer to use. [Embodiment] 1013300720-0 [0014] The present invention will be further described in detail below with reference to the accompanying drawings. 098113Y0#单单A〇1(n Page 5 of 15 pages 1380225 101. 08/08 08 接 replacement page [_Please refer to FIG. 2 is an image processing apparatus provided by an embodiment of the present invention, which is used The image processing apparatus 100 includes a computing unit 10, a deleting unit 11, a comparison unit, a unit 12, an identification unit 14, a display unit 15, and a prompt list.兀16, an image capturing unit 17, a storage military unit, a central processing half unit (CPU) 19, and an input unit 2〇. [面]t 玄取像单兀17 is used to obtain a continuous image of continuous shooting And storing the continuous image of the continuous shooting in the storage unit 18. The central processing unit 19 controls the computing unit 1 to calculate the total gradient of the complex & φ image of the continuous shooting Ti (i is a positive integer and not greater than the number of complex images.) The magnitude of the gradient (ah) is defined as the maximum variation of a pixel (pixel) and adjacent pixels at the gray level, and the gradient The total value is directly proportional to the sharpness of the image. When processing is performed, the user needs to input to enter the play mode (Play m〇de), so that the display unit 15 displays the plurality of images of the continuous shooting, after which the user continues to input an instruction to cause the central processing unit 19 to control the computing unit 10. In the implementation mode, a function option is set in the function table mode of the image processing device, so that the user can control the computing unit 10 to enter by starting the function option. It can be understood that a certain button of the image processing device 1 can also be set as a shortcut key, and the user can use the shortcut key to enable the central processing unit 9 to control the computing unit 10 to enter a subsequent program. [0018] The comparison unit 12 is configured to compare the total gradient total value h to obtain a maximum gradient total value Timax. Therefore, the maximum gradient total value T. corresponds to _ 1 max 〇 981 137 〇 early number A01 〇 l page 6 / Total 15 pages 1013300720-0 1380225
101年.08月08日修正替換頁 之影像為該連拍之複數影像中最清晰之影像。 [0019] 該中央處理單元19根據該最大之梯度總值T. 控制該標 1 max 識單元14對與該最大之梯度總值T. 對應之影像與其他 1 max 影像分別標識區分,如在該最清晰之影像上加上一個“ ,”符號,而在其他之影像上均加上一個“X”符號。該 標識單元14標識完成後,該中央處理單元19將該標識單 元14標識完成後之影像傳給該顯示單元15顯示,給拍攝 者提供參考。可以理解,該標識單元14可以只將該最大 之梯度總值T. 對應之影像進行標識,或者只將其他影 1 max 像進行標識,且該標識單元14標識之標誌可以隨意設置 ,只要能將該最大之梯度總值T. 對應之影像與其他影 1 max 像區分開即可。 [0020] 該中央處理單元1 9控制該顯示單元15顯示該標識後之影 像之同時,還控制該提示單元16發出提示資訊以提示拍 攝者是否刪除該其他影像。該標識後之影像之顯示,使 得該複數影像中最清晰之影像(該最大之梯度總值對應之 • 影像)與其他影像很明顯之區分開,使拍攝者一目了然。 該提示單元16發出之提示資訊,使拍攝直接對該提示資 訊進行處理既可,方便了拍攝者之操作。 [0021] 該輸入單元20用於接收用戶輸入之指令,使該刪除單元 11根據該用戶輸入之指令對該其他影像進行刪除。如拍 攝者需要刪除與該最大之梯度總值T. 之外之影像即其 1 max 他影像,則拍攝者籍由該輸入單元20對該中央處理單元 19輸送刪除指令Y(Yes),使該中央處理單元19控制該刪 除單元11對該存儲單元18内保存之其他影像進行刪除。 09811370^^^^ A〇101 ^ 7 1 / * 15 1 1013300720-0 1380225 Ί〇1年08月08日修正^^] [0022]該計算單元1〇包括一個梯度值計算子單元1〇1及一個累加 子單元103。該梯度值計算子單元用於計算每個影像 中之一像素與它相鄰之像素在灰階上之最大變化量 G(x,y)((x,y)為第^個影像區域範圍内之座標)。該累加 子單元103將該影像中之每個像素之最大變化量G(x y) 進打累加並得到該影像對應之梯度總值^。該梯度總值 Ti之大小與其對應之影像之清晰度成正比。 [0023] 該梯度值計算子單元1〇1内置之計算公式如下: [0024] G(x, y) = I(x + l,y)-I(x> y) • [0025] 其t,G(x,y)為第}個影像甲座標為(x,y)之像素之最大 變化量; [0026] I(x+l,y)為座標(x+l,y)之像素之亮度值;及 [0027] l(x,y)為座標(x,y)之像素之亮度值。 [0028] 該累加子單元103内置之計算公式如下· [0029] Ti=S|G(x>y)| R. • [0030] 其中,Ί\為第i個影像之梯度總值;及 [0031] R為第i個影像之影像範圍。 - [0032] 請參閱圖2 ’為本發明實施方式提供之應用於上述影像處 理裝置之100影像處理方法’其用於對連拍之複數影像進 行處理,a玄影像處理方法包括以下步驟。 [0033] 4Sl〇 ’什算母個影像中之一像素與它相鄰之像素在灰 09811370^^^^ A0101 第 8 頁 / 共!5 頁 1013300720-0 1380225 101:年:08月08日梭正替换頁 階上之最大變化量。 [0034] 步驟S11,累加該最大變化量以得到該影像對應之梯度總 值。步驟S10及步驟S11即為:計算該連拍之複數影像對 應之複數梯度總值,該梯度總值與影像之清晰度成正比 [0035] 步驟S12,比較該複數梯度總值以得到一個最大之梯度總 值。 [0036] 步驟S13,根據該最大之梯度總值對與該最大之梯度總值 對應之影像與其他影像標識區分。 [0037] 步驟S14,顯示該標識區分後之複數影像。這樣,該複數 影像中最清晰之影像(該最大之梯度總值對應之影像)與 其他影像很明顯之區分開,使拍攝者一目了然。 [0038] 步驟S15,根據該最大之梯度總值提示是否刪除該其他影 像。可以理解,該用戶輸入之指令可以為是指令(即刪除 ).與否指令(即不刪除)。The image of the corrected replacement page on 101.08.08 is the clearest image of the multiple images of the continuous shooting. [0019] The central processing unit 19 controls the target unit 1 to distinguish the image corresponding to the maximum gradient total value T. from the other 1 max images according to the maximum gradient total value T. A "," symbol is added to the clearest image, and an "X" symbol is added to other images. After the identification unit 14 is completed, the central processing unit 19 transmits the image after the identification unit 14 is completed to the display unit 15 for display, and provides a reference to the photographer. It can be understood that the identifier unit 14 can only identify the image corresponding to the maximum gradient total value T., or only the other image 1 max image, and the logo identified by the identifier unit 14 can be arbitrarily set, as long as The image corresponding to the maximum gradient total value T. can be distinguished from other shadow 1 max images. [0020] The central processing unit 19 controls the display unit 15 to display the image after the identification, and controls the prompting unit 16 to send a prompt message to prompt the photographer whether to delete the other image. The display of the image after the identification enables the clearest image in the plurality of images (the image corresponding to the maximum gradient value) to be clearly distinguished from other images, so that the photographer can see at a glance. The prompting information sent by the prompting unit 16 enables the shooting to directly process the prompting information, which is convenient for the photographer to operate. [0021] The input unit 20 is configured to receive an instruction input by the user, and cause the deleting unit 11 to delete the other image according to the instruction input by the user. If the photographer needs to delete an image other than the maximum gradient total value T., that is, its 1 max image, the photographer sends the delete command Y (Yes) to the central processing unit 19 by the input unit 20, so that the photographer The central processing unit 19 controls the deletion unit 11 to delete other images stored in the storage unit 18. 09811370^^^^ A〇101 ^ 7 1 / * 15 1 1013300720-0 1380225 08August 08, Revision ^^] [0022] The calculation unit 1〇 includes a gradient value calculation subunit 1〇1 and An accumulation subunit 103. The gradient value calculation sub-unit is configured to calculate a maximum variation G(x, y) ((x, y) of one pixel in each image and its adjacent pixel in the range of the second image region. The coordinates). The accumulation sub-unit 103 accumulates the maximum variation G(x y) of each pixel in the image and obtains the gradient total value ^ corresponding to the image. The magnitude of the gradient total Ti is proportional to the sharpness of the corresponding image. [0023] The calculation formula of the gradient value calculation subunit 1〇1 is as follows: [0024] G(x, y) = I(x + l, y) - I(x > y) • [0025] Its t, G(x, y) is the maximum variation of the pixel of the (x, y) coordinate of the +1th image; [0026] I(x+l, y) is the brightness of the pixel of the coordinate (x+l, y) Value; and [0027] l(x, y) is the luminance value of the pixel of the coordinate (x, y). [0028] The calculation formula built in the accumulation sub-unit 103 is as follows: [0029] Ti=S|G(x> y)| R. • [0030] where Ί\ is the gradient total value of the i-th image; and [ 0031] R is the image range of the i-th image. [0032] Please refer to FIG. 2, which is a 100 image processing method applied to the image processing apparatus provided in the embodiment of the present invention, which is used for processing a continuous image of a continuous shooting, and the method for processing the image includes the following steps. [0033] 4Sl〇's one of the pixels in the parent image is adjacent to the pixel in the gray 09811370^^^^ A0101 page 8 / total! Page 5 1013300720-0 1380225 101: Year: August 08 The shuttle is replacing the maximum amount of change in the page. [0034] Step S11, accumulating the maximum amount of change to obtain a gradient total value corresponding to the image. Step S10 and step S11 are: calculating a total value of the complex gradient corresponding to the continuous image of the continuous shooting, the total value of the gradient is proportional to the sharpness of the image. [0035] Step S12, comparing the total value of the complex gradient to obtain a maximum The total value of the gradient. [0036] Step S13, the image corresponding to the maximum gradient total value is distinguished from other image identifiers according to the maximum gradient total value. [0037] Step S14, displaying the plural image after the identification is distinguished. Thus, the sharpest image in the complex image (the image corresponding to the maximum gradient total) is clearly distinguishable from other images, making the photographer at a glance. [0038] Step S15, prompting whether to delete the other image according to the maximum gradient total value. It can be understood that the instruction input by the user can be an instruction (ie, delete) or an instruction (ie, not deleted).
[0039] 如拍攝者需要刪除與該最大之梯度總值之外之影像即其 他影像,則進行步驟S1 6,接收用戶輸入之刪除指令。接 著進行步驟S17,刪除該其他影像。 [0040] 如拍攝者不需要删除該其他影像,則進行步驟S18 ;接收 用戶輸入之不刪除指令。結束該影像處理方法之整個流 程0 [0041] 所述影像處理裝置及其影像處理方法,籍由在連拍之複 數影像_自動查找與最大梯度總值對應之影像,並將該 09811370^^'^^ A〇101 第9頁/共15頁 1013300720-0 1380225 101年.08月08日梭正替換頁 影像與其他影像區分開來,同時提示用戶刪除該其他影 像,從而能在連拍之複數影像中自動檢查出最清晰影像 之,節省了拍攝者查找最清晰影像之時間,方便拍攝者 使用。[0039] If the photographer needs to delete an image other than the maximum gradient total value, that is, another image, then step S6 is performed to receive a delete command input by the user. Then, in step S17, the other images are deleted. [0040] If the photographer does not need to delete the other images, proceed to step S18; and receive a non-delete command input by the user. Ending the entire flow of the image processing method 0 [0041] The image processing apparatus and the image processing method thereof, by the complex image in the continuous shooting _ automatic search for the image corresponding to the maximum gradient total value, and the 98811370^^' ^^ A〇101 Page 9 of 15 1013300720-0 1380225 101. On August 08, the shuttle replacement page image is distinguished from other images, and the user is prompted to delete the other images so that the number of consecutive shots can be The clearest image is automatically detected in the image, saving the photographer the time to find the clearest image for the photographer to use.
[0042] 綜上所述,本發明符合發明專利要件,爰依法提出專利 申請。惟,以上所述者僅為本發明之較佳實施方式,本 發明之範®並不以上述實施方式為限,舉凡熟悉本案技 藝之人士援依本發明之精神所作之等效修飾或變化,皆 應涵蓋於以下申請專利範圍内。 【圖式簡單說明】 [0043] 圖1為本發明實施方式提供之影像處理裝置之模組示意圖 [0044] 圖2為本發明實施方式提供之影像處理方法之流程圖。 【主要元件符號說明】 [0045] 影像處理裝置: [0046] 計算單元: 10 [0047] 刪除單元: 11 [0048] 比較單元: 12 [0049] •標識單元: 14 [0050] 顯示單元: 15 [0051] 提示單元: 16 [0052] 取像單元: 17 〇981137(#單编號 A_ 1013300720-0 第10頁/共15頁 1380225 10Ϊ年.08月08日修正_頁 [0053] 存儲單元:18 [0054] 中央處理單元:19 ' [0055] 輸入單元:20 [0056] 梯度值計算子單元:101 [0057] 累加子單元:103 • • 09811370夢單編# A0101 第11頁/共15頁 1013300720-0[0042] In summary, the present invention complies with the requirements of the invention patent, and submits a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above-described embodiments, and those skilled in the art will be able to make equivalent modifications or variations in accordance with the spirit of the present invention. All should be covered by the following patent application. BRIEF DESCRIPTION OF THE DRAWINGS [0044] FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention. [0044] FIG. 2 is a flowchart of an image processing method according to an embodiment of the present invention. [Main component symbol description] [0045] Image processing device: [0046] Calculation unit: 10 [0047] Deletion unit: 11 [0048] Comparison unit: 12 [0049] • Identification unit: 14 [0050] Display unit: 15 [ 0051] Prompt unit: 16 [0052] Image capture unit: 17 〇 981137 (#单号 A_ 1013300720-0 Page 10 of 15 page 1380225 10Ϊ年.08月08日修正_页[0053] Storage unit: 18 [0054] Central Processing Unit: 19' [0055] Input Unit: 20 [0056] Gradient Value Calculation Subunit: 101 [0057] Accumulative Subunit: 103 • • 09811370 Dream List # A0101 Page 11 of 15 1013300720 -0