如何使用 OpenCV 将 CV_8UC1 Mat 转换为 CV_8UC3?
Mat dst;
Mat src(height, width, CV_8UC1, (unsigned char*) captureClient->data());
src.convertTo(dst, CV_8UC3);
但是 dst.channels() = 1
如何使用 OpenCV 将 CV_8UC1 Mat 转换为 CV_8UC3?
Mat dst;
Mat src(height, width, CV_8UC1, (unsigned char*) captureClient->data());
src.convertTo(dst, CV_8UC3);
但是 dst.channels() = 1