How do I directly covert a depth image to 3-D point cloud?
17 vues (au cours des 30 derniers jours)
I could use pcfromkinect() function to convert depth data from kinect device into 3-D cloud points.
But how could I convert the depth matrix that had already extracted from kinect into 3-D cloud points ?
I mean, pcfromkinect() seems only works from device to 3d points cloud, not matrix to cloud.
Marten J le 5 Nov 2018
I had the same problem. I could solve it through a double for-loop... but it's not the most efficient way:
A = double(depthImage);
[s1 s2] = size(A);
for i = 1:s1
for j = 1:s2
n = n+1;
Punkte(n,1) = i;
Punkte(n,2) = j;
Punkte(n,3) = A(i,j);
so I calculated the depthImage in the Pointcloud matrix [x-vector, y-vector, z-vector] but it takes some time.
Also only the Z-Value is in the metric system... the x and y- values stay in the Pixel system... to transform then in the Objekt-coordinate system you need the calibration and the Collinearity equations.