Advertisement
lamiastella

PMDCamera::fillInZCoords()

May 22nd, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. /***
  2. Reads the depth data from the sensor and fills in the matrix
  3. ***/
  4. void PMDCamera::fillInZCoords()
  5. {
  6.     int res = pmdGet3DCoordinates(hnd, dists, 3 * numPixels * sizeof(float)); //store x,y,z coordinates dists (type: float*)
  7.     //float * zCoords = new float[1]; //store z-Coordinates of dists in zCoords
  8.     xyzMap = cv::Mat(xyzMap.size(), xyzMap.type(), dists);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement