1 | initial version |
I'm leaning towards a wording bug in the doc because it makes sense to return 3 channels if your input is 3 channels.
Mat img = Mat(1,1,CV_8UC3);
img.at<Vec3b>(0)[0] = 0;
img.at<Vec3b>(0)[1] = 100;
img.at<Vec3b>(0)[2] = 200;
cout << (img != 0) << endl;
gives
[0, 255, 255]