project 2nd points onto a 3D reconstructed scene

조회 수: 1 (최근 30일)
ohad assour
ohad assour 2018년 4월 2일
댓글: ohad assour 2018년 4월 2일
Hello! i am currently having a bit of a problem understanding an issue regarding Stereo vision. if we follow the path to the stereo parameters file (pathToYourMatlab\toolbox\vision\vision\+vision\+internal\+calibration\StereoParametersImpl.m ) in line 274 we have this formula as a notation : [x, y, disparity, 1] * Q = [X, Y, Z, 1] * w
x and y are the x and y values of the pixel to be converted to 3d in the left camera image, disparity is the calculated disparity for that pixel that I attain from the disparity map,Q is a 4*4 projection matrix and we can see its initialization in line 278, and after the equation mark we have X,Y,Z which are the corresponding X,Y,Z points to the 2nd x,y points.those are the points i want to find. yet there is another variable, w, which i cannot find anywhere in the file mentioned and can't grasp it's meaning. I need to know it's meaning so that I can convert every 2d point on the left image to its appropriate 3d point in the reconstructed scene, yet without knowing w it's impossible.
I am trying very hard to find an answer to this problem , but haven't had any progress in the last time so you are my last hope.
thanks in advance, Ohad

채택된 답변

Matt J
Matt J 2018년 4월 2일
편집: Matt J 2018년 4월 2일
[X, Y, Z, 1] is a homogeneous vector and so is unique only up to multiplication by a non-zero scalar, w.
  댓글 수: 3
Matt J
Matt J 2018년 4월 2일
The result of evaluating the left hand side will be [w*X, w*Y,w*Z, w]. From the 4th coordinate, you obtain w directly and then can extract the remaining variables X,Y, and Z.
ohad assour
ohad assour 2018년 4월 2일
Awesome. Thank you for enlightening the situation!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Display Point Clouds에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by