From 162187608bbaf1f79d38c88803754c8e58359129 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sat, 26 Nov 2016 12:40:34 +0100 Subject: cleanup --- opencv-qt-integration-1/ImageViewer.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 opencv-qt-integration-1/ImageViewer.cpp (limited to 'opencv-qt-integration-1/ImageViewer.cpp') diff --git a/opencv-qt-integration-1/ImageViewer.cpp b/opencv-qt-integration-1/ImageViewer.cpp deleted file mode 100644 index 780f221..0000000 --- a/opencv-qt-integration-1/ImageViewer.cpp +++ /dev/null @@ -1,28 +0,0 @@ -#include -#include -#include -#include "ImageViewer.h" - -ImageViewer::ImageViewer() -{ - img = cv::imread("../assets/flughahn.jpg"); - - imageLabel = new QLabel(); - if (img.empty()) { - imageLabel->setText("Cannot load the input image!"); - } else { - cv::cvtColor(img, img, cv::COLOR_BGR2RGB); - QImage _img(img.data, img.cols, img.rows, QImage::Format_RGB888); - imageLabel->setPixmap(QPixmap::fromImage(_img)); - } - - quitButton = new QPushButton("Quit"); - connect(quitButton, SIGNAL(clicked()), this, SLOT(close())); - - mainLayout = new QVBoxLayout(); - mainLayout->addWidget(imageLabel); - mainLayout->addWidget(quitButton); - - setLayout(mainLayout); - setWindowTitle("OpenCV - Qt Integration"); -} -- cgit v1.2.3