|
void | copySimilarityAttributes (qlonglong srcId, qlonglong destId) |
|
QList< qlonglong > | getDirtyOrMissingFingerprints (const QList< ItemInfo > &imageInfos, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
QStringList | getDirtyOrMissingFingerprintURLs (const QList< ItemInfo > &imageInfos, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
double | getImageSimilarity (qlonglong imageID1, qlonglong imageID2, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
QList< FuzzyAlgorithm > | getImageSimilarityAlgorithms (qlonglong imageID1, qlonglong imageID2) |
|
QString | getLegacySetting (const QString &keyword) |
|
QString | getSetting (const QString &keyword) |
|
bool | hasDirtyOrMissingFingerprint (const ItemInfo &imageInfo, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) const |
|
bool | hasFingerprint (qlonglong imageId, FuzzyAlgorithm algorithm) const |
|
bool | hasFingerprints () |
|
bool | hasFingerprints (FuzzyAlgorithm algorithm) const |
|
bool | integrityCheck () |
|
QSet< qlonglong > | registeredImageIds () const |
|
void | removeImageFingerprint (qlonglong imageID, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
void | removeImageSimilarity (qlonglong imageID, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
void | removeImageSimilarity (qlonglong imageID1, qlonglong imageID2, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
void | setImageSimilarity (qlonglong imageID1, qlonglong imageID2, double value, FuzzyAlgorithm algorithm=FuzzyAlgorithm::Haar) |
|
bool | setSetting (const QString &keyword, const QString &value) |
|
void | vacuum () |
|
◆ copySimilarityAttributes()
void Digikam::SimilarityDb::copySimilarityAttributes |
( |
qlonglong |
srcId, |
|
|
qlonglong |
destId |
|
) |
| |
◆ getDirtyOrMissingFingerprints()
Returns a list of all item ids (images, videos,...) where either no fingerprint for the given algorithm exists or is outdated because the file is identified as changed since the generation of the fingerprint.
- Parameters
-
imageInfos | The image info objects representing the items. |
algorithm | The algorithm. |
- Returns
- The ids of the items whose fingerprints are dirty or missing.
References Digikam::ItemInfo::id(), Digikam::ItemInfo::modDateTime(), and Digikam::ItemInfo::uniqueHash().
◆ getDirtyOrMissingFingerprintURLs()
◆ getImageSimilarity()
◆ getImageSimilarityAlgorithms()
QList< FuzzyAlgorithm > Digikam::SimilarityDb::getImageSimilarityAlgorithms |
( |
qlonglong |
imageID1, |
|
|
qlonglong |
imageID2 |
|
) |
| |
Returns the algorithms for which a similarity value exists for the given image ids.
- Parameters
-
imageID1 | The first image id. |
imageID2 | The second image id. |
- Returns
- a list of all algorithms for which a similarity value exists.
◆ getLegacySetting()
QString Digikam::SimilarityDb::getLegacySetting |
( |
const QString & |
keyword | ) |
|
Returns the legacy settings with the keyword name.
- Parameters
-
keyword | The setting entry name. |
- Returns
- The setting value.
◆ getSetting()
QString Digikam::SimilarityDb::getSetting |
( |
const QString & |
keyword | ) |
|
Returns the setting with the keyword name.
- Parameters
-
keyword | The setting entry name. |
- Returns
- The setting value.
◆ hasDirtyOrMissingFingerprint()
◆ hasFingerprint()
bool Digikam::SimilarityDb::hasFingerprint |
( |
qlonglong |
imageId, |
|
|
FuzzyAlgorithm |
algorithm |
|
) |
| const |
This method checks if the given image has a fingerprint for the given algorithm.
- Parameters
-
imageId | The Id of the image to check. |
algorithm | The algorithm. |
- Returns
- True, if there is a fingerprint.
◆ hasFingerprints() [1/2]
bool Digikam::SimilarityDb::hasFingerprints |
( |
| ) |
|
This method checks if there are any fingerprints for any algorithm present.
- Returns
- True, if fingerprints exist.
◆ hasFingerprints() [2/2]
bool Digikam::SimilarityDb::hasFingerprints |
( |
FuzzyAlgorithm |
algorithm | ) |
const |
This method checks if there are any fingerprints for the given algorithm.
- Parameters
-
- Returns
- true, if there are fingerprints and false, otherwise.
◆ integrityCheck()
bool Digikam::SimilarityDb::integrityCheck |
( |
| ) |
|
This method checks the integrity of the similarity database.
- Returns
- true, if the integrity check was passed and false, else.
◆ registeredImageIds()
QSet< qlonglong > Digikam::SimilarityDb::registeredImageIds |
( |
| ) |
const |
This method returns all image ids that are present in the similarity db tables.
- Returns
- a set of all present image ids.
◆ removeImageFingerprint()
This method removes the fingerprint entry for the given imageId and algorithm. Also, this automatically removes the entries in the ImageSimilarities table for the given algorithm and image id.
- Parameters
-
imageID | The image id. |
algorithm | The algorithm. |
◆ removeImageSimilarity() [1/2]
◆ removeImageSimilarity() [2/2]
This method removes the image similarity entry for the imageIDs and algorithm.
- Parameters
-
imageID1 | The first image id. |
imageID2 | The second image id. |
algorithm | The algorithm. |
◆ setImageSimilarity()
◆ setSetting()
bool Digikam::SimilarityDb::setSetting |
( |
const QString & |
keyword, |
|
|
const QString & |
value |
|
) |
| |
Set the database setting entry given by keyword to the given value.
- Parameters
-
keyword | The keyword, i.e. setting name. |
value | The value. |
- Returns
- True, if the value was set and false, else..
References value.
◆ vacuum()
void Digikam::SimilarityDb::vacuum |
( |
| ) |
|
◆ SimilarityDbAccess
The documentation for this class was generated from the following files: