x = (i - w / 2) * (z + minDistance) * scaleFactor * (w/h) y = (j - h / 2) * (z + minDistance) * scaleFactor z = z Where minDistance = -10 scaleFactor = .0021. These values were found by hand.
Best Regards,
Arul Kamarudin
CEASTech Unimap
x = (i - w / 2) * (z + minDistance) * scaleFactor * (w/h) y = (j - h / 2) * (z + minDistance) * scaleFactor z = z
--
You received this message because you are subscribed to the Google Groups "OpenKinect" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openkinect+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
PVector depthToWorld(int x, int y, int depthValue) {
final double fx_d = 1.0 / 5.9421434211923247e 02;
final double fy_d = 1.0 / 5.9104053696870778e 02;
final double cx_d = 3.3930780975300314e 02;
final double cy_d = 2.4273913761751615e 02;
PVector result = new PVector();
double depth = depthLookUp[depthValue];//rawDepthToMeters(depthValue);
result.x = (float)((x - cx_d) * depth * fx_d);
result.y = (float)((y - cy_d) * depth * fy_d);
result.z = (float)(depth);
return result;
}
You can create equation in other language or just download the PointCloud library