Blame view

CompareImageDialog.h 1.12 KB
3f2992b2c   bostx   V1.0
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
  #ifndef COMPAREIMAGEDIALOG_H
  #define COMPAREIMAGEDIALOG_H
  
  #include <QDialog>
  #include <QSpinBox>
  #include <QCheckBox>
  #include <QLabel>
  
  class CompareImageDialog: public QDialog
  {
    Q_OBJECT
  
      public:
    CompareImageDialog(const QString &title, int V, int H, int S, int defValue1, int defValue2, const QString &threshLab1, const QString &threshLab2 = QString(), QWidget *parent = 0);
    
    int getHistoType();
    int getMetrics();
    int getThreshold1();
    int getThreshold2();
    bool getIterate();
    int getNVBlock();
    int getNHBlock();
    int getNVBins();
    int getNHBins();
    int getNSBins();
  
    public slots:
    void activLHisto();
    void activHsHisto();
    void activHsvHisto();
    void activL1();
    void activL2();
    void activCorrel();
    void activChiSqr();
    void activIntersect();
    void activHellinger();
  
    private:
    int m_histoType;
    int m_metrics;
    QSpinBox *m_thresholdSB1;
    QSpinBox *m_thresholdSB2;
    QSpinBox *m_nVBlockSB;
    QSpinBox *m_nHBlockSB;
    QLabel *m_nVBinsLabel;
    QLabel *m_nHBinsLabel;
    QLabel *m_nSBinsLabel;
    QSpinBox *m_nVBinsSB;
    QSpinBox *m_nHBinsSB;
    QSpinBox *m_nSBinsSB;
    QCheckBox *m_iterCB;
  };
  
  #endif