This program takes a PPM P3 image and performs a glitchy-looking image-processing effect.
The way the algorithm works is the following:
- Transform the image to grey-scale by using the formula Luminosity = (max(R, G, B) + min(R, G, B)) / 2
- Turns pixels below a set luminosity threshold to black and above to white
- Detects vertical groups of white pixels via edge detection and sorts them based on luminosity
The picture used as an example in this github is not my work. It is bob ross's work, called "Grey Mountains".
I got the idea for this algorithm when I saw Acerola's video on the subject on youtube. His implementation is done with the GPU pipeline.