fix(calib models): use shared ptr value change instead of ptr change
This commit is contained in:
parent
e46c9371db
commit
7985a8ffe7
|
@ -339,13 +339,21 @@ void RectifyProcessor::InitParams(
|
|||
generateCameraFromIntrinsicsEquidistant(in_left);
|
||||
camodocal::CameraPtr camera_odo_ptr_right =
|
||||
generateCameraFromIntrinsicsEquidistant(in_right);
|
||||
if (calib_infos) {
|
||||
auto calib_info_tmp = stereoRectify(camera_odo_ptr_left,
|
||||
camera_odo_ptr_right,
|
||||
in_left,
|
||||
in_right,
|
||||
ex_right_to_left);
|
||||
*calib_infos = *calib_info_tmp;
|
||||
} else {
|
||||
calib_infos =
|
||||
stereoRectify(camera_odo_ptr_left,
|
||||
camera_odo_ptr_right,
|
||||
in_left,
|
||||
in_right,
|
||||
ex_right_to_left);
|
||||
|
||||
}
|
||||
cv::Mat rect_R_l =
|
||||
cv::Mat::eye(3, 3, CV_32F), rect_R_r = cv::Mat::eye(3, 3, CV_32F);
|
||||
for (size_t i = 0; i < 3; i++) {
|
||||
|
|
|
@ -23,11 +23,7 @@
|
|||
#include "mynteye/types.h"
|
||||
#include "mynteye/api/processor.h"
|
||||
#include "mynteye/device/device.h"
|
||||
#include <camodocal/camera_models/Camera.h>
|
||||
#include <camodocal/camera_models/CameraFactory.h>
|
||||
#include <camodocal/camera_models/EquidistantCamera.h>
|
||||
#include <camodocal/gpl/gpl.h>
|
||||
#include <camodocal/camera_models/Camera.h>
|
||||
#include <opencv2/core/eigen.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
|
Loading…
Reference in New Issue
Block a user