rankretrieval.h
1.1 KB
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
#ifndef BR_RANKRETRIEVAL_H
#define BR_RANKRETRIEVAL_H
#include <QFutureWatcher>
#include <QFileDialog>
#include <openbr/openbr_plugin.h>
#include <openbr/gui/faceviewer.h>
namespace br {
class BR_EXPORT RankRetrieval : public QWidget
{
Q_OBJECT
int gridPage, gridSize;
File target, query;
FileList matches;
QList<float> scores;
QFutureWatcher<void> enrollWatcher;
QFutureWatcher<void> compareWatcher;
QString targetPath;
public:
explicit RankRetrieval(QWidget *parent = 0);
public slots:
void setAlgorithm(const QString &algorithm);
void clear();
void setIndex(int index);
void setTargetGallery(const File &file);
void setTargetPath();
void setQueryGallery(const File &file);
void first();
void previous();
void next();
void last();
void setGridSize(const QString &size);
void compare();
private slots:
void compareDone();
signals:
void newTargetFileList(FileList);
void newQueryFile(File);
void newScore(float);
private:
void enroll();
void display();
};
} // namespace br
#endif // BR_RANKRETRIEVAL_H