// Conversion
for (int row=0; row<height; row++)
for (int col=0; col<width; col++){
Color c = new Color(image.getRGB(col, row));
PVector px = new PVector(3);
px.array[0] = c.getRed();
px.array[1] = c.getGreen();
px.array[2] = c.getBlue();
points[ row * width + col ] = px;
}