I am trying to use the processing Kinect library with another AR tool kit; the AR toolkits only takes in 640 x 480 input sizes, so the kinect's colorImage output's 1920 X 1080 was not compatible to be used due to an ArrayOutOfBoundsException. I am trying to resize the output of kinect.getColorImage() but keeps on getting ArrayOutOfBoundsException; any help on what I'm doing wrong, or suggested solutions would be greatly appreciated!
void draw()
{
img = kinect.getColorImage();
img.resize(640,480);
//do stuff with the kinect's output with the following AR library
nya.detect(img);
....
}