Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixel Sorter

This program takes a PPM P3 image and performs a glitchy-looking image-processing effect.

The way the algorithm works is the following:

  1. Transform the image to grey-scale by using the formula Luminosity = (max(R, G, B) + min(R, G, B)) / 2
  2. Turns pixels below a set luminosity threshold to black and above to white
  3. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages