mardi 3 mars 2015

How To Turn A PNG File Into A Matrix of Numbers That You Can Manipulate Using Python

I am trying take the png files a research colleague gave me and convert it into a 2D array (matrix) of the numbers that represent each pixel (I believe they are called RGB values) using python. I want to be able to have access and be able to manipulate these numbers. Is there a python library for this or is there some sort of built in function for this?


Aucun commentaire:

Enregistrer un commentaire