From bac6ee7f08a157518d32494a8f5039004fad5f2d Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 29 Jun 2021 00:27:32 +0200 Subject: [PATCH] Do not use = 0 for a cv::Mat. There are several operator= overloads and some compilers can be confused. --- modules/alphamat/src/cm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/alphamat/src/cm.cpp b/modules/alphamat/src/cm.cpp index 660962eba..8d7f682d1 100644 --- a/modules/alphamat/src/cm.cpp +++ b/modules/alphamat/src/cm.cpp @@ -90,9 +90,9 @@ void lle(my_vector_of_vectors_t& indm, my_vector_of_vectors_t& samples, float ep Mat ptDotN(20, 1, DataType::type), imd(20, 1, DataType::type); Mat Cones(20, 1, DataType::type), Cinv(20, 1, DataType::type); float alpha, beta, lagrangeMult; - Cones = 1; + Cones.setTo(cv::Scalar::all(1)); - C = 0; + C.setTo(cv::Scalar::all(0)); rhs = 1; int i, ind = 0;