samedi 3 janvier 2015

Hello guys, I’m making an accademic project with qt creator and I must use the OpenCV libraries for image processing


Vote count:

-1





#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);

}

MainWindow::~MainWindow()
{
delete ui;
}

void MainWindow::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}

void MainWindow::on_pushButton_clicked()
{


QString filename;
QFileDialog qfile;
filename = qfile.getOpenFileName(this,"Choose your image file","C:\\",tr("Image Files (*.png *.jpg *.bmp)"));
QGraphicsScene* scene = new QGraphicsScene();
// QGraphicsView* view = new QGraphicsView(scene);
ui->graphicsView->setScene(scene);
QGraphicsPixmapItem* item = new QGraphicsPixmapItem(QPixmap(filename));
scene->addItem(item);
ui->graphicsView->show();
}


void MainWindow::on_crossingNumber_clicked()
{

//here goes the implementation of Crossing Number

// it will compute coordinates of bifurcations and terminations [x,y]
}


im developing a academical project in qt creator by using crossing number, morphological and chain code methods and may you help at least to develop by using crossing number using 1 pixel gray scale pic



asked 52 secs ago







Hello guys, I’m making an accademic project with qt creator and I must use the OpenCV libraries for image processing

Aucun commentaire:

Enregistrer un commentaire