A Rust thingy that sorts the pixels in an image.
git clone https://github.com/alvare/imgsort
cd imgsort
cargo install
imgsort mypic.jpg out.png
It will also save the output image in any format supported by image.
For now the pixels can be sorted in 7 dimensions:
- the 4 channels in RGBA
- the 3 channels in HSL
For example
imgsort mypic.jpg lol.jpg --mode hue
will sort the pixels according to their hue values.
Original:
Red sorted:
Hue sorted:
I'm just trying out the language 😁.