# reprojectImageTo3D components mean?

Hello.

I'm working stereo vision.

I'm using 2 webcams. Also, I use stereoRectify(), now I have Q matrix(disparity map to depth).

Then, I use reprojectImageTo3D(). I can get 3 chenels matrix.(From now, this matrix = T)

In the guide pages of reprojectImageTo3D said, " That is, for each pixel (x,y) and the corresponding disparity d=disparity(x,y) "

As I understood, It means that if there is a [960, 720] image, T[100,200,2] means T(100,200)'s depth.

But, I print that values, I think it is a wrong supposition...

I don't understand T[x,y,0], T[x,y,1], T[x,y,2] mean...

plz help me.

ps. My ultimate goal is to seek depth(distance).

see docs , the 3rd component is (scaled) Z, not disparity

In your docs, Each element of _3dImage(x,y) contains 3D coordinates of the point (x,y) computed from the disparity map. 3d-Image's Z componet doesn't mean depth?? I understand... thank you!

So, if I want to get the real depth, reprojectImageTo3D() will not help my project. Right??

distance = f / disparity.

(reprojectImageTo3D is more for a 3d point cloud visualization)