How to create an array (or matrix) from an 2d image?
Hello,I begin to work on an application that process images, and see that first step is to transform the image into a matrix...I am blocked...Could you please give yours opinions?Any kind of help is highly appreciated...Catalin
[262 byte] By [
catalinmza] at [2007-10-1 14:19:50]

here you go:BufferedImage img = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB);int[] alphaData = ((DataBufferInt) ((BufferedImage) img).getRaster().getDataBuffer()).getData();each pixel is a int in the array with following byte-order: ARGBlg Clemens