1. Field of the Invention
The present invention relates to image blurring, and in particular, to a system and method for creating blur in an image to reduce the depth of field of the image.
2. Description of the Related Art
In digital cameras, the depth of field (hereinafter “DOF”) is typically much greater than for cameras which use film due to the image sensor being somewhat smaller than in a 35 mm film negative. This means that portrait images captured with digital cameras, in particular, will tend to have the background in sharp focus, which is often not desirable as a photographer may wish to emphasize a person's face and de-emphasize the background of the picture. This problem may be corrected by careful photography combined with careful use of camera settings.
Alternatively, portrait images may be blurred semi-manually by professional photographers using desktop computer image processing software after an image has been captured. This involves manual intervention and is often time-consuming. Nonetheless, such conventional blurring software may apply various techniques using convolution kernels to create blurring effects, as illustrated in
Generically, convolution can be expressed according to the equation below:
B=I*g
where B is the blurred image, I is the original image and g is the convolution kernel. Convolution blur may be applied on a pixel-by-pixel basis. So, for a particular pixel with coordinates (x,y), the convolution with a kernel of size (M×N) can be written as:
The size and shape of the kernel influence the blurring result. The size determines the strength of the blur and therefore the perceived depth of the object. The shape determines the visual aspect of the blur and is related to what is called “circle of confusion”.
A circular kernel of a diameter D has the following analytical form
and a geometrical shape of a cylinder or “pillbox”, as is illustrated in
A method is provided for creating blur in an image acquired with a digital camera for printing or electronic display or both. A first image of a scene is acquired at a first exposure level, and a second image of nominally the same scene is acquired at a second exposure level. At least one region of the second image includes one or more pixels having saturated intensity values. For at least one of said saturated pixels, one or more values are extrapolated from the first image. A third image is generated including pixels of the second image having non-saturated values, and pixels having the one or more extrapolated values. At least a portion of the third image is blurred and re-scaled.
The first image may be acquired without a flash and the second image may be acquired with a flash exposure level.
A value may be extrapolated for a saturated pixel by calculating at least one ratio of an intensity of a pixel in said first image to an intensity of at least one non-saturated pixel, and providing the extrapolated value for a selected pixel in accordance with the intensity ratio. A non-saturated pixel may include a pixel in the first image which corresponds to a pixel in the second image which has not undergone saturation clipping.
One or more portions of said third image may be determined to correspond to foreground of the image, and portions may be determined which correspond to background of the image. The background portions may be blurred.
Regions of said first and second images may be aligned at least in respect of the at least one portion. The first image may be a relatively low resolution image and the second image may be a higher resolution image, and the resolutions of the first and second images may be matched. The resolution the resolution of the second image may be downsampled to the resolution of said first image, or the the resolution of the first image may be upsampled to the resolution of the second image, or a combination thereof
The blurring of the third image may be performed by applying a convolution kernel to the at least one portion. The kernel may be a circular kernel.
The third image may include a copy of the second image modified by replacing the saturated intensity values with the extrapolated values.
The third image may include the second image modified by replacing the saturated intensity values with the extrapolated values.
The re-scaling may include scaling the blurred portion of the third image to a range associated with the second image.
A further method is provided for generating a digital image. At least two images are acquired, including a full resolution image having one or more pixels with a saturated intensity value. One or more intensity ratios are determined from unsaturated pixels of another of the at least two acquired images. The full resolution image is modified including restoring the one or more intensity ratios determined from the unsaturated pixels of the other acquired image. A portion of the modified image is blurred, and the modified image is stored, displayed or printed, or combinations thereof.
The modifying may include adding intensity to the one or more saturated pixels, or subtracting intensity from one or more unsaturated pixels, or a combination thereof.
The blurring may include determining one or more portions of the modified image which correspond to foreground of the image and portions which correspond to background of the image, and blurring the background portions. The blurred portion of the modified image may be resealed.
One or more processor readable storage devices are also provided with processor readable code embodied thereon for programming one or more processors to perform a method of creating blur in a digital image as disclosed herein.
A digital image processing device is also provided which is operable to blur an acquired image, and includes a controller and the one or more processor readable storage devices.
Preferred and alternative embodiments will now be described, by way of example, with reference to the accompanying drawings, in which:
a-2b depict conventional image blurring using a circular convolution kernel;
a-4c depict graphical representations of corresponding portions of a low-resolution or full resolution non-flash image and/or a preview image, a full resolution flash image or an image captured under another high light intensity exposure condition, and a high dynamic range (HDR) image derived therefrom according to another embodiment; and
Techniques and components for obtaining a more realistic blur in a digitally-acquired image similar to the low DOF blur generated by a conventional film camera are provided.
The low contrast and sharpness associated with conventional blurring techniques are mitigated or reduced or eliminated in accordance with embodiments described herein. Furthermore, lens effects of circle of confusion are emulated, as described in more detail below.
As illustrated in
Referring now to
The preview image may be utilized for various tasks such as auto-focus, white balance or to estimate exposure parameters. Preferably, the preview image is stored in a memory of the camera for use with other processing techniques. Alternatively the preview image may be stored in any suitable memory device, or may be only temporarily used or stored in the camera.
The remainder of the blocks in the flow process illustrated at
Intensity levels of the portion of the row of pixels of the full resolution image, that may have been taken with a flash or under another high light exposure condition, are graphically represented at
As a preview image in the example illustrated at
In continuing with the description of the process of
The preview and full resolution images are then aligned at 130, using image registration techniques, to compensate for any slight movement in the scene or camera between taking these images. Alignment may be performed globally across entire images or locally using various techniques, e.g., as may be described in co-pending U.S. patent application Ser. No. 11/217,788 filed Aug. 30, 2005 (Case Ref: FN122), which is assigned to the same assignee, incorporated by reference, and not otherwise further expressly described herein. Again, if the images are already fully aligned, then the alignment at 130 would involve no modifications.
Utilizing intensity information derived from the preview image, a high dynamic range (HDR) image is constructed at 140 from the full resolution image. The HDR image incorporates an estimate of the information (bright areas) eliminated from the flash image by saturation clipping. The dashed rectangles above each of the intensity level bar representations from each of the five pixels in
In one embodiment, the HDR image is achieved by determining an intensity ratio between two or more neighbouring pixels in the preview image, one of which will be clipped in the flash image; and the intensity values of one or more non-saturated pixels in the flash image. It will however be appreciated that the intensity ratio for each saturated pixel may be determined with respect to one or more non-neighbouring comparison pixels. Using this ratio information, the intensity of each of the clipped pixels of the flash image is extrapolated in proportion to the intensity ratio derived from the corresponding preview image pixel(s).
For example, the ratio of the intensity of a first pixel of a preview image to the intensity of a neighbouring pixel of the preview image is determined. In the case where the first pixel's corresponding pixel in the flash image has been saturation clipped, the intensity of the clipped pixel is increased in accordance with the ratio information in order to restore the pixel to its original intensity ratio with respect to its neighbouring or comparison pixels. This process may be carried out for all saturated pixels to produce a HDR image. All of the pixels may be increased in intensity or decreased in intensity or a combination of increase and decrease, depending on other processes that may be in use such as selected fill-flash (see U.S. application Ser. No. 10/608,810, incorporated by reference). The ratios may be adjusted precisely to preview image ratios, or otherwise as illustrated in
While this illustrative embodiment has been described in terms of providing a separate HDR image from the images 100, 110, another embodiment would provide for adjusting the values of the flash image 110 and using this adjusted image according to the below. In one embodiment, as disclosed in U.S. application Ser. No. 11/217,788 filed Aug. 30, 2005 , the HDR image may undergo a digital segmentation process 135 to determine foreground and/or background within at least one portion of the image. In one exemplary implementation, the HDR image is compared to a preview non-flash image 100 of nominally the same scene. Overall light distribution may vary between the two images, because one image or subset of images will be illuminated only with available ambient light while another is illuminated with direct flash light, thereby enabling the HDR image to be separated into foreground and background. As an alternative to using the HDR image, the full resolution and/or flash image 110 can be compared with a preview image 100 to perform foreground/background segmentation which could in turn be applied for use in processing the HDR image; or alternatively a flash and a non-flash preview image or one each full-resolution images could be used for foreground/background segmentation again for use in processing a HDR image, as could two flash or two non-flash images when captured at different exposure levels such that advantages illustrated at
Alternatively, foreground and background regions of a HDR image may be separated at 135 (
In one embodiment, as depicted in
Other suitably shaped kernels may be utilized. The range of the blurred image produced in step 150 of
It will be seen that many variations of the above embodiments are possible. For example, image processing software described in
While an exemplary drawings and specific embodiments of the present invention have been described and illustrated, it is to be understood that that the scope of the present invention is not to be limited to the particular embodiments discussed. Thus, the embodiments shall be regarded as illustrative rather than restrictive, and it should be understood that variations may be made in those embodiments by workers skilled in the arts without departing from the scope of the present invention as set forth in the claims that follow and their structural and functional equivalents.
In addition, in methods that may be performed according to the claims below and/or preferred embodiments herein, the operations have been described in selected typographical sequences. However, the sequences have been selected and so ordered for typographical convenience and are not intended to imply any particular order for performing the operations, unless a particular ordering is expressly provided or understood by those skilled in the art as being necessary.
In addition, that which is described as background, the invention summary, the abstract, the brief description of the drawings and the drawings themselves, as well as all references cited above herein, and U.S. published applications nos. 2005/0068448 and 2006/0098237, and U.S. provisional application 60/746,363, which are assigned to the same assignee, are hereby incorporated by reference into the detailed description of the preferred embodiments as providing alternative embodiments.
This application is a divisional of U.S. patent application Ser. No. 11/673,560, filed Feb. 10, 2007, now U.S. Pat. 7,469,071, which claims the benefit of priority to U.S. provisional patent application No. 60/773,714, filed Feb. 14, 2006, which are hereby incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
4683496 | Tom | Jul 1987 | A |
5046118 | Ajewole et al. | Sep 1991 | A |
5063448 | Jaffray et al. | Nov 1991 | A |
5086314 | Aoki et al. | Feb 1992 | A |
5109425 | Lawton | Apr 1992 | A |
5130935 | Takiguchi | Jul 1992 | A |
5164993 | Capozzi et al. | Nov 1992 | A |
5329379 | Rodriguez et al. | Jul 1994 | A |
5500685 | Kokaram | Mar 1996 | A |
5504846 | Fisher | Apr 1996 | A |
5534924 | Florant | Jul 1996 | A |
5594816 | Kaplan et al. | Jan 1997 | A |
5621868 | Mizutani et al. | Apr 1997 | A |
5724456 | Boyack et al. | Mar 1998 | A |
5812787 | Astle | Sep 1998 | A |
5844627 | May et al. | Dec 1998 | A |
5878152 | Sussman | Mar 1999 | A |
5880737 | Griffin et al. | Mar 1999 | A |
5949914 | Yuen | Sep 1999 | A |
5990904 | Griffin | Nov 1999 | A |
6005959 | Mohan et al. | Dec 1999 | A |
6008820 | Chauvin et al. | Dec 1999 | A |
6018590 | Gaborski | Jan 2000 | A |
6061476 | Nichani | May 2000 | A |
6069635 | Suzuoki et al. | May 2000 | A |
6069982 | Reuman | May 2000 | A |
6122408 | Fang et al. | Sep 2000 | A |
6198505 | Turner et al. | Mar 2001 | B1 |
6240217 | Ercan et al. | May 2001 | B1 |
6243070 | Hill et al. | Jun 2001 | B1 |
6292194 | Powell, III | Sep 2001 | B1 |
6326964 | Snyder et al. | Dec 2001 | B1 |
6407777 | DeLuca | Jun 2002 | B1 |
6483521 | Takahashi et al. | Nov 2002 | B1 |
6526161 | Yan | Feb 2003 | B1 |
6535632 | Park et al. | Mar 2003 | B1 |
6538656 | Cheung et al. | Mar 2003 | B1 |
6577762 | Seeger et al. | Jun 2003 | B1 |
6577821 | Malloy Desormeaux | Jun 2003 | B2 |
6593925 | Hakura et al. | Jul 2003 | B1 |
6631206 | Cheng et al. | Oct 2003 | B1 |
6670963 | Osberger | Dec 2003 | B2 |
6678413 | Liang et al. | Jan 2004 | B1 |
6683992 | Takahashi et al. | Jan 2004 | B2 |
6744471 | Kakinuma et al. | Jun 2004 | B1 |
6756993 | Popescu et al. | Jun 2004 | B2 |
6781598 | Yamamoto et al. | Aug 2004 | B1 |
6803954 | Hong et al. | Oct 2004 | B1 |
6804408 | Gallagher et al. | Oct 2004 | B1 |
6836273 | Kadono | Dec 2004 | B1 |
6842196 | Swift et al. | Jan 2005 | B1 |
6850236 | Deering | Feb 2005 | B2 |
6930718 | Parulski et al. | Aug 2005 | B2 |
6952225 | Hyodo et al. | Oct 2005 | B1 |
6956573 | Bergen et al. | Oct 2005 | B1 |
6987535 | Matsugu et al. | Jan 2006 | B1 |
6989859 | Parulski | Jan 2006 | B2 |
6990252 | Shekter | Jan 2006 | B2 |
7013025 | Hiramatsu | Mar 2006 | B2 |
7035477 | Cheatle | Apr 2006 | B2 |
7042505 | DeLuca | May 2006 | B1 |
7054478 | Harman | May 2006 | B2 |
7064810 | Anderson et al. | Jun 2006 | B2 |
7081892 | Alkouh | Jul 2006 | B2 |
7102638 | Raskar et al. | Sep 2006 | B2 |
7103227 | Raskar et al. | Sep 2006 | B2 |
7103357 | Kirani et al. | Sep 2006 | B2 |
7149974 | Girgensohn et al. | Dec 2006 | B2 |
7206449 | Raskar et al. | Apr 2007 | B2 |
7218792 | Raskar et al. | May 2007 | B2 |
7295720 | Raskar | Nov 2007 | B2 |
7317843 | Sun et al. | Jan 2008 | B2 |
7359562 | Raskar et al. | Apr 2008 | B2 |
7394489 | Yagi | Jul 2008 | B2 |
7469071 | Drimbarean et al. | Dec 2008 | B2 |
20010000710 | Queiroz et al. | May 2001 | A1 |
20010012063 | Maeda | Aug 2001 | A1 |
20020028014 | Ono | Mar 2002 | A1 |
20020080261 | Kitamura et al. | Jun 2002 | A1 |
20020093670 | Luo et al. | Jul 2002 | A1 |
20020191860 | Cheatle | Dec 2002 | A1 |
20030038798 | Besl et al. | Feb 2003 | A1 |
20030052991 | Stavely et al. | Mar 2003 | A1 |
20030091225 | Chen | May 2003 | A1 |
20030103159 | Nonaka | Jun 2003 | A1 |
20030169944 | Dowski et al. | Sep 2003 | A1 |
20030184671 | Robins et al. | Oct 2003 | A1 |
20040047513 | Kondo et al. | Mar 2004 | A1 |
20040145659 | Someya et al. | Jul 2004 | A1 |
20040201753 | Kondo et al. | Oct 2004 | A1 |
20040208385 | Jiang | Oct 2004 | A1 |
20040223063 | DeLuca et al. | Nov 2004 | A1 |
20050017968 | Wurmlin et al. | Jan 2005 | A1 |
20050031224 | Prilutsky et al. | Feb 2005 | A1 |
20050041121 | Steinberg et al. | Feb 2005 | A1 |
20050058322 | Farmer et al. | Mar 2005 | A1 |
20050140801 | Prilutsky et al. | Jun 2005 | A1 |
20050213849 | Kreang-Arekul et al. | Sep 2005 | A1 |
20050243176 | Wu et al. | Nov 2005 | A1 |
20050271289 | Rastogi | Dec 2005 | A1 |
20060008171 | Petschnigg et al. | Jan 2006 | A1 |
20060039690 | Steinberg et al. | Feb 2006 | A1 |
20060104508 | Daly et al. | May 2006 | A1 |
20060153471 | Lim et al. | Jul 2006 | A1 |
20060181549 | Alkouh | Aug 2006 | A1 |
20060193509 | Criminisi et al. | Aug 2006 | A1 |
20070237355 | Song et al. | Oct 2007 | A1 |
Number | Date | Country |
---|---|---|
1367538 | Dec 2003 | EP |
2281879 | Nov 1990 | JP |
4127675 | Apr 1992 | JP |
6014193 | Jan 1994 | JP |
8223569 | Aug 1996 | JP |
10285611 | Oct 1998 | JP |
20102040 | Apr 2000 | JP |
20299789 | Oct 2000 | JP |
21101426 | Apr 2001 | JP |
21223903 | Aug 2001 | JP |
22112095 | Apr 2002 | JP |
23281526 | Oct 2003 | JP |
24064454 | Feb 2004 | JP |
24166221 | Jun 2004 | JP |
24185183 | Jul 2004 | JP |
26024206 | Jan 2006 | JP |
26080632 | Mar 2006 | JP |
26140594 | Jun 2006 | JP |
WO-9426057 | Nov 1994 | WO |
WO-02052839 | Jul 2002 | WO |
WO-02089046 | Nov 2002 | WO |
WO-2004017493 | Feb 2004 | WO |
WO-2004036378 | Apr 2004 | WO |
WO-2004059574 | Jul 2004 | WO |
WO-2005015896 | Feb 2005 | WO |
WO-2005076217 | Aug 2005 | WO |
WO-2005099423 | Oct 2005 | WO |
WO-2005101309 | Oct 2005 | WO |
WO-2007025578 | Mar 2007 | WO |
WO-2007073781 | Jul 2007 | WO |
WO-2007093199 | Aug 2007 | WO |
WO-2007095477 | Aug 2007 | WO |
Number | Date | Country | |
---|---|---|---|
20090040342 A1 | Feb 2009 | US |
Number | Date | Country | |
---|---|---|---|
60773714 | Feb 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11673560 | Feb 2007 | US |
Child | 12253839 | US |