It is currently Thu Mar 28, 2024 5:36 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 12:00 am  (#1) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
The Sponge filter in G'MIC can do a similar effect that the focus blur plug-in can do. Unfortunately, the focus blur plug-in is so old that it would take a great deal of work to compile it for GIMP v2.8x, and then it may not work anyway.

There is an example image of the focus blur plug-in on this web page.
http://www.gimpinfo.org/addons/plugin/focus_blur/

I'm hoping that some of you G'MIC filter creators can work on a filter or even upgrade the Sponge filter. It would be nice to have slightly varying sizes of the small bokehs. The sponge filter as it is gives very pretty results. G'MIC > Patterns > Sponge

This snow scene was done by selecting the horse, carriage and church, inverting the selection, and running the filter on it. The original image is here.
Image

The filter was run on these Christmas trees without any selections made. The original image is here.
Image

Some adjustment of the size slider was done. Channels were left at the default All.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 12:15 am  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
One more. Saw this picture and had to try the filter on it. Original image here.
Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 1:57 am  (#3) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I have the focus blur plugin in my 2.8.2 and it seems to function OK but I do not know what settings were used to achieve the bokeh effect behind the girl as per image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 2:19 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
O : Very cool results indeed.
I don't know yet how I could reproduce the bokeh effect more precisely, but this is something interesting to investigate.


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 5:54 am  (#5) 
Offline
GimpChat Member

Joined: Feb 01, 2013
Posts: 24
Location: London, UK
Oregonian , "fblur-2.3" 32-bit plugin still works for me on Win64 with GIMP 2.8.2 although its brushes option is disabled, I used Michael Schumacher's build from 2006 from here http://schumaml.gmxhome.de/downloads/gimp/fblur-2.3.zip
(only use a host that you trust)

I've found two existing depth-of-field blurs implemented in G'MIC (refresh filters if they are not listed):
Testing / Garagecoder / Depth Blur
and
Degradations / DOF manipulation (by Tom Keil)

I prefer Garagecoder's depth-estimation, but I like Tom's "Bokeh" (equivalent to the 'shine' option in Kyoichiro Suda's 2002 fblur).

Offtopic :
Alternatively create an out of focus layer with
Testing / Gentlemanbeggar / Lens Blur
and then erase areas of that to reveal sharp focus underneath.

_________________
-- jayprich


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 9:14 am  (#6) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
jayprich wrote:
Oregonian , "fblur-2.3" 32-bit plugin still works for me on Win64 with GIMP 2.8.2 although its brushes option is disabled, I used Michael Schumacher's build from 2006 from here http://schumaml.gmxhome.de/downloads/gimp/fblur-2.3.zip
(only use a host that you trust)

I've found two existing depth-of-field blurs implemented in G'MIC (refresh filters if they are not listed):
Testing / Garagecoder / Depth Blur
and
Degradations / DOF manipulation (by Tom Keil)
The version for Linux doesn't compile. I have been in correspondence with GnuTux. The Linux file is outdated (2010) and looks like there are about 10 files to edit. http://registry.gimp.org/node/1444

I don't think the plug-in is worth all that bother when the Sponge filter does such a nice job and I think it looks as good if not better than the results from focus blur.

I will definitely look into those filters by Tom Keil and Garagecoder.

Thank you so much for your input.

Hopefully something can get going here. It would really be nice if the resulting bokehs can be sized larger and/or varying in size.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 9:25 am  (#7) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I'm attaching the updated source files needed to allow compilation under the latest Fedora releases (as well as other Linux distros).

Just extract the files in the attached .zip into the focusblur-3.2.6/src folder, overwriting the existing files.

From the focusblur-3.2.6 folder, as standard user...

1) ./configure LIBS=-lm
2) make

From the focusblur-3.2.6 folder, as root (su -)..

3) make install

Tested with GIMP 2.8.4 - Under Filters/Blur, this plug-in adds: Focus Blur.

Attached Focus Blur Plug-in Linux 64 bit (compiled with Fedora 21_x64).


Attachments:
File comment: Focus Blur Plug-in V3.2.6 Linux 64bit Binary
focusblur3.2.6_Linux_x64.zip [125.83 KiB]
Downloaded 126 times
File comment: Patched Source for: focusblur-3.2.6
focus_blur_fix.zip [16.73 KiB]
Downloaded 116 times

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill
Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 10:13 am  (#8) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Thank you GnuTux. That worked. That was a lot of files (18 of them) to fix. Nice job! :hehe

I'm wondering if they put in the bokehs before running the blur-focus filter. I can't seem to get it to make them.

I am more impressed with G'MIC's results.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 10:51 am  (#9) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
I was able to get a similar effect by tweaking the basic & shine options in the Focus Blur plug-in.

Image

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 10:57 am  (#10) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
That looks really good, GnuTux. I tried tweaking quite a few things. I will have to work on basic and shine.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 11:34 am  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Nice job Tux

_________________
Image


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 11:52 am  (#12) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
I'm also open to suggestions on that depth blur filter! In fact the pictures posted by Oregonian make me think I could add an option to select blur type, maybe dilate for example? Anyway, nice stuff :coolthup

PS anyone else finding the forum veeeeery slow at the moment?


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 12:23 pm  (#13) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
garagecoder wrote:
I'm also open to suggestions on that depth blur filter! In fact the pictures posted by Oregonian make me think I could add an option to select blur type, maybe dilate for example? Anyway, nice stuff :coolthup

PS anyone else finding the forum veeeeery slow at the moment?
That sounds like a very good idea, garagecoder. Thanks for your input. I'm anxious to see what you can come up with.

The slowness has occurred off and on for me, too.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 1:09 pm  (#14) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Slow here too Garagecoder

_________________
Image


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 1:23 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
I do hope that a variable bokeh size can be done! That would make it 100% better! maybe sliders for random sizes and random transparencies???


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Tue Apr 23, 2013 1:56 pm  (#16) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
2-ton wrote:
I do hope that a variable bokeh size can be done! That would make it 100% better! maybe sliders for random sizes and random transparencies???
Good ideas 2-ton. I can almost see myself moving those sliders. :yes

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Wed Apr 24, 2013 4:02 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Well, I had a try this morning to create a bokeh filter in G'MIC.
You need G'MIC 1.5.5.1+, and to refresh your filters. A new filter 'Bokeh' should be present in the 'Artistic/' folder.
Image

Let me know if you find it useful, or if I can improve it :)

A quick example of what we can obtain with this filter :

Image


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Wed Apr 24, 2013 5:11 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12513
Cool stuff David; just toyed with it some (result not worth sharing; lol) and I do see some potential for certain types of photo-editing effects. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Wed Apr 24, 2013 11:27 am  (#19) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
That was fast, David. I've been playing with the filter a lot. I think I may have some suggestions but need to put it through all its paces before I suggest. Sizing and Density work well. I did have a bit of trouble with the density setting. It went from .05 to .00 and the difference was somewhat extreme. I finally highlighted the density setting and the setting in this image is 0.04.

Anyway, the filter is totally scrumpdillyicious. Thank you so much for your time and effort. :yes

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Small Bokehs with G'MIC
PostPosted: Thu May 09, 2013 7:08 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 09, 2013
Posts: 53
Thanks for the sponge hint! BTW the champagne picture looks great!
I'd like to test the Bokeh filter but cannot update the filters in Gimp?


Top
Post new topic Reply to topic  [ 36 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) HELP!!! Keep Project Size Small

1

No new posts Attachment(s) menus and dropdowns too small

15

No new posts Attachment(s) Erase Rows.scm with a small modification

8

No new posts Attachment(s) Playing with masks and other small effects

11

No new posts Attachment(s) Small Tiles - Big Preview for Gimp-2.10.20

0



* Login  



Powered by phpBB3 © phpBB Group