If this 'mean shift' filter does what I imagine it does (i.e. 'cartoonizes' an image), then I've had an idea about how to do this. If I get time, I'll code something up tomorrow (busy bug hunting at the moment). Of course, my idea may turn out to be crap, so don't hold your breath. :P