Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***
- Reads the depth data from the sensor and fills in the matrix
- ***/
- void PMDCamera::fillInZCoords()
- {
- int res = pmdGet3DCoordinates(hnd, dists, 3 * numPixels * sizeof(float)); //store x,y,z coordinates dists (type: float*)
- //float * zCoords = new float[1]; //store z-Coordinates of dists in zCoords
- xyzMap = cv::Mat(xyzMap.size(), xyzMap.type(), dists);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement