From 496ea61c8d607c657a8bcc471f9e3f5e68aea26d Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 12 Oct 2021 16:26:26 +0200 Subject: [PATCH] Do not use = 0 for a cv::Mat. There are several operator= overloads and some compilers can be confused. This is a leftover from https://github.com/opencv/opencv_contrib/pull/2987 --- modules/img_hash/src/radial_variance_hash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/img_hash/src/radial_variance_hash.cpp b/modules/img_hash/src/radial_variance_hash.cpp index 375cb57a1..794d252ce 100644 --- a/modules/img_hash/src/radial_variance_hash.cpp +++ b/modules/img_hash/src/radial_variance_hash.cpp @@ -266,7 +266,7 @@ public: } else { - hash = 0; + hash.setTo(cv::Scalar::all(0)); } }