PDA

View Full Version : GIF-like nearest color cartoon denoising ?


Poutnik
6th January 2006, 09:57
I very seldom process cartoons, but recently I had an idea and did not
found related note in forums.

Does exist a filter denoising cartoons by this way ?

Lets suppose original cartoons contain just few colors (8,16,... )
By analyzing of color space it should be obvious
there are few "3D color islands" around original colors.
More noise - larger and flatter islands.
Replacing such islands/color clusters by the only average color should offer
big compressibility boost.
To be on safe side, there can be some threshold to do it on principle colors
only......


I am not programmer, so not sure what is probably speed of such filter..

Mug Funky
6th January 2006, 10:10
hehehe... the idea is blindingly simple, but the implementation is... problematic.

clouded is making just a tool, but it'll be a while. avisynth isn't quite beefy enough in it's current state to support such a thing easily.

search for "cel background" and "cel foreground" :)

Didée
6th January 2006, 20:06
Once upon a time, I had voted for a spatial filter that processes clip A, but works on clip B (evaluating thresholds etc.). By now we have a temporal filter that can do so (TTempSmooth - thank you, tritical!), but no spatial filter.

If we had such a filter, here it could work by just reducing the colors like yv12lut(U+Vexpr="x 128 - 16 / 128 +"), giving a suited mask.