how to access to individual point values from point cloud?

edited December 2013 in Kinect

Hi again, im new using kinect with processing, before i was using openframeworks . In openframeworks i can have access to the individual points of my point cloud , i can iterate over all the point values and have access to the values in the following way:

for(int y = 0; y < h; y += step) {
        for(int x = 0; x < w; x += step) {
            if(kinect.getDistanceAt(x, y) > 0) {
                mesh.addColor(kinect.getColorAt(x,y));
                mesh.addVertex(kinect.getWorldCoordinateAt(x, y));

                             my_value =  kinect.getDistanceAt(x, y) ;


            }
        }
    }

How can i have access to each individual point in processing? Is it possiblt to have access from OpenNi ? or should i use something else?

cheers

L.

Sign In or Register to comment.