IplImage2QImage()函数见:iplImage to QImage

//显示图片

scene=new QGraphicsScene(this);//在构造函数里处理

voidALPR_demo::disp_iplimage(IplImage*iplimage,QGraphicsView*gv)

{

//转换
QImageqImage=opencv_tools.IplImage2QImage(iplimage);
if(!qImage.isNull()){
//调整大小

 

scene->clear();

 

scene->addPixmap(QPixmap::fromImage(qImage));
gv->setScene(scene);
}

}

posted on 2012-02-13 09:40  知识天地  阅读(2922)  评论(0编辑  收藏  举报