voidMatToCImage( Mat &mat, CImage &cImage){//create new CImageintwidth = mat.cols;intheight = mat.rows;intchannels = mat.channels(); cImage.Destroy();//clearcImage.Create(width, height,//positive: left-bottom-up or negative: left-top-down8*channels );//numbers of bits per pixel/...
Qt为4.8.4版本 1 #include"image1.h" 2 #include<QApplication> 3 #include<QImage> 4 #...