m_mat=mat;
m_image= Mat2QImage(mat);
ui->label->clear();
ui->label->setPixmap(QPixmap::fromImage(m_image));
ui->label->setScaledContents(true);