-
Notifications
You must be signed in to change notification settings - Fork 0
/
BoxCountingCalculator.h
executable file
·57 lines (52 loc) · 1.39 KB
/
BoxCountingCalculator.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef BOXCOUNTINGCALCULATOR_H
#define BOXCOUNTINGCALCULATOR_H
#include <vector>
#include <QWidget>
#include <QObject>
#include "PlotWidget.h"
class QSpinBox;
class QDoubleSpinBox;
class PlotWidget;
class QRadioButton;
class QComboBox;
class QPushButton;
class BoxCountingCalculator: public QWidget
{
Q_OBJECT
public:
BoxCountingCalculator();
~BoxCountingCalculator(){};
uint getNumBoxes(){return NumBoxes;};
uint getTmin(){return Tmin;};
void setData(std::vector<std::vector<bool> > Image);
public slots:
void calculate();
private slots:
void aceptar();
void changeOffSet(int index);
void changeAngle(int index);
private:
std::vector<std::vector<bool> > ImageBool;
std::vector<int> boxes;
PlotWidget *plotter;
QSpinBox *TminBox;
QSpinBox *StepBox;
QDoubleSpinBox *FactorBox;
QSpinBox *NumBoxesBox;
QRadioButton *AritmeticCheckBox;
QRadioButton *GeometricCheckBox;
QComboBox *OffSetComboBox;
QComboBox *AngleComboBox;
QSpinBox *xOffSetBox;
QSpinBox *yOffSetBox;
QSpinBox *varOffSetBox;
QSpinBox *angleBox;
QSpinBox *angleVarBox;
QPushButton *goButton;
int Tmin, Step, NumBoxes;
int xOff, yOff;
int varOff;
int angle, varAngle;
double Factor;
};
#endif