From fe4379a34bde6e77046af89396b33951203713e0 Mon Sep 17 00:00:00 2001 From: "Jack.Y" Date: Tue, 29 Jan 2019 15:32:13 +0800 Subject: [PATCH] fix opencv 4.x compile --- src/mynteye/api/processor/disparity_processor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mynteye/api/processor/disparity_processor.cc b/src/mynteye/api/processor/disparity_processor.cc index b2e86e2..ebe86c3 100644 --- a/src/mynteye/api/processor/disparity_processor.cc +++ b/src/mynteye/api/processor/disparity_processor.cc @@ -155,8 +155,8 @@ bool DisparityProcessor::OnProcess( tmp2 = input->second; } else if (input->first.channels() >= 3) { // s210 - cv::cvtColor(input->first, tmp1, CV_RGB2GRAY); - cv::cvtColor(input->second, tmp2, CV_RGB2GRAY); + cv::cvtColor(input->first, tmp1, cv::COLOR_RGB2GRAY); + cv::cvtColor(input->second, tmp2, cv::COLOR_RGB2GRAY); } bm_matcher->compute(tmp1, tmp2, disparity); } else {