-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathextractiontester.h
executable file
·85 lines (64 loc) · 2.63 KB
/
extractiontester.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef EXTRACTIONTESTER_H
#define EXTRACTIONTESTER_H
#include <QObject>
#include <QThread>
#include <QDebug>
#include "preprocessing.h"
#include "extraction.h"
class ExtractionTester : public QThread
{
Q_OBJECT
public:
ExtractionTester();
~ExtractionTester();
QString getInputPath() const;
void setInputPath(const QString &value);
void setPreprocessingParams(int blockSize, int basicOMapBlockSize, int advancedOMapBlockSize, double basicOMapSigma, double advancedOMapSigma, double gaborSigma, double gaborLambda, int holeSize);
void setFeatures(bool useContrastEnhancement, bool useAdvancedOrientationMap, bool useRemoveHoles, bool generateIvertedSkeleton, bool useMask, bool useQualityMap, bool useFrequencyMap);
void setExtractionFeatures(int useOrientationFixer, int useVarBlockSize);
cv::Mat getImgOrig() const;
void setImgOrig(const cv::Mat &value);
cv::Mat getImgSkeleton() const;
cv::Mat getImgSkeletonInv() const;
cv::Mat getImgOMap() const;
cv::Mat getImgQMap() const;
cv::Mat getImgFMap() const;
bool getIsImgLoaded() const;
QVector<MINUTIA> getCrossingNumber() const;
QVector<MINUTIA> getFixedOrientations() const;
QVector<MINUTIA> getCheckedMnutiae() const;
private:
QString inputPath;
Preprocessing *preprocessing;
Extraction *extraction;
cv::Mat imgOrig;
cv::Mat imgMask;
cv::Mat imgOMap;
cv::Mat imgQMap;
cv::Mat imgFMap;
cv::Mat imgEnhanced;
cv::Mat imgBinarized;
cv::Mat imgSkeleton;
cv::Mat imgSkeletonInv;
cv::Mat oMap;
cv::Mat qMap;
QVector<MINUTIA> crossingNumber;
QVector<MINUTIA> fixedOrientations;
QVector<MINUTIA> checkedMnutiae;
bool isImgLoaded;
void sendResults();
void startExtraction();
private slots:
void startTesting();
void saveResults(PREPROCESSING_ALL_RESULTS results);
void sendDurationLog(PREPROCESSING_DURATIONS durations);
void sendExtractionDurationLog(EXTRACTION_DURATIONS durations);
void saveExtractionResults(EXTRACTION_RESULTS results);
void sendExtractionResults();
signals:
void preprocessingResultsSignal(cv::Mat imgOrig, cv::Mat imgOMap, cv::Mat imgEnhanced, cv::Mat imgBinarized, cv::Mat imgSkeleton, cv::Mat imgSkeletonInv, cv::Mat imgMask, cv::Mat imgQMap, cv::Mat imgFMap);
void sendLogSignal(QString field, QString text);
void extractionResultsSignal(cv::Mat imgSkeleton, QVector<MINUTIA> crossingNumber, QVector<MINUTIA> fixedOrientations, QVector<MINUTIA> checkedMnutiae);
void startPreprocessing();
};
#endif // EXTRACTIONTESTER_H