cvMat->QImage: QImageCameraThread::cvMat2QImage(constcv::Mat&cvImg) { QImageqImg; if(cvImg.channels()==3)//三通道彩色图像 { //CV_BGR2RGB cv::cvtColor(cvImg,cvImg,CV_RGB2BGR); qImg=QImage((constunsignedchar*)(cvImg.data),cvImg.cols,cvImg.rows,cvImg.cols*cvImg.channels(),QIm...
if(tempFileName==TEMPDICOM1) dst.copyTo(dicomMat1); if(tempFileName==TEMPDICOM2) dst.copyTo(dicomMat2); } cv::Mat dst; if(tempDicom==TEMPDICOM1) dst=Mat16toMat8(dicomMat1).clone(); if(tempDicom==TEMPDICOM2) dst=Mat16toMat8(dicomMat2).clone(); QImage img=QImage((Uint8*)dst...