1 Reply Latest reply on Apr 17, 2017 2:32 PM by Intel Corporation

    Trying to obtain the values of a frame


      Hi, i´m working with this an R200, and i´d lke to obtain the values of each frame i´m taking. I want the value of the color pixel, and the depth value also.


      This is the code i´m working with:


      void readFrame(pxcCHAR *file, bool record) {



        PXCSenseManager* sm = PXCSenseManager::CreateInstance();


        // Set file playback name

        sm->QueryCaptureManager()->SetFileName(file, false);


        // Enable stream and Initialize

        sm->EnableStream(PXCCapture::STREAM_TYPE_COLOR, 640, 480, 0);//En la página ponía 0, 0, simplemente.

        sm->EnableStream(PXCCapture::STREAM_TYPE_DEPTH, 0, 0, 0);




        // Set realtime=false and pause=true



        // Streaming loop

        for (int i = 0; i < 25; i++) {

        // Set to work on every frame of data



        // Ready for the frame to be ready

        pxcStatus sts = sm->AcquireFrame(true);

        if (sts < PXC_STATUS_NO_ERROR) break;



        // Retrieve the sample and work on it. The image is in sample->color.

        PXCCapture::Sample* sample = sm->QuerySample();



        PXCImage* depthIm = sm -> CreateDepthImageMappedToColor(sample->depth, sample->color);

        sm -> QueryVertices(sample->depth, vertices.data());



        for (int i = 0; i < 500000000; i++) {}



        // Resume processing the next frame



        // Clean up





      Any ideas of what to put to obtain the values i´m looking for, and where to put it? 


      Thank you!