mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 00:19:46 +01:00
Merge pull request #27628 from asmorkalov:as/grayscale_calib
Convert grayscale frames into color in interactive calibration preview
This commit is contained in:
commit
29c73c1d2a
|
|
@ -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