TWI465108B - Image capturing apparatus and image processing method - Google Patents

Image capturing apparatus and image processing method Download PDF

Info

Publication number
TWI465108B
TWI465108B TW099144186A TW99144186A TWI465108B TW I465108 B TWI465108 B TW I465108B TW 099144186 A TW099144186 A TW 099144186A TW 99144186 A TW99144186 A TW 99144186A TW I465108 B TWI465108 B TW I465108B
Authority
TW
Taiwan
Prior art keywords
image
resolution
low
module
image processing
Prior art date
Application number
TW099144186A
Other languages
Chinese (zh)
Other versions
TW201228375A (en
Inventor
Yi Ting Chou
Shuo Yen Ho
Original Assignee
Benq 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 Benq Corp filed Critical Benq Corp
Priority to TW099144186A priority Critical patent/TWI465108B/en
Publication of TW201228375A publication Critical patent/TW201228375A/en
Application granted granted Critical
Publication of TWI465108B publication Critical patent/TWI465108B/en

Links

Landscapes

  • Studio Devices (AREA)

Description

影像擷取裝置及影像處理方法Image capturing device and image processing method

本發明係與影像擷取有關,特別是關於一種能夠自動拍攝出具有「淺景深」效果之照片的影像擷取裝置以及應用於該影像擷取裝置的影像處理方法。The present invention relates to image capture, and more particularly to an image capture device capable of automatically capturing a photo having a "deep depth of field" effect and an image processing method applied to the image capture device.

近年來,隨著影像科技不斷地進步以及攝影器材持續地推陳出新,各種不同類型及規格的數位相機已廣為一般消費大眾運用於日常生活以及工作需求上,成為消費市場上一項相當普及的電子產品。In recent years, with the continuous advancement of imaging technology and the continuous innovation of photographic equipment, digital cameras of various types and specifications have been widely used by consumers in daily life and work, becoming a fairly popular electronic in the consumer market. product.

在拍攝照片時,拍攝者為了能夠清楚掌握拍攝的主體,時常希望能夠拍攝出「主體清晰、背景模糊」的照片,也就是所謂「淺景深」(shallow depth of field)的效果。一般而言,在相機的操作上,若想要達到「淺景深」的效果,通常需要同時滿足下列幾項重要的條件:大光圈、長焦距、被攝主體與背後及前面的景物之間均需保持一定的距離。In order to be able to clearly grasp the subject of the shooting, the photographer often wants to be able to take a picture of "clear subject and blurred background", which is the effect of the so-called "shallow depth of field". In general, in the operation of the camera, if you want to achieve the effect of "shallow depth of field", you usually need to meet the following important conditions: large aperture, long focal length, between the subject and the scene behind and in front. Need to maintain a certain distance.

然而,由於一般消費性數位相機的「實體焦距」比起傳統單眼相機而言仍小了很多,並且若數位相機欲使用大光圈的鏡頭,其價格勢必相當昂貴,因此,一般的消費者仍難以輕易地透過消費性數位相機拍攝出具有「淺景深」效果的照片。However, since the "solid focal length" of a general consumer digital camera is still much smaller than that of a conventional monocular camera, and if a digital camera wants to use a large aperture lens, the price is bound to be quite expensive, so that it is still difficult for the average consumer. Easily capture photos with a "deep depth of field" effect from a consumer digital camera.

因此,本發明提供一種影像擷取裝置以及應用於影像擷取裝置的影像處理方法,以解決前述先前技術中所遭遇到的種種問題。Therefore, the present invention provides an image capturing device and an image processing method applied to the image capturing device to solve various problems encountered in the prior art.

根據本發明之一具體實施例為一種影像擷取裝置。於此實施例中,影像擷取裝置包含影像擷取模組、計算模組及影像處理模組。影像擷取模組同時擷取分別對應於不同對焦長度的複數張影像,並將每張影像分別分割為複數個格子區,以計算每個格子區的銳利值。計算模組從該等影像中選取第一影像及第二影像,並計算第一影像與第二影像中之每個格子區的銳利值之差值。當計算模組所得到之差值大於預設值時,影像處理模組對第一影像、第二影像或由第一影像與第二影像所合成之合成影像的對應格子區執行模糊化影像處理程序。According to an embodiment of the invention, an image capture device is provided. In this embodiment, the image capturing device includes an image capturing module, a computing module, and an image processing module. The image capture module simultaneously captures a plurality of images corresponding to different focus lengths, and divides each image into a plurality of lattice regions to calculate a sharp value of each lattice region. The computing module selects the first image and the second image from the images, and calculates a difference between the sharp values of each of the first image and the second image. When the difference obtained by the computing module is greater than the preset value, the image processing module performs the blurred image processing on the first image, the second image, or the corresponding grid region of the synthesized image synthesized by the first image and the second image. program.

於實際應用中,影像擷取裝置可進一步包含儲存模組、顯示模組及強度選擇模組。其中,儲存模組係用以儲存第一影像與第二影像。當執行自動對焦程序時,在顯示模組上顯示有對焦框。至於對焦框顯示於顯示模組上之大小、形狀或位置可依使用者操作而選定。計算模組可以只計算第一影像與第二影像中位於對焦框範圍外的格子區的銳利值之差值。In an actual application, the image capturing device may further include a storage module, a display module, and an intensity selection module. The storage module is configured to store the first image and the second image. When the autofocus program is executed, a focus frame is displayed on the display module. The size, shape or position of the focus frame displayed on the display module can be selected according to the user's operation. The calculation module can only calculate the difference between the sharp values of the lattice regions outside the range of the focus frame in the first image and the second image.

強度選擇模組係用以供使用者選擇影像處理模組執行模糊化影像處理程序後所產生之影像模糊化效果的強度。當使用者透過強度選擇模組所選擇之影像模糊化效果為高,則計算模組從該等影像中所選取之第二影像係為與第一影像之對焦長度差異最大者。當使用者透過強度選擇模組所選擇之影像模糊化效果為低,則計算模組從該等影像中所選取之第二影像係為與第一影像之對焦長度差異相近者。The intensity selection module is used for the user to select the intensity of the image blurring effect generated by the image processing module after performing the blurred image processing program. When the image blurring effect selected by the user through the intensity selection module is high, the second image selected by the computing module from the images is the one with the largest difference in focus length from the first image. When the image blurring effect selected by the user through the intensity selection module is low, the second image selected by the computing module from the images is similar to the difference in focus length of the first image.

根據本發明之另一具體實施例為一種應用於影像擷取裝置的影像處理方法。於此實施例中,該影像處理方法包含下列步驟:首先,該方法在預覽模式中執行一自動對焦程序,並同時擷取分別對應於不同對焦長度的複數張低解析度影像;其次,該方法分別將每張低解析度影像分割為複數個格子區,並計算每個格子區的銳利值;完成自動對焦程序後,該方法拍攝一張高解析度影像。其中,高解析度影像係對應於該等低解析度影像中之第一低解析度影像,並且高解析度影像與第一低解析度影像具有相同的對焦長度及相同數量的格子區。然後,該方法從該等低解析度影像中選取不同於上述對焦長度的第二低解析度影像,並計算第一低解析度影像與第二低解析度影像中之每個格子區的銳利值之差值。當上述銳利值之差值大於預設值時,該方法對高解析度影像的對應格子區執行模糊化影像處理程序。Another embodiment of the present invention is an image processing method applied to an image capture device. In this embodiment, the image processing method includes the following steps: First, the method performs an auto-focusing process in the preview mode, and simultaneously captures a plurality of low-resolution images respectively corresponding to different focus lengths; secondly, the method Each low-resolution image is divided into a plurality of lattice regions, and the sharp value of each lattice region is calculated; after the auto-focusing process is completed, the method takes a high-resolution image. The high-resolution image corresponds to the first low-resolution image in the low-resolution images, and the high-resolution image has the same focus length and the same number of lattice regions as the first low-resolution image. Then, the method selects a second low-resolution image different from the focus length from the low-resolution images, and calculates a sharp value of each of the first low-resolution image and the second low-resolution image. The difference. When the difference between the sharp values is greater than a preset value, the method performs a blurred image processing procedure on the corresponding grid region of the high-resolution image.

根據本發明之另一具體實施例亦為一種應用於影像擷取裝置的影像處理方法。於此實施例中,該影像處理方法包含下列步驟:首先,該方法於完成自動對焦程序後,拍攝複數張高解析度影像;其次,該方法將每張高解析度影像分割為複數個格子區,並計算每個格子區的銳利值;接著,該方法從該等高解析度影像中選取分別對應於不同對焦長度的第一高解析度影像及第二高解析度影像,並計算第一高解析度影像與第二高解析度影像中之每個格子區的銳利值之差值;當上述差值大於預設值時,該方法對第一高解析度影像、第二高解析度影像或由第一高解析度影像與第二高解析度影像所合成之合成高解析度影像的對應格子區執行模糊化影像處理程序。Another embodiment of the present invention is also an image processing method applied to an image capturing device. In this embodiment, the image processing method includes the following steps: First, the method captures a plurality of high-resolution images after completing the auto-focusing process; secondly, the method divides each high-resolution image into a plurality of lattice regions. And calculating a sharp value of each of the lattice regions; then, the method selects the first high-resolution image and the second high-resolution image respectively corresponding to different focus lengths from the high-resolution images, and calculates the first high a difference between a sharpness value of each of the resolution image and the second high-resolution image; when the difference is greater than a preset value, the method is for the first high-resolution image, the second high-resolution image, or The blurred image processing program is executed by the corresponding lattice region of the synthesized high-resolution image synthesized by the first high-resolution image and the second high-resolution image.

相較於先前技術,根據本發明之影像擷取裝置以及應用於該影像擷取裝置的影像處理方法,係將自動對焦程序中所擷取之對應於不同對焦長度的複數張低解析度影像,或完成自動對焦程序後所拍攝之複數張高解析度影像分割為複數個格子區,並計算每個格子區的銳利值後,再自動根據計算結果對高解析度影像或其合成影像的部分格子區執行模糊化影像處理程序,使得拍攝者在拍攝時不需進行複雜的操作步驟,而影像擷取裝置亦不需額外執行其他繁複的處理程序,即可透過本發明之影像擷取裝置以及應用於該影像擷取裝置的影像處理方法輕易地拍攝出具有「主體清晰、背景模糊」的「淺景深」效果之照片。Compared with the prior art, the image capturing device and the image processing method applied to the image capturing device according to the present invention are a plurality of low-resolution images captured by the auto-focusing program corresponding to different focusing lengths. Or the plurality of high-resolution images captured after the completion of the auto-focusing process are divided into a plurality of lattice regions, and the sharp values of each of the lattice regions are calculated, and then the high-resolution image or a partial lattice of the synthesized image thereof is automatically automatically calculated according to the calculation result. The area performs the blurred image processing program, so that the photographer does not need to perform complicated operation steps when shooting, and the image capturing device does not need to perform other complicated processing procedures, and the image capturing device and the application of the invention can be used. The image processing method of the image capturing device easily captures a photograph of the "shallow depth of field" effect of "clear subject and blurred background".

此外,透過本發明之影像擷取裝置以及應用於該影像擷取裝置的影像處理方法亦可讓使用者在預覽模式下即能事先觀看到最後拍攝出之照片的淺景深效果,並透過觸控螢幕或按鈕的方式進行細部的調整,藉以使得最後拍攝出之照片達到最佳的「淺景深」效果。In addition, the image capturing device of the present invention and the image processing method applied to the image capturing device can also allow the user to view the shallow depth of field effect of the last captured photo in the preview mode and pass the touch. The details of the screen or button are adjusted to achieve the best "shallow depth of field" effect.

關於本發明之優點與精神可以藉由以下的發明詳述及所附圖式得到進一步的瞭解。The advantages and spirit of the present invention will be further understood from the following detailed description of the invention.

根據本發明之一具體實施例為一種影像擷取裝置。於實際應用中,該影像擷取裝置可以是一台具有拍照功能的數位相機、手機或其他電子裝置,並無特定之限制。請參閱圖1,圖1係繪示該影像擷取裝置之功能方塊圖。According to an embodiment of the invention, an image capture device is provided. In an actual application, the image capturing device may be a digital camera, a mobile phone or other electronic device having a camera function, and is not particularly limited. Please refer to FIG. 1. FIG. 1 is a functional block diagram of the image capturing device.

如圖1所示,影像擷取裝置1包含影像擷取模組10、計算模組12、影像處理模組14、儲存模組16、顯示模組18及強度選擇模組20。其中,計算模組12耦接影像擷取模組10;影像處理模組14耦接計算模組12;儲存模組16耦接影像擷取模組10及計算模組12;顯示模組18耦接影像處理模組14及計算模組12;強度選擇模組20耦接影像處理模組14。As shown in FIG. 1 , the image capturing device 1 includes an image capturing module 10 , a computing module 12 , an image processing module 14 , a storage module 16 , a display module 18 , and an intensity selection module 20 . The computing module 12 is coupled to the image capturing module 10; the image processing module 14 is coupled to the computing module 12; the storage module 16 is coupled to the image capturing module 10 and the computing module 12; The image processing module 14 and the computing module 12 are connected to the image processing module 14 .

接下來,將分別就影像擷取裝置1的各模組所具備之功能進行詳細的說明。Next, the functions of the respective modules of the image capturing device 1 will be described in detail.

於此實施例中,影像擷取模組10係用以同時擷取分別對應於不同對焦長度的複數張影像,並將每張影像分別分割為複數個格子區,以計算每個格子區的銳利值。需說明的是,上述的複數張影像可以是影像擷取模組10在預覽模式中執行自動對焦程序時所擷取之對應於不同對焦長度的複數張低解析度影像,也可以是影像擷取模組10在完成自動對焦程序後所拍攝之複數張高解析度影像。儲存模組16可以是DRAM或其他任何型式的記憶體,用以儲存該些低解析度影像或該些高解析度影像,並無特定之限制。In this embodiment, the image capturing module 10 is configured to simultaneously capture a plurality of images corresponding to different focusing lengths, and divide each image into a plurality of lattice regions to calculate the sharpness of each of the lattice regions. value. It should be noted that the plurality of images may be a plurality of low-resolution images corresponding to different focus lengths captured by the image capturing module 10 when performing an auto-focusing process in the preview mode, or may be image capturing. The plurality of high-resolution images captured by the module 10 after the auto-focusing process is completed. The storage module 16 can be a DRAM or any other type of memory for storing the low-resolution images or the high-resolution images without particular limitation.

實際上,上述的低解析度影像可以是具有較低解析度(640x480)的VGA格式影像;上述的高解析度影像可以是具有較高解析度的影像格式,例如解析度為(1920x1080)的1080p格式影像,但不以此為限。In fact, the low-resolution image described above may be a VGA format image with a lower resolution (640×480); the high-resolution image may be a higher resolution image format, such as 1080p with a resolution of (1920×1080). Format image, but not limited to this.

假設該等影像是影像擷取模組10在預覽模式中執行自動對焦程序時所擷取之對應於不同對焦長度的複數張低解析度影像,於自動對焦程序中,影像擷取裝置1將會自動地由最遠的無限大(∞)焦距長度開始進行掃瞄至最近的焦距長度0,並決定出此時最佳的焦距長度為何。舉例而言,如圖2所示,影像擷取模組10即會分別在某些焦距長度下擷取具有低解析度(VGA格式)的第一幀影像(焦距長度=∞)L1、第二幀影像(焦距長度=5公尺)L2、第三幀影像(焦距長度=1公尺)L3及第四幀影像(焦距長度=50公分)L4,但不以此為限。It is assumed that the images are a plurality of low-resolution images corresponding to different focus lengths when the image capturing module 10 executes the auto-focusing program in the preview mode. In the auto-focusing process, the image capturing device 1 will Automatically scan from the farthest infinity (∞) focal length to the nearest focal length of 0, and determine the best focal length at this time. For example, as shown in FIG. 2, the image capturing module 10 captures the first frame image (focal length = ∞) L1 and second with low resolution (VGA format) at certain focal lengths. Frame image (focal length = 5 meters) L2, third frame image (focal length = 1 meter) L3 and fourth frame image (focal length = 50 cm) L4, but not limited to this.

接著,影像擷取模組10即會將該些低解析度影像L1~L4分別分割為複數個格子區,並分別計算每個格子區的銳利值。於一較佳實施例中,低解析度影像所分割成之該等格子區的數量為9n 個,n為正整數。如圖3所示,低解析度影像L1係被分割成92 =81個格子區G,但不以此為限。實際上,影像擷取模組10究竟要將該些低解析度影像L1~L4分割為多少個格子區端視拍攝者實際需求而定,當然若將格子區分割得愈細,最後得到的影像效果可能會愈細緻,但影像擷取模組10亦需相對耗費較長的時間及較多的資源進行處理。Then, the image capturing module 10 divides the low-resolution images L1 to L4 into a plurality of lattice regions, and calculates sharp values of each of the lattice regions. In a preferred embodiment, the number of the lattice regions into which the low-resolution image is divided is 9 n , and n is a positive integer. As shown in FIG. 3, the low-resolution image L1 is divided into 9 2 = 81 lattice regions G, but is not limited thereto. In fact, the image capturing module 10 needs to divide the low-resolution images L1~L4 into a plurality of lattice regions depending on the actual needs of the photographer. Of course, if the lattice region is divided finer, the resulting image is finally obtained. The effect may be more detailed, but the image capture module 10 also needs to be processed for a relatively long time and with more resources.

需注意的是,由於計算模組12後續還會進一步對於不同幀影像的相對應格子區進行銳利值之比對工作,故影像擷取模組10需將該些低解析度影像L1~L4均分割為相同數目及大小的格子區,以利後續程序之進行。It should be noted that, since the computing module 12 further performs the comparison of the sharp values of the corresponding lattice regions of different frame images, the image capturing module 10 needs to perform the low-resolution images L1 to L4. Split into the same number and size of the grid area to facilitate the subsequent procedures.

完成上述自動對焦程序後,若上述的最佳焦距長度為1公尺,剛好對應於具有低解析度的第三幀影像L3,影像擷取模組10將會依據最佳焦距長度(1公尺)拍攝一張高解析度影像並將其分割為與第三幀影像L3相同數量的格子區,故高解析度影像與第三幀影像L3具有相同的對焦長度及相同數量的格子區。After the above autofocus procedure is completed, if the optimal focal length is 1 meter, which corresponds to the third frame image L3 with low resolution, the image capturing module 10 will be based on the optimal focal length (1 meter). A high-resolution image is captured and divided into the same number of lattice regions as the third frame image L3, so that the high-resolution image and the third-frame image L3 have the same focus length and the same number of lattice regions.

當影像擷取模組10計算完該些低解析度影像L1~L4之每個格子區的銳利值後,計算模組12將會從第一幀影像L1、第二幀影像L2、第三幀影像L3及第四幀影像L4中選取對應於最佳焦距長度的第三幀影像L3以及其他三幀影像中之任一幀影像(亦即第一幀影像L1、第二幀影像L2或第四幀影像L4),並計算第三幀影像L3與另一幀影像(第一幀影像L1、第二幀影像L2或第四幀影像L4)中之每個格子區的銳利值之差值。After the image capturing module 10 calculates the sharp values of each of the low-resolution images L1 L L4, the computing module 12 will receive the first frame image L1, the second frame image L2, and the third frame. The third frame image L3 corresponding to the optimal focal length and any one of the other three frames are selected from the image L3 and the fourth frame image L4 (ie, the first frame image L1, the second frame image L2 or the fourth image) The frame image L4) calculates a difference between the sharpness values of each of the third frame image L3 and the other frame image (the first frame image L1, the second frame image L2, or the fourth frame image L4).

舉例而言,假設計算模組12所選取的是第三幀影像L3與第二幀影像L2,計算模組12將會計算第三幀影像L3與第二幀影像L2中之每個格子區的銳利值之差值,其計算結果請參照圖4。如圖4所示,所有的格子區包含以斜線填滿的格子區K以及無填滿的格子區N,其中,以斜線填滿的格子區K所代表的是該些格子區的銳利值之差值大於預設值,亦即位於第三幀影像L3與第二幀影像L2的格子區K內的影像相似度較低;至於無填滿的格子區N所代表的是該些格子區的銳利值之差值小於或等於預設值,亦即位於第三幀影像L3與第二幀影像L2的格子區N內的影像相似度較高。實際上,上述的預設值的大小可依照實際需求而定,並無特定之限制。For example, if the calculation module 12 selects the third frame image L3 and the second frame image L2, the calculation module 12 will calculate each of the third frame image L3 and the second frame image L2. For the difference between the sharp values, please refer to Figure 4. As shown in FIG. 4, all the lattice areas include a lattice area K filled with oblique lines and a non-filled lattice area N, wherein the lattice area K filled with oblique lines represents the sharp value of the lattice areas. The difference is greater than the preset value, that is, the image similarity in the lattice area K of the third frame image L3 and the second frame image L2 is low; and the unfilled lattice area N represents the lattice area The difference between the sharp values is less than or equal to the preset value, that is, the image similarity between the third frame image L3 and the second frame image L2 is higher. In fact, the size of the above preset value may be determined according to actual needs, and there is no specific limitation.

由於格子區N內的影像相似度較高且格子區K內的影像相似度較低,代表格子區N內的影像很可能是欲清晰化的拍攝主體,而格子區K內的影像很可能是欲模糊化的背景或前景,因此,影像處理模組14即會根據圖4所繪示的計算結果對高解析度影像中對應於背景或前景的格子區K執行模糊化影像處理程序,使其變得較為模糊,而至於高解析度影像中對應於拍攝主體的格子區N則維持原本的清晰度不變。Since the image similarity in the lattice area N is high and the image similarity in the lattice area K is low, the image representing the inside of the lattice area N is likely to be a subject to be sharpened, and the image in the lattice area K is likely to be The image processing module 14 performs a blurred image processing program on the grid area K corresponding to the background or the foreground in the high-resolution image according to the calculation result illustrated in FIG. 4, so that the image processing module 14 performs the blurring image processing program according to the calculation result illustrated in FIG. It becomes more ambiguous, and as for the lattice area N corresponding to the subject in the high-resolution image, the original sharpness is maintained.

承上例,計算模組12並不一定要計算第三幀影像L3與第二幀影像L2中之每個格子區的銳利值之差值。如圖5所示,當影像擷取裝置1執行自動對焦程序時,在影像擷取裝置1的顯示模組18上顯示有對焦框180,計算模組12可以只計算第三幀影像L3與第二幀影像L2中位於對焦框180範圍外的格子區的銳利值之差值,故可節省部分運算的時間及資源。於實際應用中,對焦框180顯示於顯示模組18上之大小、形狀或位置均可依使用者操作而選定,舉例而言,對焦框180可以是傳統的方形框或是任意形狀的框,並無特定之限制。In the above example, the calculation module 12 does not necessarily calculate the difference between the sharp values of each of the third frame image L3 and the second frame image L2. As shown in FIG. 5, when the image capturing device 1 executes the autofocus program, the focus frame 180 is displayed on the display module 18 of the image capturing device 1, and the computing module 12 can calculate only the third frame image L3 and the The difference between the sharp values of the lattice regions outside the range of the focus frame 180 in the two-frame image L2 can save time and resources for partial calculation. In a practical application, the size, shape or position of the focus frame 180 displayed on the display module 18 can be selected according to a user operation. For example, the focus frame 180 can be a traditional square frame or a frame of any shape. There are no specific restrictions.

至於強度選擇模組20則是用以供使用者選擇影像處理模組14執行模糊化影像處理程序後所產生之影像模糊化效果的強度,也就是說,使用者可以透過強度選擇模組20來控制影像處理模組14將照片中的背景或前景模糊化的程度高低。當使用者透過強度選擇模組20所選擇之影像模糊化效果為高時,代表使用者希望讓照片中的背景或前景變得非常模糊,因此,計算模組12將會選取對應於最佳焦距長度的第三幀影像L3以及與第三幀影像L3之對焦長度差異最大的第一幀影像L1,以計算兩者格子區的銳利值之差值。The intensity selection module 20 is used for the user to select the intensity of the image blurring effect generated by the image processing module 14 after performing the blurred image processing program. That is, the user can use the intensity selection module 20 to The degree to which the image processing module 14 blurs the background or foreground in the photo is controlled. When the image blurring effect selected by the user through the intensity selection module 20 is high, the user desires to make the background or foreground in the photo very blurred. Therefore, the computing module 12 will select the best focal length. The third frame image L3 of the length and the first frame image L1 having the largest difference in focus length from the third frame image L3 are used to calculate the difference between the sharp values of the two lattice regions.

反之,當使用者透過強度選擇模組20所選擇之影像模糊化效果為低時,代表使用者並不希望讓照片中的背景或前景變得太模糊,因此,計算模組12將會選取對應於最佳焦距長度的第三幀影像L3以及與第三幀影像L3之對焦長度差異相近的第二幀影像L2或第四幀影像L4,以計算兩者格子區的銳利值之差值。On the contrary, when the image blurring effect selected by the user through the intensity selection module 20 is low, the representative user does not want to make the background or foreground in the photo too blurred. Therefore, the computing module 12 will select the corresponding The third frame image L3 and the fourth frame image L4 of the third frame image L3 having the best focal length and the difference in the focus length of the third frame image L3 are used to calculate the difference between the sharp values of the lattice regions of the two frames.

綜上所述,影像擷取裝置1係將自動對焦程序中所擷取之對應於不同對焦長度的複數張低解析度影像分割為複數個格子區並計算每個格子區的銳利值後,再自動根據計算結果對高解析度影像的部分格子區執行模糊化影像處理程序。此外,使用者在預覽模式下即能事先觀看到低解析度影像拍攝出之照片的淺景深效果,並透過觸控螢幕或按鈕的方式進行細部的調整,藉以使得最後拍攝出高解析度影像之照片達到最佳的「淺景深」效果。In summary, the image capturing device 1 divides a plurality of low-resolution images captured in the auto-focusing program corresponding to different focusing lengths into a plurality of lattice regions and calculates a sharp value of each of the lattice regions, and then The blurred image processing program is automatically executed on a partial lattice area of the high-resolution image according to the calculation result. In addition, the user can preview the shallow depth of field effect of the photo taken by the low-resolution image in the preview mode, and adjust the detail through the touch screen or the button, so that the high-resolution image is finally captured. The photo achieves the best "shallow depth of field" effect.

於另一例中,假設影像擷取模組10係在完成自動對焦程序後拍攝複數張高解析度影像,並將每張高解析度影像分別分割為複數個格子區,以計算每個格子區的銳利值。接著,計算模組12將會從該等高解析度影像中選取分別對應於不同對焦長度的第一高解析度影像及第二高解析度影像,並計算第一高解析度影像與第二高解析度影像中之每個格子區(或位於對焦框範圍外的格子區)的銳利值之差值。In another example, it is assumed that the image capturing module 10 captures a plurality of high-resolution images after completing the auto-focusing process, and divides each high-resolution image into a plurality of lattice regions to calculate each of the lattice regions. Sharp value. Then, the computing module 12 selects the first high-resolution image and the second high-resolution image respectively corresponding to different focus lengths from the high-resolution images, and calculates the first high-resolution image and the second highest image. The difference in sharpness values for each of the grid regions (or the grid regions outside the range of the focus frame) in the resolution image.

當計算模組12所得到的銳利值之差值大於預設值時,影像處理模組14即會對第一高解析度影像、第二高解析度影像或由第一高解析度影像與第二高解析度影像所合成之合成影像的對應格子區執行模糊化影像處理程序。也就是說,最後具有「淺景深」效果的照片並不一定是影像處理模組14直接對該兩張高解析度影像之一進行模糊化處理的結果,也可以是先將該兩張高解析度影像加以合成之後,再進行模糊化處理的結果。同樣地,使用者亦可透過強度選擇模組20來控制影像處理模組14將照片中的背景或前景模糊化的程度高低,於此不另行贅述。When the difference between the sharp values obtained by the computing module 12 is greater than a preset value, the image processing module 14 will be the first high-resolution image, the second high-resolution image, or the first high-resolution image and the first The corresponding lattice region of the synthesized image synthesized by the two high-resolution images performs a blurred image processing program. That is to say, the last photo with the "shallow depth of field" effect is not necessarily the result of the image processing module 14 directly obscuring one of the two high-resolution images, or the two high resolutions may be first After the image is synthesized, the result of the blurring process is performed. Similarly, the user can control the image processing module 14 to blur the background or foreground in the photo through the intensity selection module 20, and details are not described herein.

根據本發明之另一具體實施例為一種影像處理方法。於此實施例中,該影像處理方法係應用於上述實施例所揭露的影像擷取裝置,例如具有拍照功能的數位相機、手機或其他電子裝置,但不以此為限。Another embodiment of the present invention is an image processing method. In this embodiment, the image processing method is applied to the image capturing device disclosed in the above embodiments, such as a digital camera, a mobile phone, or other electronic device having a photographing function, but is not limited thereto.

請參照圖6,圖6係繪示該影像處理方法之流程圖。首先,該方法執行步驟S10,使用者透過影像擷取裝置選擇模糊化影像處理程序執行後所產生之影像模糊化效果的強度。Please refer to FIG. 6. FIG. 6 is a flowchart of the image processing method. First, the method performs step S10, and the user selects the intensity of the image blurring effect generated after the execution of the blurred image processing program by the image capturing device.

接著,該方法執行步驟S12,在預覽模式中執行自動對焦程序,並同時擷取分別對應於不同對焦長度的複數張低解析度影像。實際上,當執行自動對焦程序時,在影像擷取裝置之顯示螢幕上顯示有對焦框,並且對焦框顯示於顯示螢幕上之大小、形狀或位置可依使用者操作而選定。Next, the method performs step S12, performing an auto-focusing process in the preview mode, and simultaneously capturing a plurality of low-resolution images respectively corresponding to different focus lengths. In fact, when the autofocus program is executed, a focus frame is displayed on the display screen of the image capture device, and the size, shape or position of the focus frame displayed on the display screen can be selected according to the user's operation.

然後,該方法執行步驟S14,分別將每張低解析度影像分割為複數個格子區,並計算每個格子區的銳利值。實際上,低解析度影像所分割成之該等格子區的數量可以是9n 個,n為正整數,但不以此為限。Then, the method performs step S14 to separately segment each low-resolution image into a plurality of lattice regions, and calculate a sharp value of each lattice region. In fact, the number of the lattice regions into which the low-resolution image is divided may be 9 n , and n is a positive integer, but is not limited thereto.

接著,當自動對焦程序完成後,該方法執行步驟S16,拍攝一張高解析度影像。需說明的是,該高解析度影像係對應於該等低解析度影像中之第一低解析度影像,其中該高解析度影像與該第一低解析度影像具有相同的對焦長度以及相同數量的格子區。Then, when the auto-focusing process is completed, the method proceeds to step S16 to take a high-resolution image. It should be noted that the high-resolution image corresponds to the first low-resolution image in the low-resolution images, wherein the high-resolution image has the same focus length and the same number as the first low-resolution image. Plaid area.

之後,該方法執行步驟S18,從該等低解析度影像中選取不同於第一低解析度影像之對焦長度的第二低解析度影像,並計算第一低解析度影像與第二低解析度影像中之每個格子區的銳利值之差值。實際上,於步驟S18,該方法並不一定要計算每個格子區的銳利值之差值,亦可只計算第一低解析度影像與第二低解析度影像中位於對焦框範圍外的格子區的銳利值之差值。Then, the method performs step S18, selecting a second low-resolution image different from the focus length of the first low-resolution image from the low-resolution images, and calculating the first low-resolution image and the second low-resolution image. The difference in sharpness values for each of the grid regions in the image. In fact, in step S18, the method does not have to calculate the difference between the sharp values of each of the lattice regions, and may only calculate the lattices of the first low-resolution image and the second low-resolution image that are outside the range of the focus frame. The difference in the sharpness of the area.

此外,需說明的是,由於在步驟S10中,使用者已透過影像擷取裝置選擇了模糊化影像處理程序執行後所產生之影像模糊化效果的強度,若使用者所選擇之影像模糊化效果為高,則在步驟S18中所選取之第二低解析度影像應為該等低解析度影像中與第一低解析度影像的對焦長度差異最大者;若使用者所選擇之影像模糊化效果為低,則在步驟S18中所選取之第二低解析度影像應為該等低解析度影像中與第一低解析度影像的對焦長度相近者。In addition, in step S10, the user has selected the intensity of the image blurring effect generated after the execution of the blurred image processing program by the image capturing device, and if the user selects the image blurring effect. If the value is high, the second low-resolution image selected in step S18 should be the one with the largest difference in the focus length between the low-resolution images and the first low-resolution image; if the user selects the image blurring effect If it is low, the second low-resolution image selected in step S18 should be the same as the focus length of the first low-resolution image in the low-resolution images.

當步驟S18所得的銳利值之差值大於預設值時,該方法執行步驟S20,對高解析度影像的對應格子區執行模糊化影像處理程序。也就是說,當某些格子區的銳利值之差值大於預設值時,代表該些格子區內的影像相似度較低,很可能是欲模糊化的背景或前景,因此,該方法即會根據類似圖4的計算結果對高解析度影像中對應於背景或前景的該些格子區執行模糊化影像處理程序,使其變得較為模糊,而至於高解析度影像中對應於拍攝主體的格子區則維持原本的清晰度不變。When the difference between the sharp values obtained in step S18 is greater than the preset value, the method performs step S20 to execute the blurred image processing program on the corresponding grid region of the high-resolution image. That is to say, when the difference between the sharpness values of some lattice regions is greater than the preset value, it means that the image similarity in the lattice regions is low, which is likely to be the background or foreground to be blurred, therefore, the method is The fuzzification image processing program is performed on the grid regions corresponding to the background or the foreground in the high-resolution image according to the calculation result similar to FIG. 4, so that the blurring image processing program becomes more blurred, and the high-resolution image corresponds to the photographing subject. The grid area maintains the original clarity.

根據本發明之另一具體實施例亦為一種影像處理方法。於此實施例中,該影像處理方法係應用於上述實施例所揭露的影像擷取裝置,例如具有拍照功能的數位相機、手機或其他電子裝置,但不以此為限。Another embodiment of the present invention is also an image processing method. In this embodiment, the image processing method is applied to the image capturing device disclosed in the above embodiments, such as a digital camera, a mobile phone, or other electronic device having a photographing function, but is not limited thereto.

請參照圖7,圖7係繪示該影像處理方法之流程圖。首先,該方法執行步驟S30,使用者透過影像擷取裝置選擇模糊化影像處理程序執行後所產生之影像模糊化效果的強度。Please refer to FIG. 7. FIG. 7 is a flowchart of the image processing method. First, the method performs step S30, and the user selects the intensity of the image blurring effect generated after the execution of the blurred image processing program by the image capturing device.

接著,當影像擷取裝置完成自動對焦程序後,該方法執行步驟S32,拍攝複數張高解析度影像。實際上,當影像擷取裝置執行自動對焦程序時,在影像擷取裝置之顯示螢幕上將會顯示有對焦框,並且對焦框顯示於顯示螢幕上之大小、形狀或位置均可依使用者操作而選定。Then, after the image capturing device completes the auto-focusing process, the method proceeds to step S32 to capture a plurality of high-resolution images. In fact, when the image capturing device performs the autofocus program, a focus frame will be displayed on the display screen of the image capturing device, and the size, shape or position of the focus frame displayed on the display screen can be operated by the user. And selected.

然後,該方法執行步驟S34,分別將每張高解析度影像分割為複數個格子區,並計算每個格子區的銳利值。實際上,高解析度影像所分割成之該等格子區的數量可以是9n 個,n為正整數,但不以此為限。Then, the method performs step S34 to separately segment each high-resolution image into a plurality of lattice regions, and calculate a sharp value of each lattice region. In fact, the number of the lattice regions into which the high-resolution image is divided may be 9 n , and n is a positive integer, but is not limited thereto.

接著,該方法執行步驟S36,從該等高解析度影像中選取分別對應於不同對焦長度的第一高解析度影像及第二高解析度影像,並計算第一高解析度影像與第二高解析度影像中之每個格子區的銳利值之差值。實際上,於步驟S36,該方法並不一定要計算每個格子區的銳利值之差值,亦可只計算第一高解析度影像與第二高解析度影像中位於對焦框範圍外的格子區的銳利值之差值。Then, the method performs step S36, and selects a first high-resolution image and a second high-resolution image respectively corresponding to different focus lengths from the high-resolution images, and calculates the first high-resolution image and the second highest image. The difference in sharpness values for each of the trellis regions in the resolution image. In fact, in step S36, the method does not have to calculate the difference between the sharp values of each of the lattice regions, and may only calculate the lattices of the first high-resolution image and the second high-resolution image that are outside the range of the focus frame. The difference in the sharpness of the area.

此外,需說明的是,由於在步驟S30中,使用者已透過影像擷取裝置選擇了模糊化影像處理程序執行後所產生之影像模糊化效果的強度,若使用者所選擇之影像模糊化效果為高,則在步驟S36中所選取之第二高解析度影像應為該等高解析度影像中與第一高解析度影像的對焦長度差異最大者;若使用者所選擇之影像模糊化效果為低,則在步驟S36中所選取之第二高解析度影像應為該等高解析度影像中與第一高解析度影像的對焦長度相近者。In addition, in step S30, the user has selected the intensity of the image blurring effect generated after the execution of the blurred image processing program by the image capturing device, and if the image blurring effect selected by the user is used. If the value is high, the second high-resolution image selected in step S36 should be the one with the largest difference in the focus length between the high-resolution images and the first high-resolution image; if the image blurring effect selected by the user is If it is low, the second high-resolution image selected in step S36 should be the same as the focus length of the first high-resolution image in the high-resolution images.

當步驟S36所得的銳利值之差值大於預設值時,該方法執行步驟S38,對第一高解析度影像、第二高解析度影像或由第一高解析度影像與第二高解析度影像所合成之合成高解析度影像的對應格子區執行模糊化影像處理程序。也就是說,當某些格子區的銳利值之差值大於預設值時,代表該些格子區內的影像相似度較低,很可能是欲模糊化的背景或前景,因此,該方法即會根據計算結果對該兩張高解析度影像之一或其合成影像中對應於背景或前景的該些格子區執行模糊化影像處理程序,使其變得較為模糊,而至於其他對應於拍攝主體的格子區則維持原本的清晰度不變。When the difference between the sharp values obtained in step S36 is greater than the preset value, the method performs step S38, for the first high-resolution image, the second high-resolution image, or the first high-resolution image and the second high-resolution image. The corresponding raster region of the synthesized high-resolution image synthesized by the image performs a blurred image processing program. That is to say, when the difference between the sharpness values of some lattice regions is greater than the preset value, it means that the image similarity in the lattice regions is low, which is likely to be the background or foreground to be blurred, therefore, the method is The fuzzification image processing program is performed on the one of the two high-resolution images or the composite image corresponding to the background or the foreground according to the calculation result, so that the blurring image processing program is made more fuzzy, and the other corresponding to the shooting subject The lattice area maintains the original definition.

相較於先前技術,根據本發明之影像擷取裝置以及應用於該影像擷取裝置的影像處理方法,係將自動對焦程序中所擷取之對應於不同對焦長度的複數張低解析度影像,或完成自動對焦程序後所拍攝之複數張高解析度影像分割為複數個格子區,並計算每個格子區的銳利值後,再自動根據計算結果對高解析度影像或其合成影像的部分格子區執行模糊化影像處理程序,使得拍攝者在拍攝時不需進行複雜的操作步驟,而影像擷取裝置亦不需額外執行其他繁複的處理程序,即可透過本發明之影像擷取裝置以及應用於該影像擷取裝置的影像處理方法輕易地拍攝出具有「主體清晰、背景模糊」的「淺景深」效果之照片。Compared with the prior art, the image capturing device and the image processing method applied to the image capturing device according to the present invention are a plurality of low-resolution images captured by the auto-focusing program corresponding to different focusing lengths. Or the plurality of high-resolution images captured after the completion of the auto-focusing process are divided into a plurality of lattice regions, and the sharp values of each of the lattice regions are calculated, and then the high-resolution image or a partial lattice of the synthesized image thereof is automatically automatically calculated according to the calculation result. The area performs the blurred image processing program, so that the photographer does not need to perform complicated operation steps when shooting, and the image capturing device does not need to perform other complicated processing procedures, and the image capturing device and the application of the invention can be used. The image processing method of the image capturing device easily captures a photograph of the "shallow depth of field" effect of "clear subject and blurred background".

此外,透過本發明之影像擷取裝置以及應用於該影像擷取裝置的影像處理方法亦可讓使用者在預覽模式下即能事先觀看到最後拍攝出之照片的淺景深效果,並透過觸控螢幕或按鈕的方式進行細部的調整,藉以使得最後拍攝出之照片達到最佳的「淺景深」效果。In addition, the image capturing device of the present invention and the image processing method applied to the image capturing device can also allow the user to view the shallow depth of field effect of the last captured photo in the preview mode and pass the touch. The details of the screen or button are adjusted to achieve the best "shallow depth of field" effect.

藉由以上較佳具體實施例之詳述,係希望能更加清楚描述本發明之特徵與精神,而並非以上述所揭露的較佳具體實施例來對本發明之範疇加以限制。相反地,其目的是希望能涵蓋各種改變及具相等性的安排於本發明所欲申請之專利範圍的範疇內。The features and spirit of the present invention will be more apparent from the detailed description of the preferred embodiments. On the contrary, the intention is to cover various modifications and equivalents within the scope of the invention as claimed.

S10~S20、S30~S38...流程步驟S10~S20, S30~S38. . . Process step

1...影像擷取裝置1. . . Image capture device

10...影像擷取模組10. . . Image capture module

12...計算模組12. . . Computing module

14...影像處理模組14. . . Image processing module

16...儲存模組16. . . Storage module

18...顯示模組18. . . Display module

20...強度選擇模組20. . . Strength selection module

L1...第一幀影像L1. . . First frame image

L2...第二幀影像L2. . . Second frame image

L3...第三幀影像L3. . . Third frame image

L4...第四幀影像L4. . . Fourth frame image

G...格子區G. . . Lattice area

K...銳利值之差值大於預設值的格子區K. . . a grid area where the difference in sharp values is greater than a preset value

N...銳利值之差值小於或等於預設值的格子區N. . . a grid area where the difference between the sharp values is less than or equal to the preset value

180...對焦框180. . . Focus frame

圖1係繪示根據本發明之一具體實施例的影像擷取裝置之功能方塊圖。1 is a functional block diagram of an image capture device in accordance with an embodiment of the present invention.

圖2係繪示在預覽模式中執行自動對焦程序時擷取對應於不同對焦長度的複數張低解析度影像之示意圖。FIG. 2 is a schematic diagram of capturing a plurality of low-resolution images corresponding to different focus lengths when the auto-focus program is executed in the preview mode.

圖3係繪示影像擷取模組將低解析度影像L1分割為81個格子區之示意圖。FIG. 3 is a schematic diagram showing the image capturing module dividing the low-resolution image L1 into 81 grid regions.

圖4係繪示計算模組計算第三幀影像與第二幀影像中之每個格子區的銳利值之差值的結果。FIG. 4 is a diagram showing a result of calculating a difference between sharp values of each of the third frame image and the second frame image by the calculation module.

圖5係繪示當影像擷取裝置執行自動對焦程序時,在顯示模組上顯示有對焦框之示意圖。FIG. 5 is a schematic diagram showing the focus frame displayed on the display module when the image capturing device executes the auto focus program.

圖6係繪示根據本發明之另一具體實施例的影像處理方法之流程圖。FIG. 6 is a flow chart showing an image processing method according to another embodiment of the present invention.

圖7係繪示根據本發明之另一具體實施例的影像處理方法之流程圖。FIG. 7 is a flow chart showing an image processing method according to another embodiment of the present invention.

1...影像擷取裝置1. . . Image capture device

10...影像擷取模組10. . . Image capture module

12...計算模組12. . . Computing module

14...影像處理模組14. . . Image processing module

16...儲存模組16. . . Storage module

18...顯示模組18. . . Display module

20...強度選擇模組20. . . Strength selection module

Claims (14)

一種應用於影像擷取裝置的影像處理方法,包含下列步驟:(a)在預覽模式中執行一自動對焦程序,並同時擷取分別對應於不同對焦長度的複數張低解析度影像;(b)分別將每張該低解析度影像分割為複數個格子區,並計算每個格子區的銳利值;(c)完成該自動對焦程序後,拍攝一張高解析度影像,該高解析度影像係對應於該等低解析度影像中之一第一低解析度影像,其中該高解析度影像與該第一低解析度影像具有相同的對焦長度以及相同數量的格子區;(d)從該等低解析度影像中選取不同於步驟(c)對焦長度的一第二低解析度影像,並計算該第一低解析度影像與該第二低解析度影像中之每個格子區的銳利值之差值;以及(e)當步驟(d)的該差值大於一預設值時,對該高解析度影像的對應格子區執行一模糊化影像處理程序;其中,在步驟(a)中,當執行該自動對焦程序時,在該影像擷取裝置之一顯示螢幕上顯示有一對焦框,該對焦框顯示於該顯示螢幕上之大小、形狀或位置可依使用者操作而選定;在步驟(d)中,只計算該第一低解析度影像與該第二低解析度影像中位於該對焦框範圍外的格子區的銳利值之差值。 An image processing method applied to an image capturing device, comprising the steps of: (a) performing an auto-focusing process in a preview mode, and simultaneously capturing a plurality of low-resolution images respectively corresponding to different focusing lengths; (b) Separating each low-resolution image into a plurality of lattice regions and calculating a sharp value of each of the lattice regions; (c) after completing the auto-focusing process, capturing a high-resolution image, the high-resolution image system Corresponding to one of the first low-resolution images of the low-resolution images, wherein the high-resolution image has the same focus length and the same number of grid regions as the first low-resolution image; (d) from the Selecting a second low-resolution image different from the focus length of the step (c) in the low-resolution image, and calculating a sharp value of each of the first low-resolution image and the second low-resolution image And (e) when the difference of the step (d) is greater than a predetermined value, performing a blurred image processing program on the corresponding lattice region of the high-resolution image; wherein, in the step (a), When performing this auto focus In the sequence, a focus frame is displayed on the display screen of one of the image capturing devices, and the size, shape or position of the focus frame displayed on the display screen can be selected according to a user operation; in step (d), only Calculating a difference between the sharpness values of the first low-resolution image and the second low-resolution image that are outside the range of the focus frame. 如申請專利範圍第1項所述之影像處理方法,其中在步驟 (b)中,該低解析度影像所分割成之該等格子區的數量為9n 個,n為正整數。The image processing method according to claim 1, wherein in the step (b), the number of the lattice regions into which the low-resolution image is divided is 9 n , and n is a positive integer. 如申請專利範圍第1項所述之影像處理方法,其中在執行步驟(a)之前,使用者可透過該影像擷取裝置選擇該模糊化影像處理程序執行後所產生之影像模糊化效果的強度。 The image processing method of claim 1, wherein before performing step (a), the user can select the intensity of the image blurring effect generated by the blurred image processing program after the image capturing device is executed. . 如申請專利範圍第3項所述之影像處理方法,其中若使用者所選擇之影像模糊化效果為高,則在步驟(d)中,該第二低解析度影像係為該等低解析度影像中與步驟(c)對焦長度差異最大者。 The image processing method of claim 3, wherein if the image blurring effect selected by the user is high, then in the step (d), the second low-resolution image is the low-resolution image. The difference between the focus length in the image and step (c) is the largest. 如申請專利範圍第3項所述之影像處理方法,其中若使用者所選擇之影像模糊化效果為低,則在步驟(d)中,該第二低解析度影像係為該等低解析度影像中與步驟(c)對焦長度相近者。 The image processing method of claim 3, wherein if the image blurring effect selected by the user is low, then in the step (d), the second low resolution image is the low resolution. The image is similar to the focus length of step (c). 一種應用於影像擷取裝置的影像處理方法,包含下列步驟:(a)完成一自動對焦程序後,拍攝複數張高解析度影像;(b)將每張該高解析度影像分割為複數個格子區,並計算每個格子區的銳利值;(c)從該等高解析度影像中選取分別對應於不同對焦長度的一第一高解析度影像及一第二高解析度影像,並計算該第一高解析度影像與該第二高解析度影像中之每個格子區的銳利值之差值;以及(d)當步驟(c)的該差值大於一預設值,對該第一高解析度影像、該第二高解析度影像或由該第一高解析度影像 與該第二高解析度影像所合成之一合成高解析度影像的對應格子區執行一模糊化影像處理程序;其中,在執行步驟(a)之前,當執行該自動對焦程序時,在該影像擷取裝置之一顯示螢幕上顯示有一對焦框,該對焦框顯示於該顯示螢幕上之大小、形狀或位置可依使用者操作而選定;在步驟(c)中,只計算該第一高解析度影像與該第二高解析度影像中位於該對焦框範圍外的格子區的銳利值之差值。 An image processing method applied to an image capturing device includes the following steps: (a) capturing a plurality of high-resolution images after completing an auto-focusing process; and (b) dividing each of the high-resolution images into a plurality of squares And calculating a sharp value of each of the lattice regions; (c) selecting, from the high-resolution images, a first high-resolution image and a second high-resolution image respectively corresponding to different focus lengths, and calculating the a difference between a sharpness value of each of the first high-resolution image and the second high-resolution image; and (d) when the difference of the step (c) is greater than a predetermined value, the first a high resolution image, the second high resolution image, or the first high resolution image Performing a blurred image processing program corresponding to the corresponding lattice region of the synthesized high-resolution image synthesized by the second high-resolution image; wherein, before performing step (a), when the auto-focusing program is executed, the image is One of the capture devices displays a focus frame displayed on the screen, and the size, shape or position of the focus frame displayed on the display screen can be selected according to the user's operation; in step (c), only the first high resolution is calculated. The difference between the sharpness value of the lattice image and the lattice area outside the range of the focus frame in the second high-resolution image. 如申請專利範圍第6項所述之影像處理方法,其中在步驟(b)中,該高解析度影像所分割成之該等格子區的數量為9n 個,n為正整數。The image processing method according to claim 6, wherein in the step (b), the number of the lattice regions into which the high-resolution image is divided is 9 n , and n is a positive integer. 如申請專利範圍第6項所述之影像處理方法,其中在執行步驟(a)之前,使用者可透過該影像擷取裝置選擇該模糊化影像處理程序執行後所產生之影像模糊化效果的強度。 The image processing method of claim 6, wherein before performing step (a), the user can select the intensity of the image blurring effect generated by the blurred image processing program after the image capturing device is executed. . 如申請專利範圍第8項所述之影像處理方法,其中若使用者所選擇之影像模糊化效果為高,則在步驟(c)中,該第二高解析度影像係為該等高解析度影像中與該第一高解析度影像之對焦長度差異最大者。 The image processing method of claim 8, wherein if the image blurring effect selected by the user is high, in the step (c), the second high-resolution image is the high-resolution image. The difference in the focus length between the image and the first high-resolution image is the largest. 如申請專利範圍第8項所述之影像處理方法,其中若使用者所選擇之影像模糊化效果為低,則在步驟(c)中,該第二高解析度影像係為該等高解析度影像中與該第一高解析度影像之對焦長度相近者。 The image processing method according to claim 8, wherein if the image blurring effect selected by the user is low, in the step (c), the second high-resolution image is the high-resolution image. The image has a similar focus length to the first high-resolution image. 一種影像擷取裝置,包含: 一影像擷取模組,用以同時擷取分別對應於不同對焦長度的複數張影像,並將每張該影像分別分割為複數個格子區,以計算每個格子區的銳利值;一計算模組,耦接至該影像擷取模組,用以從該等影像中選取一第一影像及一第二影像,並計算該第一影像與該第二影像中之每個格子區的銳利值之差值;一影像處理模組,耦接至該計算模組,當該計算模組所得到之該差值大於一預設值時,該影像處理模組對該第一影像、該第二影像或由該第一影像與該第二影像所合成之一合成影像的對應格子區執行一模糊化影像處理程序;一儲存模組,耦接至該影像擷取模組,用以儲存該第一影像與該第二影像;一顯示模組,耦接至該影像處理模組,當執行該自動對焦程序時,在該顯示模組上顯示有一對焦框,該對焦框顯示於該顯示模組上之大小、形狀或位置可依使用者操作而選定;以及一強度選擇模組,耦接至該影像處理模組,用以供使用者選擇該影像處理模組執行該模糊化影像處理程序後所產生之影像模糊化效果的強度。 An image capturing device comprising: An image capturing module is configured to simultaneously capture a plurality of images corresponding to different focusing lengths, and divide each image into a plurality of lattice regions to calculate a sharp value of each of the lattice regions; And the image capturing module is configured to select a first image and a second image from the images, and calculate a sharp value of each of the first image and the second image The image processing module is coupled to the computing module. When the difference obtained by the computing module is greater than a predetermined value, the image processing module is configured to the first image and the second image. Performing a blurred image processing program on the image or a corresponding grid region of the composite image formed by the first image and the second image; a storage module coupled to the image capturing module for storing the image An image and a second image; a display module coupled to the image processing module, when the autofocus program is executed, a focus frame is displayed on the display module, and the focus frame is displayed on the display module The size, shape or position of the top can be used Strength blurring effect resulting image after intensity and a choosing module, coupled to the image processing module for the user to select the image processing module performs the blurring image processing program; operation selected. 如申請專利範圍第11項所述之影像擷取裝置,其中該計算模組只計算該第一影像與該第二影像中位於該對焦框範圍外的格子區的銳利值之差值。 The image capture device of claim 11, wherein the calculation module calculates only a difference between the sharpness values of the lattice regions outside the range of the focus frame in the first image and the second image. 如申請專利範圍第11項所述之影像擷取裝置,其中當使用 者透過該強度選擇模組所選擇之影像模糊化效果為高,則該計算模組從該等影像中所選取之該第二影像係為與該第一影像之對焦長度差異最大者;當使用者透過該強度選擇模組所選擇之影像模糊化效果為低,則該計算模組從該等影像中所選取之該第二影像係為與該第一影像之對焦長度差異相近者。 The image capturing device of claim 11, wherein when used The image blurring effect selected by the intensity selection module is high, and the second image selected by the computing module from the images is the one having the largest difference in focus length from the first image; The image blurring effect selected by the intensity selection module is low, and the second image selected by the computing module from the images is similar to the difference in focus length of the first image. 如申請專利範圍第11項所述之影像擷取裝置,其中該等影像係為該影像擷取模組在預覽模式中執行一自動對焦程序並同時擷取之分別對應於不同對焦長度的複數張低解析度影像。 The image capturing device of claim 11, wherein the image capturing module performs an auto-focusing process in the preview mode and simultaneously captures a plurality of images corresponding to different focusing lengths. Low resolution image.
TW099144186A 2010-12-16 2010-12-16 Image capturing apparatus and image processing method TWI465108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099144186A TWI465108B (en) 2010-12-16 2010-12-16 Image capturing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099144186A TWI465108B (en) 2010-12-16 2010-12-16 Image capturing apparatus and image processing method

Publications (2)

Publication Number Publication Date
TW201228375A TW201228375A (en) 2012-07-01
TWI465108B true TWI465108B (en) 2014-12-11

Family

ID=46933608

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099144186A TWI465108B (en) 2010-12-16 2010-12-16 Image capturing apparatus and image processing method

Country Status (1)

Country Link
TW (1) TWI465108B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200920108A (en) * 2007-10-19 2009-05-01 Hon Hai Prec Ind Co Ltd Image capturing device and auto-focus method for the same
TW200928544A (en) * 2007-12-19 2009-07-01 Altek Corp Method of automatically adjusting the depth of field
TW201023627A (en) * 2008-12-12 2010-06-16 Altek Corp Method for stimulating the depth of field of an image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200920108A (en) * 2007-10-19 2009-05-01 Hon Hai Prec Ind Co Ltd Image capturing device and auto-focus method for the same
TW200928544A (en) * 2007-12-19 2009-07-01 Altek Corp Method of automatically adjusting the depth of field
TW201023627A (en) * 2008-12-12 2010-06-16 Altek Corp Method for stimulating the depth of field of an image

Also Published As

Publication number Publication date
TW201228375A (en) 2012-07-01

Similar Documents

Publication Publication Date Title
TWI518436B (en) Image capturing apparatus and image processing method
WO2017045558A1 (en) Depth-of-field adjustment method and apparatus, and terminal
US8194158B2 (en) Image processor, image processing method, digital camera, and imaging apparatus
JP5036599B2 (en) Imaging device
WO2017016050A1 (en) Image preview method, apparatus and terminal
US8335393B2 (en) Image processing apparatus and image processing method
TWI538512B (en) Method for adjusting focus position and electronic apparatus
TWI602152B (en) Image capturing device nd image processing method thereof
US20160028969A1 (en) Digital photographing apparatus and method of controlling the digital photographing apparatus
JP5262417B2 (en) Image processing apparatus, image processing method, and image processing program
JP5950678B2 (en) Imaging apparatus, control method, and program
WO2022083229A1 (en) Image processing method, electronic device, and nonvolatile computer readable storage medium
US20100007759A1 (en) Image processor, imaging apparatus including the same, and image processing method
JP2016012811A (en) Imaging apparatus, control method thereof, program and storage medium
KR20190068618A (en) Method and terminal for photographing a terminal
JPWO2017037978A1 (en) DETECTING DEVICE, DETECTING METHOD, DETECTING PROGRAM, AND IMAGING DEVICE
CN112991245A (en) Double-shot blurring processing method and device, electronic equipment and readable storage medium
TWI520604B (en) Image pickup device and image preview system and image preview method thereof
WO2018196854A1 (en) Photographing method, photographing apparatus and mobile terminal
JP2017143354A (en) Image processing apparatus and image processing method
JP5117889B2 (en) Image processing apparatus and image processing method
TWI516113B (en) Image capture device and image synthesis method thereof
JP2011239267A (en) Imaging apparatus and image processing apparatus
JP2010141609A (en) Imaging apparatus
JP2023033355A (en) Image processing device and control method therefor

Legal Events

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