Open debkbanerji opened 3 years ago
An algorithm that achieves similar results to those found here might be useful
This paper is also interesting, but the techniques used may be too expensive to run in the browser, so a broader survey of deliberate pixilation techniques would need to be looked at.
In some cases edges between two colors can get mapped to pixels whose closest match doesn't match the hue of the two edge colors closely. This can probably be reduced with something like 're-aliasing' (i.e. a sort of anti-anti-aliasing; idk if there's a better name for it) during the downscaling process. This will likely need to a setting during downscaling (step 1) whose aggressiveness can be tweaked by the user. I wonder if a voting based system during downscaling will help rather than taking the average of the original pixel values.