Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void MainWindow::funcionActivacionTimer(){
Mat IMAGEN = imread("../imagen.png");
Mat IMG1;
cv::resize(IMAGEN,IMG1,Size(400,394));
Mat IMGb1, IMGb2, IMGb3;
cvtColor(IMG1,IMGb1,CV_BGR2HSV);
cvtColor(IMG1,IMGb2,CV_BGR2GRAY);
cvtColor(IMG1,IMGb3,CV_BGR2Lab);
QImage qImage = Mat2QImage(IMG1);
QPixmap pixmap = QPixmap::fromImage(qImage);
ui->label->clear();
ui->label->setPixmap(pixmap);
qImage = Mat2QImage(IMGb1);
pixmap = QPixmap::fromImage(qImage);
ui->label_2->clear();
ui->label_2->setPixmap(pixmap);
qImage = Mat2QImage(IMGb2);
pixmap = QPixmap::fromImage(qImage);
ui->label_5->clear();
ui->label_5->setPixmap(pixmap);
qImage = Mat2QImage(IMGb3);
pixmap = QPixmap::fromImage(qImage);
ui->label_3->clear();
ui->label_3->setPixmap(pixmap);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.