-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbbddescriptor_dialog.cpp
58 lines (43 loc) · 1.38 KB
/
vbbddescriptor_dialog.cpp
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#include "vbbddescriptor_dialog.h"
#include <QFileDialog>
#include <QFileInfo>
#include <QSettings>
#include <QTextCodec.h>
#include "qmessagebox.h"
AutoComputeAllDialog::AutoComputeAllDialog(QWidget* parent) : QDialog(parent)
, Ui::VBBDDescriptorDialog()
{
m_index = 0;
m_radius = 15;
m_gridsizel = 9;
m_sample = 1;
m_ratio = 0.9;
setupUi(this);
//connect(keypointcomboBox,SIGNAL(currentIndexChanged(QString)),this,SLOT(print_s()));
connect(keypointcomboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(setValue_index(int)));// 关键点算法序号
connect(radiusspinBox, SIGNAL(valueChanged(int)), this, SLOT(SetValue_Radius(int)));//半径
connect(gridspinBox, SIGNAL(valueChanged(int)), this, SLOT(SetValue_GridSize(int)));//格网
connect(samplingspinBox, SIGNAL(valueChanged(int)), this, SLOT(SetValue_Sampling(int)));//采样
connect(ratiodoubleSpinBox, SIGNAL(valueChanged(double)), this, SLOT(SetValue_ratio(double)));//比率
QTextCodec::setCodecForLocale(QTextCodec::codecForName("GB2312"));
}
void AutoComputeAllDialog::setValue_index(int value)
{
m_index = value;
}
void AutoComputeAllDialog::SetValue_Radius(int value)
{
m_radius = value;
}
void AutoComputeAllDialog::SetValue_GridSize(int value)
{
m_gridsizel = value;
}
void AutoComputeAllDialog::SetValue_Sampling(int value)
{
m_sample = value;
}
void AutoComputeAllDialog::SetValue_ratio(double value)
{
m_ratio = value;
}