1 | initial version |
so,
Mat M(10, 10, CV_32FC1, 0.0f);
will create a single channel float matrix, initialized to 0 ( please use 0.0f here, so it does not get mistaken as a 0 pointer)
and:
Mat M(10, 10, CV_32FC3, 0.0f);
will create a similar 3 channel matrix. (CV_32F is just an alias for CV_32FC1)