You are here

Simple surface blur/bilateral filter.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

A surface blur filter based on a simplified version Porikli's O(1) bilateral filter.

Unfortunately due to the nature of the algorithm memory overheads can be severe. This filter uses a tile based implementation, which limits overheads to about 64mb.

On the plus side it is reasonably fast and scales well with filter radius.

When installed it should appear under filters->blur->simple bilateral

There is a mercurial repository which will be kept up to date with the latest code on my web site. This can be accessed with:

hg clone

A windows binary is now available, courtesy of François_C.


8 March 2010: Added readme file, authors.txt and build time config options.

simple-bilateral_win32.zip17.12 KB
bilateral.tar.gz265.39 KB
GIMP Version: 
Code License: 


Hey I'm kinda new to gimp so I'm having an issue with the install of this plug-in.
It's saying, "This application has failed to start because libgimp-2.0.0.dll was not found....."
Maybe I'm missing the boat on a simple work around, but what do I do here?
I'm using GIMP 2.6.11 on WinXP SP2
tx Sonny

Usually that error come to click on the plugin exe as it was a installer
(in Windows many "exe" are installers so confusion is possible)

Anyway to install a "exe" plugin in windows you have not to click on it but move in a plugin folder (there are a few exceptions but so rare to be not too relevant )


EDIT 2011 07 27
2 274 424 bytes

I am trying to run this bilateral filter in gimp batch mode but can't get it to work.
I suspect the plugin is not correctly registered with PDB because I can't find it in the procedure browser. Does anyone know how I can get this working?

(define (batch-simple-bilateral pattern size threshold)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
filename filename)))
(drawable (car (gimp-image-get-active-layer image))))
(plug-in-simple-bilateral RUN-NONINTERACTIVE
image drawable size threshold)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))

Note: Seems that in the PDB is appears as gimp-plugin-template.

In the main.c code:

if (n_params != 8)

Why 8 parameters?
Isn't it 5 parameters? (RUN-NONINTERACTIVE, image, drawable, size and threshold)

I love this effect. it's a very nice. Thank you.

How about a preview area?

I have no objections to adding one, but I need to find out how first. This is my first attempt at a gimp plugin.

And by the way, how about a more descriptive name? "Simple bilateral" is rather for math savvy users.

But pretty please fill in AUTHORS file and README :)

Although part of me was saying "If it was hard to write it should be hard to use!" :)


Subscribe to Comments for "Simple surface blur/bilateral filter."