mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Convert grayscale frames into color in nteractive calibration preview
This commit is contained in:
parent
13846de9f6
commit
96fdbc58e1
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user