ReadFramework
rdf::LayoutAnalysis Class Reference

#include <LayoutAnalysis.h>

Inheritance diagram for rdf::LayoutAnalysis:
Collaboration diagram for rdf::LayoutAnalysis:

Public Member Functions

 LayoutAnalysis (const cv::Mat &img)
 
bool isEmpty () const override
 Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed. More...
 
bool compute () override
 Runs the algorithm implemented by the module. More...
 
QSharedPointer< LayoutAnalysisConfigconfig () const
 
cv::Mat draw (const cv::Mat &img, const QColor &col=QColor()) const
 
QString toString () const override
 Converts the module's parameters and results to a string. More...
 
void setRootRegion (const QSharedPointer< RootRegion > &region)
 
TextBlockSet textBlockSet () const
 
QVector< SeparatorRegionstopLines () const
 
PixelSet pixels () const
 
QSharedPointer< ScaleFactoryscaleFactory () const
 
- Public Member Functions inherited from rdf::Module
 Module ()
 Default constructor Initializes a new instance of the Module class. More...
 
virtual QString name () const
 Returns the module's name. More...
 
virtual void setConfig (QSharedPointer< ModuleConfig > config)
 
QSharedPointer< ModuleConfigconfig () const
 

Additional Inherited Members

- Protected Member Functions inherited from rdf::Module
QString debugName () const
 
- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Constructor & Destructor Documentation

rdf::LayoutAnalysis::LayoutAnalysis ( const cv::Mat &  img)

Member Function Documentation

bool rdf::LayoutAnalysis::compute ( )
overridevirtual

Runs the algorithm implemented by the module.

Returns
True on success.

Implements rdf::Module.

Here is the caller graph for this function:

QSharedPointer< LayoutAnalysisConfig > rdf::LayoutAnalysis::config ( ) const

Here is the caller graph for this function:

cv::Mat rdf::LayoutAnalysis::draw ( const cv::Mat &  img,
const QColor &  col = QColor() 
) const

Here is the caller graph for this function:

bool rdf::LayoutAnalysis::isEmpty ( ) const
overridevirtual

Returns true if the module was initialized with the default constructor. Note, if empty is true, nothing can be computed.

Returns
Returns true if the module was initialized.

Implements rdf::Module.

PixelSet rdf::LayoutAnalysis::pixels ( ) const
QSharedPointer< ScaleFactory > rdf::LayoutAnalysis::scaleFactory ( ) const
void rdf::LayoutAnalysis::setRootRegion ( const QSharedPointer< RootRegion > &  region)

Here is the caller graph for this function:

QVector< SeparatorRegion > rdf::LayoutAnalysis::stopLines ( ) const

Here is the caller graph for this function:

TextBlockSet rdf::LayoutAnalysis::textBlockSet ( ) const

Here is the caller graph for this function:

QString rdf::LayoutAnalysis::toString ( ) const
overridevirtual

Converts the module's parameters and results to a string.

Returns
The string containing all parameters and results of the module.

Reimplemented from rdf::Module.


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