Skip to content

Commit 496ea61

Browse files
committed
Do not use = 0 for a cv::Mat.
There are several operator= overloads and some compilers can be confused. This is a leftover from #2987
1 parent 3ef73fc commit 496ea61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/img_hash/src/radial_variance_hash.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class RadialVarianceHashImpl CV_FINAL : public ImgHashBase::ImgHashImpl
266266
}
267267
else
268268
{
269-
hash = 0;
269+
hash.setTo(cv::Scalar::all(0));
270270
}
271271
}
272272

0 commit comments

Comments
 (0)