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

There are several operator= overloads and some compilers can be confused.
pull/2988/head
Vincent Rabaud 3 years ago
parent 4024870fd9
commit bac6ee7f08
  1. 4
      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<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;

Loading…
Cancel
Save