Obter vetor de BufferedImage

como copiar pro vetor ( int [] vetor = new int[imagem.getWidth()*imagem.getHeight()];) os pixels de um BufferedImage?

int w = imagem.getWidth();
int h = imagem.getHeight();
int size = w * h;
int rgb[] = imagem.getRGB(0, 0, w, h, null, 0, w);

PERFEITO, valeu.