From b68057d92701e24765d9ff199011f5171d320143 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Wed, 23 Jun 2021 21:27:54 +0200 Subject: [PATCH] Do not use = 0 for a cv::Mat. There are several operator= overloads and some compilers can be confused. --- modules/calib3d/src/chessboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/calib3d/src/chessboard.cpp b/modules/calib3d/src/chessboard.cpp index dbc47722cb..18e2605f53 100644 --- a/modules/calib3d/src/chessboard.cpp +++ b/modules/calib3d/src/chessboard.cpp @@ -3924,7 +3924,7 @@ bool findChessboardCornersSB(cv::InputArray image_, cv::Size pattern_size, { meta_.create(int(board.rowCount()),int(board.colCount()),CV_8UC1); cv::Mat meta = meta_.getMat(); - meta = 0; + meta.setTo(cv::Scalar::all(0)); for(int row =0;row < meta.rows-1;++row) { for(int col=0;col< meta.cols-1;++col)