Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/calibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}


Expand Down Expand Up @@ -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;
}
}