#include <WriterDatabase.h>
rdf::WriterDatabase::WriterDatabase |
( |
| ) |
|
Initializes a new instance of the WIDatabase class.
void rdf::WriterDatabase::addFile |
( |
const QString |
filePath | ) |
|
Adds a file with local features representing one image to the database
- Parameters
-
void rdf::WriterDatabase::evaluateDatabase |
( |
QStringList |
classLabels, |
|
|
QStringList |
filePaths, |
|
|
QString |
evalFilePath = QString() |
|
) |
| |
Evaluates the database.
- Parameters
-
classLabels | The class labels. |
filePaths | The files paths of the images if needed in the evaluation output |
evalFilePath | If set a csv file with the evaluation is written to the path. |
void rdf::WriterDatabase::evaluateDatabase |
( |
cv::Mat |
hists, |
|
|
QStringList |
classLabels, |
|
|
QStringList |
filePaths, |
|
|
QString |
evalFilePath = QString() |
|
) |
| const |
Evaluates the database with the histograms stored in the vector hists
- Parameters
-
hists | A vector of the histograms. |
classLabels | The class labels. |
filePaths | The file paths. |
evalFilePath | The eval file path. |
void rdf::WriterDatabase::generateVocabulary |
( |
| ) |
|
Generates the vocabulary according to the type set in the vocabulary variable. If the number of PCA components is larger than 0 a PCA is applied beforehand.
void rdf::WriterDatabase::saveVocabulary |
( |
QString |
filePath | ) |
|
Calls the saveVocabulary function of the current vocabulary
- Parameters
-
Sets the vocabulary for this database
- Parameters
-
returns the current vocabulary
- Returns
- the current vocabulary
void rdf::WriterDatabase::writeCompetitionEvaluationFile |
( |
QStringList |
imageNames, |
|
|
QString |
outputPath |
|
) |
| const |
void rdf::WriterDatabase::writeCompetitionEvaluationFile |
( |
cv::Mat |
hists, |
|
|
QStringList |
imageNames, |
|
|
QString |
outputPath |
|
) |
| const |
The documentation for this class was generated from the following files: