ReadModules
 All Classes Namespaces Files Functions Variables Enumerations Enumerator
rdm::LayoutPlugin Class Reference

#include <LayoutPlugin.h>

Inheritance diagram for rdm::LayoutPlugin:
Collaboration diagram for rdm::LayoutPlugin:

Public Types

enum  {
  id_layout_draw, id_layout_xml, id_text_block, id_text_block_xml,
  id_lines, id_line_img, id_layout_collect_features, id_layout_train,
  id_end
}
 

Public Member Functions

 LayoutPlugin (QObject *parent=0)
 
 ~LayoutPlugin ()
 
QString id () const override
 
QImage image () const override
 
QList< QAction * > createActions (QWidget *parent) override
 
QList< QAction * > pluginActions () const override
 
QSharedPointer
< nmc::DkImageContainer > 
runPlugin (const QString &runID, QSharedPointer< nmc::DkImageContainer > imgC, const nmc::DkSaveInfo &saveInfo, QSharedPointer< nmc::DkBatchInfo > &batchInfo) const override
 
virtual void preLoadPlugin () const override
 
virtual void postLoadPlugin (const QVector< QSharedPointer< nmc::DkBatchInfo > > &) const override
 

Protected Member Functions

void init ()
 
cv::Mat compute (const cv::Mat &src, const rdf::PageXmlParser &parser) const
 
cv::Mat computePageSegmentation (const cv::Mat &src, const rdf::PageXmlParser &parser) const
 
void collectFeatures (const cv::Mat &src, const rdf::PageXmlParser &parser, QSharedPointer< LayoutInfo > &layoutInfo) const
 
rdf::LineTrace computeLines (QSharedPointer< nmc::DkImageContainer > imgC) const
 

Protected Attributes

QList< QAction * > mActions
 
QStringList mRunIDs
 
QStringList mMenuNames
 
QStringList mMenuStatusTips
 
rdf::LineTraceConfig mLTRConfig
 
rdf::SuperPixelLabelerConfig mSplConfig
 
rdf::SuperPixelClassifierConfig mSpcConfig
 

Member Enumeration Documentation

anonymous enum
Enumerator
id_layout_draw 
id_layout_xml 
id_text_block 
id_text_block_xml 
id_lines 
id_line_img 
id_layout_collect_features 
id_layout_train 
id_end 

Constructor & Destructor Documentation

rdm::LayoutPlugin::LayoutPlugin ( QObject *  parent = 0)

Constructor

rdm::LayoutPlugin::~LayoutPlugin ( )

Destructor

Member Function Documentation

void rdm::LayoutPlugin::collectFeatures ( const cv::Mat &  src,
const rdf::PageXmlParser &  parser,
QSharedPointer< LayoutInfo > &  layoutInfo 
) const
protected
cv::Mat rdm::LayoutPlugin::compute ( const cv::Mat &  src,
const rdf::PageXmlParser &  parser 
) const
protected
rdf::LineTrace rdm::LayoutPlugin::computeLines ( QSharedPointer< nmc::DkImageContainer >  imgC) const
protected
cv::Mat rdm::LayoutPlugin::computePageSegmentation ( const cv::Mat &  src,
const rdf::PageXmlParser &  parser 
) const
protected
QList< QAction * > rdm::LayoutPlugin::createActions ( QWidget *  parent)
override
QString rdm::LayoutPlugin::id ( ) const
override

Returns unique ID for the generated dll

QImage rdm::LayoutPlugin::image ( ) const
override

Returns descriptive iamge for every ID

Parameters
pluginID
void rdm::LayoutPlugin::init ( )
protected
QList< QAction * > rdm::LayoutPlugin::pluginActions ( ) const
override
void rdm::LayoutPlugin::postLoadPlugin ( const QVector< QSharedPointer< nmc::DkBatchInfo > > &  batchInfo) const
overridevirtual
virtual void rdm::LayoutPlugin::preLoadPlugin ( ) const
inlineoverridevirtual
QSharedPointer< nmc::DkImageContainer > rdm::LayoutPlugin::runPlugin ( const QString &  runID,
QSharedPointer< nmc::DkImageContainer >  imgC,
const nmc::DkSaveInfo &  saveInfo,
QSharedPointer< nmc::DkBatchInfo > &  batchInfo 
) const
override

Main function: runs plugin based on its ID

Parameters
pluginID
imageto be processed

Member Data Documentation

QList<QAction*> rdm::LayoutPlugin::mActions
protected
rdf::LineTraceConfig rdm::LayoutPlugin::mLTRConfig
protected
QStringList rdm::LayoutPlugin::mMenuNames
protected
QStringList rdm::LayoutPlugin::mMenuStatusTips
protected
QStringList rdm::LayoutPlugin::mRunIDs
protected
rdf::SuperPixelClassifierConfig rdm::LayoutPlugin::mSpcConfig
protected
rdf::SuperPixelLabelerConfig rdm::LayoutPlugin::mSplConfig
protected

The documentation for this class was generated from the following files: