Method for generating image bokeh effect and image capturing device

US9342875B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9342875-B2
Application numberUS-201414552485-A
CountryUS
Kind codeB2
Filing dateNov 25, 2014
Priority dateSep 25, 2014
Publication dateMay 17, 2016
Grant dateMay 17, 2016

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

An image capturing device and a method for generating a bokeh effect are provided. The method includes the following steps. An image including a current input pixel is captured. Next, blurring processes are performed on the image by using a first image blur filter and a second image blur filter so as to generate a plurality of first blur images and second blur images corresponding to different blur levels. A distance between the current input pixel and a focal plane is calculated to obtain a current distance. A first current blur image and a second current blur image are respectively selected from the first blur images and the second blur images according to the current distance. Next, a first current blur pixel of the first current blur image and a second current blur pixel of the second current blur image are combined to generate a current output pixel.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for generating a bokeh effect, adapted to an image capturing device, comprising: capturing an image, wherein the image comprises a current input pixel; performing a plurality of blurring processes on the image by using a first image blur filter and a second image blur filter to generate a plurality of first blur images and a plurality of second blur images corresponding to different blur levels; calculating a distance between the current input pixel and a focal plane to obtain a current distance; selecting a first current blur image and a second current blur image respectively from the first blur images and the second blur images according to the current distance; and combining a first current blur pixel of the first current blur image and a second current blur pixel of the second current blur image according to the current distance to generate a current output pixel corresponding to the current input pixel, comprising: setting a first combining weight of the first current blur pixel and a second combining weight of the second current blur pixel according to the current distance; and combining the first current blur pixel of the first current blur image and the second current blur pixel of the second current blur image according to the first combining weight and the second combining weight to generate the current output pixel, wherein each of the first current blur pixel and the second current blur pixel has a same pixel coordinate as the current input pixel. 2. The method according to claim 1 , wherein the step of performing the blurring processes on the image respectively by the first image blur filter and the second image blur filter to generate the first blur images and the second blur images corresponding to the blur levels comprises: setting a blur radius corresponding to each of the blur levels according to a predetermined maximum blur radius, wherein each of the blur radiuses is not greater than the predetermined maximum blur radius; and performing the blurring processes on the image with each of the blur radiuses by using the first image blur filter and the second image blur filter to generate the first blur images and the second blur images corresponding to each of the blur radiuses. 3. The method according to claim 1 , wherein the step of selecting the first current blur image and the second current blur image respectively from the first blur images and the second blur images according to the current distance comprises: selecting the first current blur image and the second current blur image both corresponding to the current distance respectively from the first blur images and the second blur images, wherein the current distance is proportional to both of the blur level of the first current blur image and the blur level of the second current blur image. 4. The method according to claim 1 , wherein the first image blur filter is a circular blur filter, and the second image blur filter is a Gaussian blur filter. 5. The method according to claim 4 , wherein the first image blur filter performs the blurring processes on the image by leveraging a summed-area table algorithm to generate the first blur images. 6. The method according to claim 4 , wherein the first combining weight is inversely proportional to the current distance. 7. The method according to claim 6 , wherein the step of combining the first current blur pixel of the first current blur image and the second current blur pixel of the second current blur image according to the current distance to generate the current output pixel corresponding to the current input pixel comprises: determining whether a current position of the current input pixel is ahead of or behind the focal plane; when the current position is ahead of the focal plane, adding the first current blur pixel and the second current blur pixel with the first combining weight and the second combining weight to generate the current output pixel, wherein a summation of the first combining weight and the second combining weight is 1; and when the current position is behind the focal plane, subtracting the second current blur pixel from the first current blur pixel with the first combining weight and the second combining weight to generate the current output pixel, wherein a difference of the first combining weight and the second combining weight is 1. 8. An image capturing device comprising: at least one lens; a memory; and at least one processor, coupled to the lens and the memory, and configured for: capturing an image by using the lens, wherein the image comprises a current input pixel; performing a plurality of blurring processes on the image by using a first image blur filter and a second image blur filter to generate a plurality of first blur images and a plurality of second blur images corresponding to different blur levels; calculating a distance between the current input pixel and a focal plane to obtain a current distance; selecting a first current blur image and a second current blur image respectively from the first blur images and the second blur images according to the current distance; and combining a first current blur pixel of the first current blur image and a second current blur pixel of the second current blur image according to the current distance to generate a current output pixel corresponding to the current input pixel by setting a first combining weight of the first current blur pixel and a second combining weight of the second current blur pixel according to the current distance and by combining the first current blur pixel of the first current blur image and the second current blur pixel of the second current blur image according to the first combining weight and the second combining weight to generate the current output pixel, wherein each of the first current blur pixel and the second current blur pixel has a same pixel coordinate as the current input pixel. 9. The image capturing device according to claim 8 , wherein the processor sets a blur radius corresponding to each of the blur levels according to a predetermined maximum blur radius, and performs the blurring processes on the image with each of the blur radiuses by using the first image blur filter and the second image blur filter to generate the first blur images and the second blur images corresponding to each of the blur radiuses, wherein each of the blur radiuses is not greater than the predetermined maximum blur radius. 10. The image capturing device according to claim 8 , wherein the processor selects the first current blur image and the second current blur image both corresponding to the current distance respectively from the first blur images and the second blur images, wherein the current distance is proportional to both of the blur level of the first current blur image and the blur level of the second current blur image. 11. The image capturing device according to claim 8 , wherein the first image blur filter is a circular blur filter, and the second image blur filter is a Gaussian blur filter. 12. The image capturing device according to claim 11 , wherein the first image blur filter performs the blurring processes on the image by leveraging a summed-area table algorithm to generate the first blur images. 13. The image capturing device according to claim 11 , wherein the first combining weight is inversely proportional to the current distance. 14. The image capturing device according to claim 13 , wherein the processor determines whether a current position of the current input pixel is ahead of or behind the focal plane, wherein when the current position is ahead of

Assignees

Inventors

Classifications

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9342875B2 cover?
An image capturing device and a method for generating a bokeh effect are provided. The method includes the following steps. An image including a current input pixel is captured. Next, blurring processes are performed on the image by using a first image blur filter and a second image blur filter so as to generate a plurality of first blur images and second blur images corresponding to different …
Who is the assignee on this patent?
Altek Semiconductor Corp
What technology area does this patent fall under?
Primary CPC classification G06T5/50. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 17 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).