Using the class Scalar implemented in OpenCV, I didn't understand what is the difference between this code:
Mat test;
test = Scalar::all(0);
and this:
Mat test = Scalar::all(0);
^
My question is why is the first assignment correct while the second is not?