dimanche 19 avril 2015

Java: represent a color image as an array of gray scale intensity values

Is there a built-in utils to represent a color (or gray scale image) as an array of the gray scale intensity values?


If not, suppose I have a BufferedImage img, how can I represent this image as an array like this:



int[][] intensity = toIntensity(img);


How should the toIntensity() method look like?


Aucun commentaire:

Enregistrer un commentaire