Convert grayscale frames into color in nteractive calibration preview

This commit is contained in:
Alexander Smorkalov 2025-08-05 10:09:12 +03:00
parent 13846de9f6
commit 96fdbc58e1

View File

@ -308,7 +308,10 @@ cv::Mat CalibProcessor::processFrame(const cv::Mat &frame)
{
cv::Mat frameCopy;
cv::Mat frameCopyToSave;
frame.copyTo(frameCopy);
if (frame.channels() == 1)
cv::cvtColor(frame, frameCopy, cv::COLOR_GRAY2BGR);
else
frame.copyTo(frameCopy);
bool isTemplateFound = false;
mCurrentImagePoints.clear();