I'm using Halcon and QT together,and i export the algorithm in halcon into c++,then i put the exported code in QT.
I found the function "scale_image_range" can not be recognised. How to solve this problem?
i try to add the #include "HalconCpp.h", #include "HDevThread.h" using namespace HalconCpp; to my code. but it doesn't work
some codes are as follows
#include "mainwindow.h"
#include "HalconCpp.h"
#include "HDevThread.h"
#include "ui_mainwindow.h"
#include <QFileDialog>
#include <QMessageBox>
#include <QDir>
#include <QRadioButton>
using namespace std;
using namespace HalconCpp;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
..............................
}
MainWindow::~MainWindow()
{
delete ui;
}
////Slot function of button "Read"
void MainWindow::on_pushButton_clicked()
{
....................
}
//Slot function of button "Detect"
void MainWindow::on_pushButton_2_clicked()
{
if(ui->radioButton->isChecked())
{
................................
}
if(ui->radioButton_2->isChecked())
{
...........
**scale_image_range(ho_img2, &ho_img3, 20, 220);**
.............................
}
}
i hope this function could be recognized by the QT