점 구름을 얻기 위해 처리를 사용하려고합니다. 그러나 그것이 작동하지 않는다는 것이 드러납니다.Kinect가있는 simpleopenni 점 구름 프로그램
import SimpleOpenNI.*;
import processing.opengl.*;
SimpleOpenNI kinect;
void setup()
{
size(1024, 768, OPENGL);
kinect = new SimpleOpenNI(this);
kinect.enableDepth();
}
void draw()
{
background(0);
kinect.update();
translate(width/2, height/2, -1000);
rotateX(radians(180));
stroke(255);
PVector[] depthPoints = kinect.depthMapRealWorld();
//the program get stucked in the for loop it loops 307200 times and I don't have any points output
for(int i = 0; i < depthPoints.length ; i++)
{
PVector currentPoint = depthPoints[i];
point(currentPoint.x, currentPoint.y, currentPoint.z);
}
}
오류가 없다면 500 픽셀을 건너 뛰면 점수를 얻을 수 있습니다 (너무 많이 건너 뛰게 됨). 첫 번째 요점이 효과가 있습니다. – xinghua