-2
Mat imgContours(imgThresh.size(), CV_8UC3, SCALAR_BLACK);
                                 ************************

what is the purpose of the underlined code and how it works?

1 Answers1

1
Mat imgContours(imgThresh.size(), CV_8UC3, SCALAR_BLACK);

CV_8UC3 is an 8-bit unsigned integer matrix(2D)/image with 3 channels.