Skip to content
Snippets Groups Projects
Commit 3666a7f0 authored by Ryan Pavlik's avatar Ryan Pavlik Committed by Jakob Bornecrantz
Browse files

d/mt: Fix build with OpenCV 4

parent 83fb3b2a
Branches
No related tags found
No related merge requests found
......@@ -417,7 +417,7 @@ tracker3D_sphere_stereo_track(tracker_instance_t* inst)
// TODO: handle source images larger than debug_rgb
cv::Mat debug_img;
cv::cvtColor(internal->l_frame_gray, debug_img, CV_GRAY2BGR);
cv::cvtColor(internal->l_frame_gray, debug_img, cv::COLOR_GRAY2BGR);
cv::Mat dst_roi =
internal->debug_rgb(cv::Rect(0, 0, debug_img.cols, debug_img.rows));
debug_img.copyTo(dst_roi);
......@@ -652,7 +652,7 @@ tracker3D_sphere_stereo_calibrate(tracker_instance_t* inst)
cv::Point2f(internal->debug_rgb.cols, internal->debug_rgb.rows),
cv::Scalar(0, 0, 0), -1, 0);
cv::Mat disp8;
cv::cvtColor(internal->r_frame_gray, disp8, CV_GRAY2BGR);
cv::cvtColor(internal->r_frame_gray, disp8, cv::COLOR_GRAY2BGR);
// disp8.copyTo(internal->debug_rgb);
// we will collect samples continuously - the user should be able to
// wave a chessboard around randomly while the system calibrates.. we
......
......@@ -60,7 +60,7 @@ tracker3D_uvbi_get_debug_frame(tracker_instance_t* inst, frame_t* frame)
tracker3D_uvbi_instance_t* internal =
(tracker3D_uvbi_instance_t*)inst->internal_instance;
cv::Mat rgbFrame;
cv::cvtColor(internal->frame_gray, rgbFrame, CV_GRAY2BGR);
cv::cvtColor(internal->frame_gray, rgbFrame, cv::COLOR_GRAY2BGR);
cv::Mat uvbi_debug = internal->debug->createStatusImage(
*(internal->system), internal->camera_params, rgbFrame);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment