Skip to content

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

License

Notifications You must be signed in to change notification settings

vbalnt/pypixelmap

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages