digiKam
inatscore.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2021-03-20
7  * Description : a tool to export images to iNaturalist web service
8  *
9  * Copyright (C) 2021 by Joerg Lohse <joergmlpts at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_INAT_SCORE_H
24 #define DIGIKAM_INAT_SCORE_H
25 
26 // Qt includes
27 
28 #include <QList>
29 #include <QPair>
30 
31 // Local includes
32 
33 #include "inattaxon.h"
34 
36 {
37 
39 {
40 public:
41 
43 
44  ComputerVisionScore(double frequencyStore, double visionScore,
45  double combinedScore, const Taxon& taxon);
46 
48 
50 
52 
53  bool isValid() const;
54 
55  bool visuallySimilar() const;
56 
57  bool seenNearby() const;
58 
59  double getFrequencyScore() const;
60 
61  double getVisionScore() const;
62 
63  double getCombinedScore() const;
64 
65  const Taxon& getTaxon() const;
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 
72  class Node;
73 };
74 
75 typedef QPair<QString, QList<ComputerVisionScore> > ImageScores;
76 
77 } // namespace DigikamGenericINatPlugin
78 
79 #endif // DIGIKAM_INAT_SCORE_H
ComputerVisionScore & operator=(const ComputerVisionScore &)
Definition: inatscore.cpp:78
bool visuallySimilar() const
Definition: inatscore.cpp:115
double getFrequencyScore() const
Definition: inatscore.cpp:95
const Taxon & getTaxon() const
Definition: inatscore.cpp:110
ComputerVisionScore()
Definition: inatscore.cpp:67
bool isValid() const
Definition: inatscore.cpp:90
~ComputerVisionScore()
Definition: inatscore.cpp:85
double getCombinedScore() const
Definition: inatscore.cpp:105
bool seenNearby() const
Definition: inatscore.cpp:120
double getVisionScore() const
Definition: inatscore.cpp:100
Definition: inattaxon.h:57
Definition: inatbrowserdlg.cpp:64
QPair< QString, QList< ComputerVisionScore > > ImageScores
Definition: inatscore.h:75