27 #include "DkPluginInterface.h" 33 class WIInfo :
public nmc::DkBatchInfo {
36 WIInfo(
const QString&
id = QString(),
const QString& filePath = QString());
48 QString mFeatureFilePath;
55 Q_INTERFACES(nmc::DkBatchPluginInterface)
56 Q_PLUGIN_METADATA(IID
"com.nomacs.ImageLounge.WriterIdentificationPlugin/3.3" FILE
"WriterIdentificationPlugin.json")
62 QString id()
const override;
63 QImage image()
const override;
65 QList<QAction*> createActions(QWidget* parent)
override;
66 QList<QAction*> pluginActions()
const override;
67 QSharedPointer<nmc::DkImageContainer> runPlugin(
69 QSharedPointer<nmc::DkImageContainer> imgC,
70 const nmc::DkSaveInfo& saveInfo,
71 QSharedPointer<nmc::DkBatchInfo>& info)
const;
72 void preLoadPlugin()
const override;
73 void postLoadPlugin(
const QVector<QSharedPointer<nmc::DkBatchInfo> >& batchInfo)
const override;
96 void loadSettings(QSettings& settings);
97 void saveSettings(QSettings& settings)
const;
99 QString extractWriterIDFromFilename(
const QString fileName)
const;
101 QString mSettingsVocPath = QString();
103 int mVocNumberOfClusters = -1;
104 int mVocNumberOfPCA = -1;
105 int mVocMaxSIFTSize = -1;
106 int mVocMinSIFTSize = -1;
107 double mVocPowerNormalization;
109 QString mFeatureDir = QString();
110 QString mEvalFile = QString();
Definition: WriterDatabase.h:218
QStringList mMenuStatusTips
Definition: WriterIdentificationPlugin.h:91
Definition: WriterIdentificationPlugin.h:78
WIInfo(const QString &id=QString(), const QString &filePath=QString())
Definition: WriterIdentificationPlugin.cpp:713
Definition: WriterDatabase.h:124
void setFeatureVector(const cv::Mat featureVec)
Definition: WriterIdentificationPlugin.cpp:732
Definition: WriterIdentificationPlugin.h:79
Definition: WriterIdentificationPlugin.h:80
Definition: WriterIdentificationPlugin.h:76
rdf::WriterDatabase mWIDatabase
Definition: WriterIdentificationPlugin.h:92
void setFeatureFilePath(const QString &p)
Definition: WriterIdentificationPlugin.cpp:724
QList< QAction * > mActions
Definition: WriterIdentificationPlugin.h:88
QStringList mMenuNames
Definition: WriterIdentificationPlugin.h:90
QStringList mRunIDs
Definition: WriterIdentificationPlugin.h:89
Definition: WriterDatabase.h:108
void setWriter(const QString &writer)
Definition: WriterIdentificationPlugin.cpp:716
Definition: WriterIdentificationPlugin.h:81
QString writer() const
Definition: WriterIdentificationPlugin.cpp:720
Definition: WriterIdentificationPlugin.h:33
cv::Mat featureVector() const
Definition: WriterIdentificationPlugin.cpp:736
Definition: WriterIdentificationPlugin.h:53
Definition: WriterIdentificationPlugin.h:75
Definition: WriterIdentificationPlugin.h:77
Definition: BatchTest.cpp:45
QString featureFilePath() const
Definition: WriterIdentificationPlugin.cpp:728