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