-
Notifications
You must be signed in to change notification settings - Fork 0
/
histogramdialog.h
36 lines (29 loc) · 937 Bytes
/
histogramdialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef HISTOGRAMDIALOG_H
#define HISTOGRAMDIALOG_H
#include <QDialog>
#include <QLabel>
#include <ui_mainwindow.h>
#include <QObject>
#include <QString>
#include "halconcpp/HalconCpp.h"
#include <halconcpp/HTuple.h>
#include <halconcpp/HException.h>
#include <QDebug>
#include "hdevengine/HDevEngineCpp.h"
#include <halconcpp/HObject.h>
class HistogramDialog : public QDialog
{
Q_OBJECT
public:
HistogramDialog(QWidget *parent = nullptr);
/* 展示直方图 */
void showHistogramImage(HalconCpp::HObject &Image,HalconCpp::HObject &equlizationImg);
void getHistogramImage(HalconCpp::HObject &ho_GrayImage,HalconCpp::HObject &ho_outputImg);
void showImage(HalconCpp::HObject &image,QLabel * label,HalconCpp::HTuple &hHandle);
private:
QLabel *originallabel;
QLabel *equalizationlabel;
HalconCpp::HTuple hOriginalHandle;
HalconCpp::HTuple hEqualizationHandle;
};
#endif // HISTOGRAMDIALOG_H