28 #ifndef DIGIKAM_HAAR_IFACE_H
29 #define DIGIKAM_HAAR_IFACE_H
103 explicit HaarIface(
const QSet<qlonglong>& images2Scan);
106 static int preferredSize();
111 bool indexImage(
const QString& filename);
112 bool indexImage(
const QString& filename,
const QImage& image);
113 bool indexImage(
const QString& filename,
const DImg& image);
114 bool indexImage(qlonglong imageid,
const QImage& image);
115 bool indexImage(qlonglong imageid,
const DImg& image);
117 QMap<qlonglong, double> bestMatchesForSignature(
const QString& signature,
119 int numberOfResults = 20,
127 QPair<double, QMap<qlonglong, double> > bestMatchesForImageWithThreshold(
129 double requiredPercentage,
130 double maximumPercentage,
141 QPair<double, QMap<qlonglong, double> > bestMatchesForImageWithThreshold(
142 const QString& imagePath,
143 double requiredPercentage,
144 double maximumPercentage,
154 QString signatureAsText(
const QImage& image);
160 bool fulfillsRestrictions(qlonglong imageId,
162 qlonglong originalImageId,
173 double*
const lowestAndBestScore,
174 double*
const highestAndWorstScore);
183 const QSet<qlonglong>& images2Scan,
184 const QSet<qlonglong>::const_iterator& rangeBegin,
185 const QSet<qlonglong>::const_iterator& rangeEnd,
186 double requiredPercentage,
187 double maximumPercentage,
195 static QSet<qlonglong> imagesFromAlbumsAndTags(
const QList<int>& albums2Scan,
215 void setAlbumRootsToSearch(
const QList<int>& albumRootIds);
216 void setAlbumRootsToSearch(
const QSet<int>& albumRootIds);
223 QImage loadQImage(
const QString& filename);
227 bool indexImage(qlonglong imageid);
240 QPair<double, QMap<qlonglong, double> > bestMatchesWithThreshold(qlonglong imageid,
242 double requiredPercentage,
243 double maximumPercentage,
261 qlonglong originalImageId = -1,
267 std::reference_wrapper<Haar::SignatureMap>*
const queryMaps);
Definition: haariface_p.h:103
Definition: haariface.h:72
QMap< qlonglong, QPair< double, QList< qlonglong > > > DuplicatesResultsMap
Definition: haariface.h:98
AlbumTagRelation
Definition: haariface.h:90
DuplicatesSearchRestrictions
Definition: haariface.h:83
SketchType
Definition: haariface.h:77
Definition: haariface.h:52
HaarProgressObserver()=default
virtual bool isCanceled()
Definition: haariface.h:59
virtual void imageProcessed()=0
virtual ~HaarProgressObserver()=default
Definition: datefolderview.cpp:43