world coordinates from object detection
I have stereo camera system and I am running a object detection agoritham in one of the camera. I get the centroids of each detected objects. My question is how to compute their world coordinates? Thanks.
Please elaborate on 'world coordinates'.
By world coordinate, I mean the position vector (X, Y, Z) of the object's centroid with respect to the camera frame. Hope it is clear. Thanks.
If the camera is (0,0,0) of your coordinate frame, use
cv::reprojectImageTo3D()
. This requires the Q matrix from calibration.Thanks. Just curious to know how the Q matrix vary with image resize?