JuliaImages / DitherPunk.jl

Dithering algorithms in Julia.
MIT License
60 stars 3 forks source link

Support dithering with tiles #60

Open adrhill opened 2 years ago

adrhill commented 2 years ago

Related to a question that came up in the Julia Slack #image-processing channel a while ago, it would be nice to dither using smaller images as tiles.

A simple way to implement this would be to average colors in each tile to obtain a color scheme. We would then obtain an IndirectArray from which it would be possible to reconstruct the tiled image.

One open issue is how to deal with non-square tiles. It might be necessary to rescale the input image to compensate for stretching of the output image.

johnnychen94 commented 2 years ago

Is the idea to do a pixel-wise comparison or a tile-wise comparison?