Meaning of mu in moment search.
Hello, I went through my code and then I counter this. Err what is the meaning of mu(contours.size)? What I understand from this code, it will find the moment for every contours found. But what is the meaning of mu? TQ
vector<moments> mu(contours.size() ); for( int i = 0; i < contours.size(); i++ ) { mu[i] = moments( contours[i], false ); }
It's the variable name. When using
vector<moments> mu(contours.size());
, you're just defining the variable and setting its size to the size of the vector of found contourshttp://docs.opencv.org/ref/master/d0/...(instead, see below ..)
@berak it looks (see here) you are using "bad link". Good one should be http://docs.opencv.org/3.0.0/d0/d49/t... ;)
^ ah, true. thanks for reminding !
thanks everyone!!