I have no idea how to wrote a gegl based plugin or how call with a script gegl operation
but on the other hand would be only needed a little tweak to a existing operation and the effect is already well tested
(HERE
http://www.flickr.com/groups/gimpusers/ ... search=c2g )
basically the plugin is still hypothetical ,nevertheless already written at more then 90%
the name "Colored c2g" is a oxymoron, may be better names but the effect is worth a try
the plugin should
1 )create a duplicate of the active layer
2) apply the c2g gegl operation on the duplicate
3)
Optional apply a slight blur to the original (most of sensation of sharpness come from
"greyscale" not from the "color component, when merging mode as "color or value are used a slight blur on the layer that will give the color may avoid ugly sharp color transition of isolated pixel, without reducing sharpness in a perceptible way )
4) give a few option to merge down as
Value
Grain Merge
Hybrid (= in the virtual layer stack the original as bg, the c2g layer above in value mode,on top another dup of the original in soft light mode; in this case "opacity" control is only for the top layer opacity the other are left to 100 )
with control on opacity
If gegl plugin are nodes the idea may be used to explain how use the nodes, or at least how call gegl operation from script
and i am sure that the effect is interesting often similar to hdr/tonemapping but less unnatural (and less obvious)