debkbanerji / lego-art-remix

Powerful computer vision assisted Lego mosaic creator · Over 1 million images created (so far!)
https://lego-art-remix.com
GNU General Public License v3.0
288 stars 70 forks source link

Edge removal during upscaling #22

Open debkbanerji opened 3 years ago

debkbanerji commented 3 years ago

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.

debkbanerji commented 3 years ago

An algorithm that achieves similar results to those found here might be useful

debkbanerji commented 3 years ago

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.