mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Fixed a bug causing argments to be read incorrectly in stereoRectify
This commit is contained in:
parent
f60b41ec32
commit
14fed8c12b
@ -464,20 +464,20 @@ NAN_METHOD(Calib3D::StereoRectify)
|
|||||||
// Arg1, the first distortion coefficients
|
// Arg1, the first distortion coefficients
|
||||||
cv::Mat d1 = matFromMatrix(args[1]);
|
cv::Mat d1 = matFromMatrix(args[1]);
|
||||||
|
|
||||||
// Arg3, the second camera matrix
|
// Arg2, the second camera matrix
|
||||||
cv::Mat K2 = matFromMatrix(args[3]);
|
cv::Mat K2 = matFromMatrix(args[2]);
|
||||||
|
|
||||||
// Arg4, the second distortion coefficients
|
// Arg3, the second distortion coefficients
|
||||||
cv::Mat d2 = matFromMatrix(args[4]);
|
cv::Mat d2 = matFromMatrix(args[3]);
|
||||||
|
|
||||||
// Arg5, the image size
|
// Arg4, the image size
|
||||||
cv::Size imageSize = sizeFromArray(args[5]);
|
cv::Size imageSize = sizeFromArray(args[4]);
|
||||||
|
|
||||||
// arg6, the intercamera rotation matrix
|
// arg5, the intercamera rotation matrix
|
||||||
cv::Mat R = matFromMatrix(args[6]);
|
cv::Mat R = matFromMatrix(args[5]);
|
||||||
|
|
||||||
// Arg7, the intercamera translation vector
|
// Arg6, the intercamera translation vector
|
||||||
cv::Mat t = matFromMatrix(args[7]);
|
cv::Mat t = matFromMatrix(args[6]);
|
||||||
|
|
||||||
// Arg8, flags, skipping for now
|
// Arg8, flags, skipping for now
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user