Discussions (2,101)

Simulate lens blur (bokeh)

view profile

naoliv says:

Hi!

I was reading en.wikipedia.org/wiki/Bokeh and saw that some programs have an option to simulate bokeh (generally called "lens blur" on such programs).

I couldn't find such option on Gimp 2.4.7 (or maybe I have missed it).
Is it possible to do this with Gimp, please? (using gaussian blur doesn't give the same result)

Thank you!
8:21AM, 15 September 2008 PST (permalink)

view photostream

prokoudine says:

You want Focus Blur

sudakyo.hp.infoseek.co.jp/gimp/fblur/focusblur_e.html
79 months ago (permalink)

view photostream

Matrix Cowboy says:

I do it manually
the example picture also has a texture, but you can see the focus.

I will have to try that script.

I do it this way
I duplicate the image
Call it Main
I then Gaussian blur the background image to my likeing
Add layer mask (black in color, full transparency)
set the foreground color is white
set the background to black
choose gradiant
radius setting
foreground to background
click where you want no blur and drag to where you want full blur
i will then add a layer on top, all black
layer mask, all white
radius setting
foreground to background
click where you want no dark and drag to where you want all black

Voila

cactus1B
79 months ago (permalink)

view photostream

csaveanu says:

Unfortunately, a realistic simulation of bokeh would need more information than what is usually available in an unblurred image. Out of focus regions of a picture have various amounts of "blurinness" as a function of distance to the camera. If that distance is known, I imagine adding blur at various levels can simulate quite well the real bokeh (if I understood well, Focus Blur, indicated by prokoudine, can do that). The problem is somewhat similar with correcting perspective on wide-angle images.
78 months ago (permalink)

Would you like to comment?

Sign up for a free account, or sign in (if you're already a member).