vbalnt / pypixelmap

Simple script that plots a 2D array of colours (pixels) and their corresponding intensity values for demonstration purposes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pypixelmap

A simple script that illustrates an array of random pixels, along with their intentisy values.

Example plots are given both for rgb and grayscale images.

To execute, run python pypixelsmaps.py.

To change file filetype of the visualisation output (e.g to png) change the filenames in the following lines.

render_pixel_map(gray, number_of_lines_to_draw =5, filename_to_save = 'pixelmap_gray.pdf')
render_pixel_map(rgb ,number_of_lines_to_draw =5, filename_to_save = 'pixelmap_rgb.pdf')

Example visualisation outputs: pixelmap_rgb.png pixelmap_gray.png

About

Simple script that plots a 2D array of colours (pixels) and their corresponding intensity values for demonstration purposes

License:GNU General Public License v3.0


Languages

Language:Python 100.0%