We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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);
....
}
Answers
I bet the error highlights the line with the resize function call? Check that image is not null before manipulating it.
Kf
Nope, the error highlights line 3; img=kinect.getColorImage(); The img displays fine with no issue.