We use ZED 2i outdoors. The task is to determine the distance to two points on the ground and then calculate the distance between them. Specifically, to calculate the width of the roadway.
However, even the error in calculating the distance to a point on the road is currently around 10-15%. This is not even considering the calculated width of the road.
We came across a topic - Improving 3D Reconstruction and Distance Accuracy with ZED X Camera - #3 by MaelCap2
Quote from the support response: “Furthermore, please consider that you are not calculating an Euclidean distance, but you are retrieving the perpendicular distance of the ball from the camera sensor plane.”
But in the documentation ( Depth Sensing Overview - Stereolabs ) we read: “The distance is expressed in metric units (meters for example) and calculated from the back of the left eye of the camera to the scene object”
Questions:
- Please explain what are the values in the depth map?
- How to correctly get the Euclidean distance from the camera to a point on the image?
- How to measure euclidian distance between two point on image?
P.S. Tell me how to do this with a depth map. It’s not very convenient for us to use a point cloud, as we are using a self-written library in C++. However, if this is not possible, please provide guidance on using a point cloud.