Fluxid
July 30th, 2007, 09:14 PM
Hi!
I love this plugin, for me it's the most useful plugin in whole Compiz :) But it's completely useless without any filters (fragment programs, pixel shaders), so i wrote some (based on filters i found here: git://anongit.opencompositing.org/users ... lorfilters (git://anongit.opencompositing.org/users/smspillaz/colorfilters) )
I made 22 filters, where about ten are typical filters like "blue only".
Here is the list:
desaturate (average R, G and B channels)[/*:m:dfa75]
hue (shows color spectrum of colors, and black if color is neutral)[/*:m:dfa75]
high/low contrast (i thing higher contrast is more usable)[/*:m:dfa75]
show chrominance/luminance (using YPbPr definition and formula, really good for checking JPEG images quality)[/*:m:dfa75]
full opacity (sets alpha to 1.0, for me it's useless, but it could be good for debuging apps using compositing)[/*:m:dfa75]
show alpha mask (it copies alpha to RGB and sets alpha to 1.0, also could be helpful in debuging)[/*:m:dfa75]
neutrals to alpha (neutral colors, like white, gray, black, are completely transparent, and high-saturation colors are opaque. Propably useless)[/*:m:dfa75]
neutrals to black (all netrals becomes black, including white, and high-saturations stay untouched. Similar to chrominance, but it's not using colorometric definition)[/*:m:dfa75]
neutrals to white (like above)[/*:m:dfa75]
red/green/blue only (other channels set to 0.0)[/*:m:dfa75]
red/green/blue to null (sets to 0.0)[/*:m:dfa75]
red/green/blue to gray (copies to other channels)[/*:m:dfa75]
I'm completely new to OpenGL fragment programs, so there could be some bugs/mistakes. Some filters does not work well with decoration filtering turned on.
Filters files are here (my FTP is down :/ ):
[attachment=0:dfa75]fluxid_filters_20070730.tgz[/attachment:dfa75]
Includes testing image ;)
(grayscale gradient on the left isn't ideal, it shows colorful noise in hue filter)
(i didn't upload previews, it's too many images, and one tgz is too big for this forum...)
Hope you all like it :)
Sorry for any language mistakes
I used those references in programming, it could be helpful for others:
http://www.ultraedit.com/files/wf/OpenGL.txt
http://oss.sgi.com/projects/ogl-sample/ ... rogram.txt (http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt)
http://petewarden.com/notes/archives/20 ... gra_2.html (http://petewarden.com/notes/archives/2005/05/fragment_progra_2.html)
And for making some filters, like chrominance/luminance filter i used those:
http://en.wikipedia.org/wiki/YCbCr
http://www.poynton.com/ColorFAQ.html
I love this plugin, for me it's the most useful plugin in whole Compiz :) But it's completely useless without any filters (fragment programs, pixel shaders), so i wrote some (based on filters i found here: git://anongit.opencompositing.org/users ... lorfilters (git://anongit.opencompositing.org/users/smspillaz/colorfilters) )
I made 22 filters, where about ten are typical filters like "blue only".
Here is the list:
desaturate (average R, G and B channels)[/*:m:dfa75]
hue (shows color spectrum of colors, and black if color is neutral)[/*:m:dfa75]
high/low contrast (i thing higher contrast is more usable)[/*:m:dfa75]
show chrominance/luminance (using YPbPr definition and formula, really good for checking JPEG images quality)[/*:m:dfa75]
full opacity (sets alpha to 1.0, for me it's useless, but it could be good for debuging apps using compositing)[/*:m:dfa75]
show alpha mask (it copies alpha to RGB and sets alpha to 1.0, also could be helpful in debuging)[/*:m:dfa75]
neutrals to alpha (neutral colors, like white, gray, black, are completely transparent, and high-saturation colors are opaque. Propably useless)[/*:m:dfa75]
neutrals to black (all netrals becomes black, including white, and high-saturations stay untouched. Similar to chrominance, but it's not using colorometric definition)[/*:m:dfa75]
neutrals to white (like above)[/*:m:dfa75]
red/green/blue only (other channels set to 0.0)[/*:m:dfa75]
red/green/blue to null (sets to 0.0)[/*:m:dfa75]
red/green/blue to gray (copies to other channels)[/*:m:dfa75]
I'm completely new to OpenGL fragment programs, so there could be some bugs/mistakes. Some filters does not work well with decoration filtering turned on.
Filters files are here (my FTP is down :/ ):
[attachment=0:dfa75]fluxid_filters_20070730.tgz[/attachment:dfa75]
Includes testing image ;)
(grayscale gradient on the left isn't ideal, it shows colorful noise in hue filter)
(i didn't upload previews, it's too many images, and one tgz is too big for this forum...)
Hope you all like it :)
Sorry for any language mistakes
I used those references in programming, it could be helpful for others:
http://www.ultraedit.com/files/wf/OpenGL.txt
http://oss.sgi.com/projects/ogl-sample/ ... rogram.txt (http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt)
http://petewarden.com/notes/archives/20 ... gra_2.html (http://petewarden.com/notes/archives/2005/05/fragment_progra_2.html)
And for making some filters, like chrominance/luminance filter i used those:
http://en.wikipedia.org/wiki/YCbCr
http://www.poynton.com/ColorFAQ.html