TWI390965B - Method for stimulating the depth of field of an image - Google Patents

Method for stimulating the depth of field of an image Download PDF

Info

Publication number
TWI390965B
TWI390965B TW97148375A TW97148375A TWI390965B TW I390965 B TWI390965 B TW I390965B TW 97148375 A TW97148375 A TW 97148375A TW 97148375 A TW97148375 A TW 97148375A TW I390965 B TWI390965 B TW I390965B
Authority
TW
Taiwan
Prior art keywords
image
focal length
area
digital image
digital
Prior art date
Application number
TW97148375A
Other languages
Chinese (zh)
Other versions
TW201023627A (en
Original Assignee
Altek 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 Altek Corp filed Critical Altek Corp
Priority to TW97148375A priority Critical patent/TWI390965B/en
Publication of TW201023627A publication Critical patent/TW201023627A/en
Application granted granted Critical
Publication of TWI390965B publication Critical patent/TWI390965B/en

Links

Description

數位影像的淺景深模擬方法Shallow depth of field simulation method for digital image

本發明為一種數位影像的淺景深模擬方法,尤指一種依據各區域影像的拍攝焦距與主體的最佳焦距之差異來調整區域影像的模糊程度的淺景深模擬方法。The invention relates to a shallow depth of field simulation method for digital images, in particular to a shallow depth of field simulation method for adjusting the blur degree of an area image according to the difference between the shooting focal length of each region image and the optimal focal length of the main body.

一般而言,數位相機在進行拍攝動作時,該數位相機會調整其鏡頭組的相對位置,使得焦點(focus point)能落在被拍攝的主體上。如此,拍攝到的數位影像(或稱之數位相片)即可清晰地顯示該主體。而該主體的前後一段距離內的景物雖然不是完全落在焦點上,但是因為距離焦點仍不遠,所以也能清楚地顯示於該數位影像中,此段距離範圍即為所謂的景深(Depth of field)。在景深範圍外的景物因為距離該焦點較遠,故顯得模糊,無法清楚顯示。In general, when a digital camera performs a shooting action, the digital camera adjusts the relative position of its lens group so that the focus point can fall on the subject being photographed. In this way, the captured digital image (or digital photo) can clearly display the subject. The scene in the distance between the front and the back of the subject is not completely in focus, but because it is not far from the focus, it can be clearly displayed in the digital image. The distance range is the so-called depth of field (Depth of Field). Scenes outside the depth of field are blurred because they are far from the focus, and cannot be clearly displayed.

景深的深淺可由數位相機的多個拍攝參數所決定,例如鏡頭組的焦距愈長(如望遠鏡頭),則景深愈淺;物距(鏡頭組和主體間的距離)愈近,則景深愈淺;以及光圈(aperture)愈大,則景深愈淺。而使用者通常是藉由調整數位相機的光圈來改變景深的深淺。The depth of field depth can be determined by multiple shooting parameters of the digital camera. For example, the longer the focal length of the lens group (such as the telescope head), the shallower the depth of field; the closer the object distance (distance between the lens group and the subject), the shallower the depth of field And the larger the aperture, the shallower the depth of field. The user usually changes the depth of the depth of field by adjusting the aperture of the digital camera.

景深的深淺可以影響拍攝的數位影像的觀感,不同的景深深淺有其適合拍攝的場合,例如:拍攝人像(portrait)時通常使用淺景深,使得整張數位影像中,除了主體(人像)能被清晰顯示,其餘的景物皆模糊, 藉此呈現朦朧唯美的視覺美感,並能突顯出主體的存在;而在拍攝自然風景(landscape)會讓景深盡量拉長,如此數位影像的全部景物均能清晰地顯現。The depth of field depth can affect the look and feel of digital images. Different scenes are suitable for shooting situations. For example, when shooting portraits, shallow depth of field is usually used, so that the entire digital image can be replaced by the subject (portrait). Clearly showing that the rest of the scene is blurred. This gives a beautiful visual aesthetic and can highlight the existence of the subject; while shooting a natural landscape will make the depth of field as long as possible, so that all the scenes of such digital images can be clearly displayed.

雖然景深的深淺可以由光圈值來調整,然而除了數位單眼(Digital Single Lens Reflex,DSLR)相機能有較大範圍的光圈值可供調整,一般較平價的數位相機的光圈值的調整範圍不大,故其難以拍攝出具有淺景深效果的數位影像。Although the depth of field depth can be adjusted by the aperture value, except for the Digital Single Lens Reflex (DSLR) camera, which has a wide range of aperture values for adjustment, the aperture range of a relatively inexpensive digital camera is not adjusted. Therefore, it is difficult to take a digital image with a shallow depth of field effect.

因此,只能利用一些影像或相片的後製(retouch)方法來達成淺景深的效果。例如美國專利號US6,148,113所提出的一種『二維空間影像的景深模擬系統及其運作方法(System for stimulating the depth of field of an image in two dimensional space and method of operation)』,該系統能提供使用者在拍攝出一張數位影像後,選擇數位影像的焦點位置,然後該系統依據數位影像的各個像素相對該焦點位置的距離來『柔焦(defocus)』該像素。例如焦點位置在數位影像的中央,則數位影像的角落處的景物會比較靠近中央處的景物模糊、不清楚。除了上述的方法外,市面上已有許多商業影像處理軟體可以達到類似的效果。Therefore, only the retouch method of some images or photos can be used to achieve the shallow depth of field effect. "System for stimulating the depth of field of an image in two dimensional space and method of operation", which is provided by the system, which is provided by the US Patent No. 6,148,113. After the user takes a digital image, the focus position of the digital image is selected, and then the system "defocuss" the pixel according to the distance of each pixel of the digital image from the focus position. For example, if the focus position is in the center of the digital image, the scene at the corner of the digital image will be closer to the center and the scene will be blurred and unclear. In addition to the above methods, many commercial image processing software on the market can achieve similar effects.

然而,這些經由後製的淺景深的數位影像具有些缺失如下:由於該些後製方法是依據像素與焦點於數位影像中的『平面距離』來決定其模糊程度,並不是依據拍攝時實際的『對焦距離』來決定其模糊程度, 所以常常會造成淺景深的效果不適當。例如角落處的景物與中央的景物實際上具有相同的焦距,但是角落處的景物卻被嚴重地模糊。However, these digital images with shallow depth of field through post-production have some missing as follows: Since the post-production methods determine the degree of blurring according to the "plane distance" between the pixel and the focus in the digital image, it is not based on the actual shooting. "Focus distance" to determine the degree of blurring, Therefore, the effect of shallow depth of field is often inappropriate. For example, the scene at the corner and the scene in the center actually have the same focal length, but the scene at the corner is seriously blurred.

雖然有些影像處理軟體可供使用者設定數位影像的不同區域的景深效果,如此使用者可依據數位影像的景物與焦點(主體)的對焦距離來調整景深效果。但此方法費時費力,且使用者也難以知道每個景物與焦點的真正對焦距離的差異,所以該方法仍是有些缺失,實屬可惜。Although some image processing software allows the user to set the depth of field effect of different areas of the digital image, the user can adjust the depth of field effect according to the focus distance of the digital image and the focus (main body). However, this method is time consuming and laborious, and it is difficult for the user to know the difference in the true focusing distance between each scene and the focus, so the method is still somewhat missing, which is a pity.

緣是,本發明人有感上述缺失可以改善,因此提出一種設計合理且有效改善上述缺失之本發明。On the contrary, the present inventors felt that the above-mentioned deletion could be improved, and therefore proposed a present invention which is rational in design and effective in improving the above-mentioned deficiency.

本發明之主要目的在於提供一種數位影像的淺景深模擬方法,其依據數位影像中各區域影像的拍攝焦距與主體的最佳焦距之差異來決定其模糊程度,藉此得到一張淺景深效果較自然的數位影像。The main object of the present invention is to provide a shallow depth of field simulation method for digital images, which determines the degree of blurring according to the difference between the shooting focal length of each region image in the digital image and the optimal focal length of the subject, thereby obtaining a shallow depth of field effect. Natural digital imagery.

為達上述目的,本發明提供一種數位影像的淺景深模擬方法,包括步驟如下:提供一拍攝裝置,該拍攝裝置對一主體進行對焦;獲得該主體的最佳焦距,並拍攝一數位影像;將該數位影像分成多數個區域影像;分析該些區域影像的拍攝焦距;以及模糊該些區域影像,並依據該些區域影像的拍攝焦距與該最佳焦距的差異來調整其模糊程度。To achieve the above object, the present invention provides a shallow depth of field simulation method for digital images, comprising the steps of: providing a photographing device that focuses on a subject; obtaining a best focal length of the subject, and capturing a digital image; The digital image is divided into a plurality of regional images; the shooting focal lengths of the regional images are analyzed; and the regional images are blurred, and the blurring degree is adjusted according to the difference between the shooting focal lengths of the regional images and the optimal focal length.

藉此,本發明的數位影像的淺景深模擬方法具有以下有益效果:數位影像中各區域影像的拍攝焦距能 分析出,因此可依據該些區域影像的拍攝焦距與最佳焦距的差異來模糊該些區域影像。如此,模擬出的淺景深效果較自然,不會有拍攝距離相近可是模糊程度差異甚大的情況發生。或是,反之,拍攝距離甚遠可是模糊程度相近的情況發生。Therefore, the shallow depth of field simulation method of the digital image of the present invention has the following beneficial effects: the focal length of the image of each region in the digital image It is analyzed that the image of the area can be blurred according to the difference between the shooting focal length and the best focal length of the image of the area. In this way, the simulated shallow depth of field effect is more natural, and there is no case where the shooting distance is similar, but the degree of blurring is very different. Or, conversely, the shooting distance is very far, but the degree of blurring is similar.

為使能更進一步了解本發明之特徵及技術內容,請參閱以下有關本發明之詳細說明及圖式,然而所附圖式僅供參考與說明用,並非用來對本發明加以限制者。The detailed description and drawings of the present invention are to be understood as the

請參閱第一圖至第三圖,本發明提出一種數位影像的淺景深模擬方法,其具有步驟如下:Referring to the first to third figures, the present invention provides a shallow depth of field simulation method for digital images, which has the following steps:

步驟S100:首先,提供一拍攝裝置10。該拍攝裝置10具有一處理器11、一鏡頭組12、一感光元件13以及一儲存模組14。該拍攝裝置10可以擷取面對鏡頭組12的景物的影像,並拍攝成一數位影像40(如第五圖所示)。該拍攝裝置10可為數位相機、可拍照的行動電話等裝置,本實施例以數位相機為例。而該拍攝裝置10的硬體規格不限定,例如光圈的調整範圍等。Step S100: First, a photographing device 10 is provided. The camera device 10 has a processor 11, a lens group 12, a photosensitive element 13, and a storage module 14. The photographing device 10 can capture an image of a scene facing the lens group 12 and capture a digital image 40 (as shown in FIG. 5). The photographing device 10 can be a digital camera, a camera-enabled mobile phone, etc., and the present embodiment takes a digital camera as an example. The hardware specifications of the imaging device 10 are not limited, for example, the adjustment range of the aperture.

步驟S102:請參閱第三圖,接著,使用者決定欲拍攝的景物,例如本實施例的景物為三顆氣球21。並決定景物的何者為拍攝的主體(main object)20,例如本實施例是以中間的氣球21做為主體20。接著,將該拍攝裝置10的鏡頭組12朝向該主體20,對該主 體20進行對焦之程序。在對焦的過程中,該拍攝裝置10會改變其內部的鏡頭組12與感光元件13之間的距離數次,以改變該拍攝裝置10的焦距(焦點之位置)。Step S102: Referring to the third figure, the user then decides the scene to be photographed, for example, the scene of the embodiment is three balloons 21. It is also determined which of the scenes is the main object 20 of the photographing. For example, in the present embodiment, the middle balloon 21 is used as the main body 20. Next, the lens group 12 of the imaging device 10 is directed toward the main body 20, to the main The body 20 performs the process of focusing. During the focusing process, the photographing device 10 changes the distance between the lens group 12 and the photosensitive member 13 therein several times to change the focal length (the position of the focus) of the photographing device 10.

每改變一次焦距時,該拍攝裝置10會擷取一張參考數位影像(reference digital image),該參考數位影像可儲存至該儲存模組14。接著該處理器11進一步分析該些參考數位影像,判斷該些參考數位影像中,哪一張的主體20的影像是最清晰。請參閱第四圖,例如其中一張參考數位影像30的主體20的影像不甚清楚,故拍攝該參考數位影像30所使用的焦距不是拍攝該主體20的最佳焦距(preferable focal length)D1,鏡頭組12需再繼續移動。Each time the focal length is changed, the camera 10 captures a reference digital image, which can be stored in the storage module 14. Then, the processor 11 further analyzes the reference digital images to determine which of the reference digital images has the most clear image of the main body 20. Referring to the fourth figure, for example, the image of the main body 20 of the reference digital image 30 is not clear, so the focal length used for capturing the reference digital image 30 is not the preferred focal length D1 of the subject 20 . The lens group 12 needs to continue moving.

而判斷影像清楚程度的方法可採用對比度偵測法(contrast detection method)等常見的自動對焦方法,並不限定之。該參考數位影像30的解析度通常較低,以便減少處理器11分析時花的運算時間。The method of judging the degree of image clarity may be a common autofocus method such as a contrast detection method, and is not limited thereto. The resolution of the reference digital image 30 is typically low in order to reduce the computational time spent by the processor 11 in the analysis.

步驟S104:該拍攝裝置10在經過對焦程序後,可找到拍攝該主體20的最佳焦距D1,使得主體20的影像可接近或落在該感光元件13上。請參閱第五圖,然後該拍攝裝置10將該主體20及其附近的景物拍攝成一數位影像40,該數位影像40有較高的解析度(與參考數位影像30相比較)。此時的數位影像40的淺景深效果較不明顯,主體20(中央之氣球21)和其它景物(兩旁之氣球21)的清晰程度差異不大。Step S104: After the focus program is passed, the photographing device 10 can find the best focal length D1 of the subject 20 so that the image of the main body 20 can approach or fall on the photosensitive element 13. Referring to the fifth figure, the camera 10 then captures the subject 20 and its nearby scenes into a digital image 40 having a higher resolution (compared to the reference digital image 30). At this time, the shallow depth of field effect of the digital image 40 is less obvious, and the degree of clarity of the main body 20 (the central balloon 21) and other scenes (the balloons 21 on both sides) are not significantly different.

步驟S106:接著,請參閱第六圖,將該數位影像40區分成多數個區域影像41。區域影像41的大小由其具有的像素(pixel)的數目決定,如區域影像41較小,則數位影像40可區分出較多的區域影像41。本實施例將該數位影像40等分成16個區域影像41。Step S106: Next, referring to the sixth figure, the digital image 40 is divided into a plurality of area images 41. The size of the area image 41 is determined by the number of pixels it has. If the area image 41 is small, the digital image 40 can distinguish a plurality of area images 41. In this embodiment, the digital image 40 is equally divided into 16 area images 41.

步驟S108:之後,開始分析該些區域影像41的拍攝焦距,推論如果要將某一個區域影像41拍攝清楚時,則拍攝裝置10的焦距應為多少。請參閱第二圖及第三圖,例如該數位影像40中兩旁的氣球21的區域影像41欲拍攝清楚時,該拍攝裝置10的焦距應為D2及D3,D2及D3的值即為該區域影像41的拍攝焦距。Step S108: After that, the analysis of the shooting focal lengths of the regional images 41 is started, and it is inferred that if a certain regional image 41 is to be clearly photographed, the focal length of the imaging device 10 should be. Referring to the second and third figures, for example, when the area image 41 of the balloon 21 on both sides of the digital image 40 is to be clearly photographed, the focal length of the photographing device 10 should be D2 and D3, and the values of D2 and D3 are the area. The focal length of the image 41.

請參閱第七圖,『分析該些區域影像41的拍攝焦距』的詳細步驟如下:Please refer to the seventh figure, the detailed steps of "Analyzing the focal length of the image of the area 41" are as follows:

步驟S200:前述步驟S102提及,拍攝裝置10於對焦過程中,每調整一次焦距即拍攝一張參考數位影像30。因此,該些參考數位影像30分別具有一對應的拍攝焦距。Step S200: The foregoing step S102 mentions that the photographing device 10 captures a reference digital image 30 every time the focal length is adjusted during the focusing process. Therefore, the reference digital images 30 each have a corresponding shooting focal length.

步驟S202:接著,請參閱第八圖,將每一張該參考數位影像30也分成多數個區域影像31。每一張參考數位影像30的區域影像31數目與數位影像40的區域影像41的數目一致,也為16個。Step S202: Next, referring to the eighth figure, each of the reference digital images 30 is also divided into a plurality of area images 31. The number of the area images 31 of each of the reference digital images 30 coincides with the number of the area images 41 of the digital image 40, which is also 16.

步驟S204:之後,開始分析每一張參考數位影像30的該些區域影像31。依據每一個區域影像31的清晰程度(sharpness)來判斷該區域影像31是否位於 其對應的該參考數位影像30的拍攝焦距。例如左上方的區域影像31在某一張參考數位影像30最為清楚,則其拍攝焦距即為該張參考數位影像30的拍攝焦距。如此,可將每一個區域影像31的拍攝焦距推論出,而區域影像31的拍攝焦距等於數位影像40的區域影像41的拍攝焦距。Step S204: After that, the analysis of the regional images 31 of each of the reference digital images 30 is started. Judging whether the area image 31 is located according to the sharpness of each area image 31 The corresponding focal length of the reference digital image 30 is corresponding. For example, if the area image 31 in the upper left is the most clear in a certain reference digital image 30, the shooting focal length is the shooting focal length of the reference digital image 30. In this way, the shooting focal length of each of the area images 31 can be inferred, and the shooting focal length of the area image 31 is equal to the shooting focal length of the area image 41 of the digital image 40.

步驟S206:當全部的區域影像41推論完後,可進一步將該些區域影像41依據拍攝焦距的長短排序。請參閱第九圖,或是進一步做成一距離分佈圖(distance map),將每一個區域影像41的拍攝焦距標記在區域影像41上。如此,可清楚地瞭解區域影像41的拍攝焦距的相對長短。也可將每一個區域影像41的拍攝焦距與該最佳焦距的差異標記在區域影像41,做成另一距離分佈圖(圖未示)。Step S206: After all the area images 41 are inferred, the area images 41 may be further sorted according to the length of the shooting focal length. Please refer to the ninth figure, or further make a distance map, and mark the focal length of each area image 41 on the area image 41. In this way, the relative length of the shooting focal length of the area image 41 can be clearly understood. It is also possible to mark the difference between the shooting focal length of each of the area images 41 and the optimum focal length in the area image 41 to form another distance distribution map (not shown).

步驟S110:最後,處理器11將數位影像40部分的區域影像41模糊,使得該數位影像40有明顯的淺景深效果。該些區域影像41的模糊程度分別依據該區域影像41的拍攝焦距與該最佳焦距的差異來調整,如果差異越大則模糊程度越大,而同一拍攝焦距的區域影像41的模糊程度相同。本實施例中,使用了一高斯模糊法(Gaussian blur)來模糊該些區域影像41。並且,改變該高斯模糊法的高斯半徑值即可調整該些區域影像41的模糊程度。Step S110: Finally, the processor 11 blurs the area image 41 of the digital image 40 portion, so that the digital image 40 has a distinct shallow depth of field effect. The degree of blurring of the area images 41 is adjusted according to the difference between the shooting focal length of the area image 41 and the optimal focal length. If the difference is larger, the degree of blurring is larger, and the degree of blurring of the area image 41 of the same photographing focal length is the same. In this embodiment, a Gaussian blur is used to blur the area images 41. Moreover, by changing the Gaussian radius value of the Gaussian blur method, the degree of blurring of the area images 41 can be adjusted.

另外,也可採用下列方法將數位影像40部分的區域影像41模糊:In addition, the following method can also be used to blur the regional image 41 of the digital image 40 portion:

首先,將該些參考數位影像30的尺寸放大至與該數位影像40的尺寸一致。該些參考數位影像30的解析度較低,所以放大後,該些參考數位影像30會變得較模糊。First, the size of the reference digital image 30 is enlarged to match the size of the digital image 40. The resolution of the reference digital image 30 is low, so that the reference digital image 30 becomes blurred after being enlarged.

接著,將該數位影像40的部分區域影像41分別與其中一張參考數位影像30中相對應的區域影像31相加合併。由於區域影像31較為模糊,故與區域影像41合併後,區域影像41也會變得比之前模糊。不同拍攝焦距的區域影像41會選用不同張的參考數位影像30的區域影像31來合併。Then, the partial area image 41 of the digital image 40 is added to and merged with the corresponding area image 31 of one of the reference digital images 30. Since the area image 31 is relatively blurred, the area image 41 is also blurred as compared with the area image 41. The area images 41 of different shooting focal lengths are combined using the area images 31 of the different reference digital images 30.

綜合上述,本發明的數位影像的淺景深模擬方法具有以下效果:數位影像40中各區域影像41的拍攝焦距能分析出,因此可依據該些區域影像41的拍攝焦距與最佳焦距的差異來模糊該些區域影像41。如此,模擬出的淺景深效果較自然,不會有拍攝距離相近可是模糊程度差異甚大的情況發生。或是,反之,拍攝距離甚遠可是模糊程度相近的情況發生。In summary, the shallow depth of field simulation method of the digital image of the present invention has the following effects: the shooting focal length of each region image 41 in the digital image 40 can be analyzed, so that the difference between the shooting focal length and the optimal focal length of the regional image 41 can be used. Blur the area images 41. In this way, the simulated shallow depth of field effect is more natural, and there is no case where the shooting distance is similar, but the degree of blurring is very different. Or, conversely, the shooting distance is very far, but the degree of blurring is similar.

惟以上所述僅為本發明之較佳實施例,非意欲侷限本發明之專利保護範圍,故舉凡運用本發明說明書及圖式內容所為之等效變化,均同理皆包含於本發明之權利保護範圍內,合予陳明。The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Therefore, the equivalents of the present invention and the equivalents of the drawings are all included in the present invention. Within the scope of protection, it is given to Chen Ming.

10‧‧‧拍攝裝置10‧‧‧Photographing device

11‧‧‧處理器11‧‧‧ Processor

12‧‧‧鏡頭組12‧‧‧ lens group

13‧‧‧感光元件13‧‧‧Photosensitive elements

14‧‧‧儲存模組14‧‧‧Storage module

20‧‧‧主體20‧‧‧ Subject

21‧‧‧氣球21‧‧‧ balloons

30‧‧‧數位影像30‧‧‧Digital imagery

31‧‧‧區域影像31‧‧‧Area image

40‧‧‧數位影像40‧‧‧Digital imagery

41‧‧‧區域影像41‧‧‧Area image

步驟S100至S110Steps S100 to S110

步驟S200至S206Steps S200 to S206

第一圖係本發明之數位影像的淺景深模擬方法之拍攝裝置之功能方塊圖。The first figure is a functional block diagram of a photographing apparatus for a shallow depth of field simulation method of the digital image of the present invention.

第二圖係本發明之數位影像的淺景深模擬方法之流 程圖。The second figure is a flow of a shallow depth of field simulation method of the digital image of the present invention. Cheng Tu.

第三圖係本發明之數位影像的淺景深模擬方法之拍攝場景示意圖。The third figure is a schematic diagram of a shooting scene of a shallow depth of field simulation method of the digital image of the present invention.

第四圖係本發明之數位影像的淺景深模擬方法之參考數位影像示意圖。The fourth figure is a schematic diagram of a reference digital image of the shallow depth of field simulation method of the digital image of the present invention.

第五圖係本發明之數位影像的淺景深模擬方法之數位影像示意圖。The fifth figure is a schematic diagram of a digital image of a shallow depth of field simulation method of the digital image of the present invention.

第六圖係本發明之數位影像的淺景深模擬方法之數位影像之區域影像示意圖。The sixth figure is a schematic diagram of a regional image of a digital image of a shallow depth of field simulation method of the digital image of the present invention.

第七圖係本發明之數位影像的淺景深模擬方法之區域影像的拍攝焦距分析流程圖。The seventh figure is a flow chart of the focal length analysis of the area image of the shallow depth of field simulation method of the digital image of the present invention.

第八圖係本發明之數位影像的淺景深模擬方法之參考數位影像之區域影像示意圖。The eighth figure is a schematic diagram of the regional image of the reference digital image of the shallow depth of field simulation method of the digital image of the present invention.

第九圖係本發明之數位影像的淺景深模擬方法之區域影像之拍攝焦距分佈示意圖。The ninth figure is a schematic diagram of the focal length distribution of the regional image of the shallow depth of field simulation method of the digital image of the present invention.

步驟S100至S110Steps S100 to S110

Claims (9)

一種數位影像的淺景深模擬方法,包括步驟如下:提供一拍攝裝置,該拍攝裝置對一主體進行對焦;獲得該主體的最佳焦距,並拍攝一數位影像;將該數位影像等比例分成多數個區域影像;分析該些區域影像的拍攝焦距;以及模糊該些區域影像,並依據該些區域影像的拍攝焦距與該最佳焦距的差異來調整其模糊程度。 A shallow depth of field simulation method for digital images, comprising the steps of: providing a photographing device that focuses on a subject; obtaining a best focal length of the subject, and capturing a digital image; dividing the digital image into a plurality of proportions The area image; analyzing the shooting focal length of the image of the area; and blurring the image of the area, and adjusting the degree of blur according to the difference between the shooting focal length of the area image and the optimal focal length. 如申請專利範圍第1項所述數位影像的淺景深模擬方法,其中該『分析該些區域影像的拍攝焦距』的步驟中,更包括步驟如下:該拍攝裝置於對焦過程中拍攝多數張參考數位影像,該些參考數位影像各具有一相對應的拍攝焦距;將該些參考數位影像各分成多數個區域影像;分別分析該些參考數位影像的該些區域影像;以及分別判斷該些區域影像是否位於其對應的該參考數位影像的拍攝焦距。 The shallow depth of field simulation method of the digital image according to the first aspect of the patent application, wherein the step of “analyzing the focal length of the image of the region” further includes the following steps: the camera captures a plurality of reference digits during the focusing process. Image, the reference digital images each have a corresponding shooting focal length; the reference digital images are divided into a plurality of regional images; respectively, the regional images of the reference digital images are separately analyzed; and whether the regional images are separately determined The shooting focal length of the corresponding reference digital image. 如申請專利範圍第2項所述數位影像的淺景深模擬方法,其中該『分析該些區域影像的拍攝焦距』的步驟中,分別依據該些區域影像的清晰程度來判斷該區域影像是否位於其對應的該參考數位影像的拍攝焦距。 The shallow depth of field simulation method of the digital image according to the second aspect of the patent application, wherein in the step of “analyzing the focal length of the image of the area”, determining whether the image of the area is located according to the degree of clarity of the image of the area Corresponding shooting focal length of the reference digital image. 如申請專利範圍第2項所述數位影像的淺景深模擬方法,其中該『分析該些區域影像的拍攝焦距』的步驟中,更包括步驟如下: 依據該些區域影像的拍攝焦距排序該些區域影像。The shallow depth of field simulation method of the digital image described in claim 2, wherein the step of "analyzing the focal length of the image of the region" includes the following steps: The regional images are sorted according to the shooting focal length of the regional images. 如申請專利範圍第2項所述數位影像的淺景深模擬方法,其中該些參考數位影像的解析度較該數位影像的解析度低。A shallow depth of field simulation method for digital images according to claim 2, wherein the resolution of the reference digital images is lower than the resolution of the digital images. 如申請專利範圍第5項所述數位影像的淺景深模擬方法,其中該拍攝裝置具有一儲存模組中,該些參考數位影像儲存至該儲存模組中。The shallow depth of field simulation method of the digital image according to claim 5, wherein the photographing device has a storage module, and the reference digital images are stored in the storage module. 如申請專利範圍第6項所述數位影像的淺景深模擬方法,其中該『模糊該些區域影像』的步驟中,更包括步驟如下:將該些參考數位影像的尺寸放大至與該數位影像的尺寸一致;以及該數位影像的該些區域影像分別與其中一個該參考數位影像的相對應的該區域影像合併,使得該數位影像的該些區域影像變模糊。The shallow depth of field simulation method of the digital image according to claim 6 , wherein the step of “blurring the image of the area” further comprises the steps of: magnifying the size of the reference digital image to the digital image The size of the image of the digital image is merged with the corresponding image of the area of the digital image, so that the image of the area of the digital image is blurred. 如申請專利範圍第1項所述數位影像的淺景深模擬方法,其中該『模糊該些區域影像』的步驟中,使用一高斯模糊法來模糊該數位影像的該些區域影像。A shallow depth of field simulation method for digital images according to claim 1, wherein in the step of "blurring the regional images", a Gaussian blur method is used to blur the regional images of the digital image. 如申請專利範圍第8項所述數位影像的淺景深模擬方法,其中該『模糊該些區域影像』的步驟中,改變該高斯模糊法的高斯半徑來調整該些區域影像的模糊程度。For example, in the shallow depth of field simulation method of the digital image according to Item 8 of the patent application, in the step of “blurring the image of the area”, the Gaussian radius of the Gaussian blur method is changed to adjust the blur degree of the image of the area.
TW97148375A 2008-12-12 2008-12-12 Method for stimulating the depth of field of an image TWI390965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97148375A TWI390965B (en) 2008-12-12 2008-12-12 Method for stimulating the depth of field of an image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97148375A TWI390965B (en) 2008-12-12 2008-12-12 Method for stimulating the depth of field of an image

Publications (2)

Publication Number Publication Date
TW201023627A TW201023627A (en) 2010-06-16
TWI390965B true TWI390965B (en) 2013-03-21

Family

ID=44833476

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97148375A TWI390965B (en) 2008-12-12 2008-12-12 Method for stimulating the depth of field of an image

Country Status (1)

Country Link
TW (1) TWI390965B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI465108B (en) * 2010-12-16 2014-12-11 Benq Corp Image capturing apparatus and image processing method
CN103945210B (en) * 2014-05-09 2015-08-05 长江水利委员会长江科学院 A kind of multi-cam image pickup method realizing shallow Deep Canvas

Also Published As

Publication number Publication date
TW201023627A (en) 2010-06-16

Similar Documents

Publication Publication Date Title
US9325899B1 (en) Image capturing device and digital zooming method thereof
TWI602152B (en) Image capturing device nd image processing method thereof
JP4497211B2 (en) Imaging apparatus, imaging method, and program
US9495751B2 (en) Processing multi-aperture image data
US10827107B2 (en) Photographing method for terminal and terminal
WO2019085603A1 (en) Method for image-processing and mobile terminal using dual cameras
CN106550184B (en) Photo processing method and device
CN101764925B (en) Simulation method for shallow field depth of digital image
WO2017045558A1 (en) Depth-of-field adjustment method and apparatus, and terminal
US20110109749A1 (en) Method for activating a function, namely an alteration of sharpness, using a colour digital image
US20130033579A1 (en) Processing multi-aperture image data
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
CN107948520A (en) Image processing method and device
US20120307009A1 (en) Method and apparatus for generating image with shallow depth of field
US11871123B2 (en) High dynamic range image synthesis method and electronic device
JP6624785B2 (en) Image processing method, image processing device, imaging device, program, and storage medium
JP6976754B2 (en) Image processing equipment and image processing methods, imaging equipment, programs
US20230033956A1 (en) Estimating depth based on iris size
TWI390965B (en) Method for stimulating the depth of field of an image
JP2013042375A (en) Image pickup device and distance information acquisition method
JP2007316892A (en) Method, apparatus and program for automatic trimming
TWI605418B (en) Image editing method and apparatus
JP5854801B2 (en) Image processing apparatus, image processing method, and program
CN112235507A (en) Image processing system and method for realizing controllable depth of field in mobile terminal

Legal Events

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