最须要留心的是,目标图像是单通道的,高度是原始图像的1.5倍。spa
IplImage* imgColor = cvLoadImage("./backImg/0.jpg", 1);im
cvCvtColor(imgColor, imgYUV, CV_BGR2YUV_I420);img