diff --git a/src/calibration.cpp b/src/calibration.cpp index a3418b3..4b4c266 100644 --- a/src/calibration.cpp +++ b/src/calibration.cpp @@ -24,7 +24,11 @@ void Create_ColorBar() pColor[ba * 3 + 1] = S[s / 13]; pColor[ba * 3 + 2] = V[v / 13 / 3]; } - cv::cvtColor(color, color_bar, CV_HSV2BGR); + #if (CV_VERSION_MAJOR >= 4) + cv::cvtColor(color, color_bar, cv::COLOR_HSV2BGR); + #else + cv::cvtColor(color, color_bar, COLOR_HSV2BGR); + #endif } @@ -647,4 +651,4 @@ bool Calibrator::ProjectOnImage(const Eigen::Vector4f &vec, const Eigen::Matrix4 if (x >= -margin && x < IMG_W + margin && y >= -margin && y < IMG_H + margin) return true; return false; -} \ No newline at end of file +}