Grayscale Converter

Colored PPM image to grayscale PGM images

Basic Concept

I developed a program that produces six different color to black and white conversion using a PPM image file.


git clone
cd grayscale-converter


Command Description
make setup creates required directories
make all object files created
make grayscale converts ppm to pgm grayscale images
make clean restores repository to original

By default, the Strawberry.ppm file is selected as the input image. To change this, import an ppm images under ./img/input then go to makefile and change all places with Strawberry.ppm to your new image file.


Before Red Green Blue


The algorithm used for the grayscale operation is from John Cook

© Namito Yokota