Subversion Repositories seema-scanner

Rev

Rev 220 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 220 Rev 228
Line 76... Line 76...
76
}
76
}
77
 
77
 
78
 
78
 
79
void SMVideoZoomWidget::showImageCV(cv::Mat image){
79
void SMVideoZoomWidget::showImageCV(cv::Mat image){
80
 
80
 
-
 
81
    if(image.empty())
-
 
82
        return;
-
 
83
 
81
    QImage qimage = cvMat2qImage(image);
84
    QImage qimage = cvMat2qImage(image);
82
 
85
 
83
    // If first ever camera image, fit in view
86
    // If first ever camera image, fit in view
84
    if(item->pixmap().isNull()){
87
    if(item->pixmap().isNull()){
85
        item->setPixmap(QPixmap::fromImage(qimage));
88
        item->setPixmap(QPixmap::fromImage(qimage));