目录
dim只返回高宽, 判断是否为3通道:
img_top.type()== CV_8UC3
创建黑图:
int width = 360;
int width_crop = dstWidth;
cv::Mat img(dstHeight, width, CV_8UC3, cv::Scalar(0, 0, 0));
int8类型贴图补齐,测试时间:
cv::Mat srcResize;
cv::resize(src, srcResize, cv::Size(dstWidth, dstHeight));
int width = 360