Image:Faux-bokeh-final.png

From Wikipedia, the free encyclopedia

Faux-bokeh-final.png (137KB, MIME type: image/png)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.

This started as Image:Faux-bokeh-original.png. I cranked up the gamma. (This darkens the low and mid tones leaving the bright spots bright and is necessary to get the bright spots to blur into circles rather than just bluring the entire image.) I loaded that image into ImageJ and convolved it with a 41-pixel–diameter round convolution kernel, which I made with this Python script:

#!/usr/bin/python
import math

size = 41
mid = size/2
for x in range(0,size):
  for y in range(0, size):
    dist = math.sqrt(pow(x-mid,2)+pow(y-mid,2))
    if dist < mid-0.5:
      print 1,
    elif dist > mid+0.5:
      print 0,
    else:
      print dist-(mid-0.5),
  print ""

I saved the convolved result, loaded it in The GIMP, reversed the gamma correction so the colors were approximately the same as they were originally. I overlayed the original image and masked off the background of that to let this blured layer show through.

For finishing touches, I added some noise to the blurred layer and blurred that noise with a 2-pixel gaussian blur. I also tweeked the hue and saturation, but the bokeh appearance was entirely a result of the circular convolution of the high-gamma image. —Ben FrantzDale 16:52, 25 June 2006 (UTC)

[edit] Summary

An example picture for Wikipedia:Talk:Gaussian blur, a faux bokeh created in post-processing, from the original Image:Faux-bokeh-original.png

[edit] Licensing

I, the author of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

العربية | Česky | Deutsch | English | Español | Français | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Slovenčina | Svenska | עברית +/-

Some rights reserved
Creative Commons Attribution iconCreative Commons Share Alike icon
This file is licensed under the Creative Commons Attribution ShareAlike license versions 2.5, 2.0, and 1.0
You may select the license of your choice.

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):