#include <WriterDatabase.h>
|
| WriterDatabase () |
| Initializes a new instance of the WIDatabase class. More...
|
|
void | addFile (const QString filePath) |
| Adds a file with local features representing one image to the database More...
|
|
void | 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. More...
|
|
void | setVocabulary (const WriterVocabulary voc) |
| Sets the vocabulary for this database More...
|
|
WriterVocabulary | vocabulary () const |
| returns the current vocabulary More...
|
|
void | saveVocabulary (QString filePath) |
| Calls the saveVocabulary function of the current vocabulary More...
|
|
void | evaluateDatabase (QStringList classLabels, QStringList filePaths, QString filePath=QString()) |
| Evaluates the database. More...
|
|
void | evaluateDatabase (QVector< cv::Mat >, QStringList classLabels, QStringList filePaths, QString filePath=QString()) const |
| Evaluates the database with the histograms stored in the vector hists More...
|
|
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 |
( |
QVector< 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
The documentation for this class was generated from the following files: