35 #include "DkPluginInterface.h" 56 LayoutInfo(
const QString&
id = QString(),
const QString& filePath = QString());
68 Q_INTERFACES(nmc::DkBatchPluginInterface)
69 Q_PLUGIN_METADATA(IID
"com.nomacs.ImageLounge.LayoutPlugin/3.0" FILE
"LayoutPlugin.json")
75 QString id()
const override;
76 QImage image()
const override;
78 QList<QAction*> createActions(QWidget* parent)
override;
79 QList<QAction*> pluginActions()
const override;
80 QSharedPointer<nmc::DkImageContainer> runPlugin(
82 QSharedPointer<nmc::DkImageContainer> imgC,
83 const nmc::DkSaveInfo& saveInfo,
84 QSharedPointer<nmc::DkBatchInfo>& batchInfo)
const override;
87 virtual void postLoadPlugin(
const QVector<QSharedPointer<nmc::DkBatchInfo> > &)
const override;
118 void collectFeatures(
const cv::Mat& src,
const rdf::PageXmlParser&
parser, QSharedPointer<LayoutInfo>& layoutInfo)
const;
119 rdf::LineTrace computeLines(QSharedPointer<nmc::DkImageContainer> imgC)
const;
Definition: LayoutPlugin.h:91
Definition: SuperPixelClassification.h:93
Manages FeatureCollections. Hence, each label (e.g. printed text) is stored here along with it's feat...
Definition: SuperPixelTrainer.h:99
Definition: LayoutPlugin.h:93
virtual void preLoadPlugin() const override
Definition: LayoutPlugin.h:86
QStringList mRunIDs
Definition: LayoutPlugin.h:105
Definition: LineTrace.h:103
Definition: LayoutPlugin.h:94
Definition: LayoutPlugin.h:53
Definition: LayoutPlugin.h:96
QList< QAction * > mActions
Definition: LayoutPlugin.h:104
Detects Lines in a binary image. The result is a binary image containing all line elements (pixel acc...
Definition: LineTrace.h:151
Definition: LayoutPlugin.h:90
Definition: PageParser.h:60
rdf::LineTraceConfig mLTRConfig
Definition: LayoutPlugin.h:109
Definition: LayoutPlugin.h:66
Definition: LayoutPlugin.h:95
Definition: Algorithms.cpp:45
rdf::SuperPixelLabelerConfig mSplConfig
Definition: LayoutPlugin.h:110
parser
Definition: DependencyCollector.py:216
QStringList mMenuNames
Definition: LayoutPlugin.h:106
Definition: BatchTest.cpp:45
QStringList mMenuStatusTips
Definition: LayoutPlugin.h:107
rdf::SuperPixelClassifierConfig mSpcConfig
Definition: LayoutPlugin.h:111
This class configures the feature collection process. It controls I/O paths for feature labels and fe...
Definition: SuperPixelTrainer.h:135
Definition: LayoutPlugin.h:97
Definition: LayoutPlugin.h:92