deenaariff / GrayScale

A small python script to convert images to greyscales by averaging RGB values per pixel.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert Images to GreyScale

Python script using matplotlib and numpy to convert any image to grayscale through averaging RGB values in a three dimensional numpy-array of the image.

Usage

python grey.py <image.filextension>

Sample

Original Image (Color.jpg)

alt tag

Final Image (Gray.png)

alt tag

About

A small python script to convert images to greyscales by averaging RGB values per pixel.


Languages

Language:Python 100.0%