40 #pragma warning(push, 0) // no warnings from includes 43 #include <opencv2/imgproc.hpp> 48 #ifdef DLL_CORE_EXPORT 49 #define DllCoreExport Q_DECL_EXPORT 51 #define DllCoreExport Q_DECL_IMPORT 55 #pragma warning(disable: 4251) // dll interface 65 QString vocabularyPath()
const;
66 void setVocabularyPath(QString path);
68 QString featureDirectory()
const;
69 void setFeatureDirectory(QString dir);
71 QString evalPath()
const;
72 void setEvalPath(QString path);
74 QString toString()
const override;
77 void load(
const QSettings& settings)
override;
78 void save(QSettings& settings)
const override;
81 QString mVocPath =
"";
82 QString mFeatureDir =
"sift";
83 QString mEvalPath =
"";
91 bool compute()
override;
92 QSharedPointer<WriterRetrievalConfig>
config()
const;
95 void setXmlPath(std::string xmlPath);
97 cv::Mat draw(
const cv::Mat& img)
const;
98 QString toString()
const override;
102 bool checkInput()
const override;
106 cv::Mat mDesc = cv::Mat();
107 QVector<cv::KeyPoint> mKeyPoints;
109 QString mXmlPath =
"";
119 void setImage(cv::Mat img);
120 void setMask(cv::Mat mask);
121 void calculateFeatures();
122 void saveFeatures(QString filePath);
123 void loadFeatures(QString filePath);
126 void setKeyPoints(QVector<cv::KeyPoint> kp);
127 QVector<cv::KeyPoint> keyPoints()
const;
128 void setDescriptors(cv::Mat desc);
129 cv::Mat descriptors()
const;
131 void filterKeyPoints(
int minSize,
int maxSize);
132 void filterKeyPointsPoly(QVector<QPolygonF> polys);
138 cv::Mat mMask = cv::Mat();
139 cv::Mat mDescriptors;
140 QVector<cv::KeyPoint> mKeyPoints;
Definition: BaseModule.h:63
#define DllCoreExport
Definition: BaseImageElement.h:43
Definition: WriterRetrieval.h:87
config
Definition: DependencyCollector.py:271
Definition: WriterRetrieval.h:114
Definition: WriterDatabase.h:108
DllCoreExport bool save(const QImage &img, const QString &savePath, int compression=-1)
Saves the specified QImage img.
Definition: Image.cpp:180
Definition: WriterRetrieval.h:61
DllCoreExport QImage load(const QString &path, bool *ok=0)
Definition: Image.cpp:152
This is the base class for all modules. It provides all functions which are implemented by the module...
Definition: BaseModule.h:126
Definition: Algorithms.cpp:45