1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 17:24:28 +08:00

Do not use = 0 for a cv::Mat.

There are several operator= overloads and some compilers can be confused.
This commit is contained in:
Vincent Rabaud
2021-06-29 00:27:32 +02:00
parent 4024870fd9
commit bac6ee7f08

View File

@@ -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<float>::type), imd(20, 1, DataType<float>::type);
Mat Cones(20, 1, DataType<float>::type), Cinv(20, 1, DataType<float>::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;