Depth from reprojectImageTo3D

asked 2014-06-26 15:54:15 -0600

user6789 gravatar image

updated 2020-11-06 15:17:43 -0600

Hi , I'm working with opencv and I have a doubt.I've ran stereorectify() and reprojectImageTo3D() methods on my images taken from a stereo pair of cameras.The output of reprojectImageTo3D() method is a matrix having 3 channels of x y and z cordinate.I have the following doubts in mind which would be a great help if solved.

  1. The output of reprojectImageTo3D() method is in which distance measuring system.?Like does it give output in meters/cm (cause of calibration) or in pixels.
  2. How to locate the origin of the stereo camera system.
edit retag flag offensive close merge delete

Comments

The distance's unit is the same as the one you set for the chessboard. For example, if your chessboard corner is set as (0,0), (0,1), (0, 2)... standing for 1 cm for each block, then the unit for your result from reprojectImageTo3D is in "cm" unit. Hope it helps.

bennygato gravatar imagebennygato ( 2014-07-14 15:39:31 -0600 )edit

do u happen to know any good resource for point cloud generation during real time..??

user6789 gravatar imageuser6789 ( 2014-07-30 13:04:20 -0600 )edit