projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9001d1
)
Fixed wrong computation of a reprojection matrix Q in stereoRectify (#898)
author
Ilya Lysenkov
<no@email>
Tue, 27 Mar 2012 15:02:53 +0000
(15:02 +0000)
committer
Ilya Lysenkov
<no@email>
Tue, 27 Mar 2012 15:02:53 +0000
(15:02 +0000)
modules/calib3d/src/calibration.cpp
patch
|
blob
|
history
diff --git
a/modules/calib3d/src/calibration.cpp
b/modules/calib3d/src/calibration.cpp
index
495cc8c
..
2785fc3
100644
(file)
--- a/
modules/calib3d/src/calibration.cpp
+++ b/
modules/calib3d/src/calibration.cpp
@@
-2524,7
+2524,7
@@
void cvStereoRectify( const CvMat* _cameraMatrix1, const CvMat* _cameraMatrix2,
1, 0, 0, -cc_new[0].x,
0, 1, 0, -cc_new[0].y,
0, 0, 0, fc_new,
- 0, 0, 1./_t[idx],
+ 0, 0,
-
1./_t[idx],
(idx == 0 ? cc_new[0].x - cc_new[1].x : cc_new[0].y - cc_new[1].y)/_t[idx]
};
CvMat Q = cvMat(4, 4, CV_64F, q);