fix opencv 4.x compile

This commit is contained in:
Jack.Y 2019-01-29 15:32:13 +08:00
parent 4c51ef2f30
commit fe4379a34b

View File

@ -155,8 +155,8 @@ bool DisparityProcessor::OnProcess(
tmp2 = input->second; tmp2 = input->second;
} else if (input->first.channels() >= 3) { } else if (input->first.channels() >= 3) {
// s210 // s210
cv::cvtColor(input->first, tmp1, CV_RGB2GRAY); cv::cvtColor(input->first, tmp1, cv::COLOR_RGB2GRAY);
cv::cvtColor(input->second, tmp2, CV_RGB2GRAY); cv::cvtColor(input->second, tmp2, cv::COLOR_RGB2GRAY);
} }
bm_matcher->compute(tmp1, tmp2, disparity); bm_matcher->compute(tmp1, tmp2, disparity);
} else { } else {