writing GIMP plugin with OpenCV
GIMP is an acronym for GNU Image Manipulation Program. It is a freely distributed program for such tasks as photo retouching, image composition and image authoring.
GIMP is written and developed under X11 on UNIX platforms. But basically the same code also runs on MS Windows and Mac OS X.
More: http://gimp.org/
CODE : http://gimp.org/downloads/
You can find the classic GIMP plugin tutorial in here: How to write a GIMP plug-in