Can we do like this? Mine is very simple. It works ( I think ) can you guys help check this?
IplImage * img = cvLoadImage( "C:\\Users\\Pictures\\dodo19.jpg");
cvCvtColor(img,img,CV_BGR2RGB);
m_i
= QImage((unsigned char *)img
->imageDataOrigin,img
->width,img
->height,
QImage::Format_RGB888);
imageLabel
->setPixmap
(QPixmap::fromImage(m_i,
0));
IplImage * img = cvLoadImage( "C:\\Users\\Pictures\\dodo19.jpg");
cvCvtColor(img,img,CV_BGR2RGB);
m_i = QImage((unsigned char *)img->imageDataOrigin,img->width,img->height,QImage::Format_RGB888);
imageLabel->setPixmap(QPixmap::fromImage(m_i,0));
To copy to clipboard, switch view to plain text mode
The picture looks good in the Qt Dialog. Please check if doing like this does really work fine.
Bookmarks