ReadFramework
rdf::TextLineSkew Class Reference

#include <SkewEstimation.h>

Inheritance diagram for rdf::TextLineSkew:
Collaboration diagram for rdf::TextLineSkew:

Public Member Functions

 TextLineSkew (const cv::Mat &img=cv::Mat())
 
bool compute ()
 Runs the algorithm implemented by the module. More...
 
double getAngle ()
 
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...
 
virtual QString toString () const override
 Converts the module's parameters and results to a string. More...
 
QSharedPointer< TextLineSkewConfigconfig () const
 
cv::Mat draw (const cv::Mat &img) const
 
cv::Mat rotated (const cv::Mat &img) 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
 

Protected Member Functions

bool checkInput () const override
 
- Protected Member Functions inherited from rdf::Module
QString debugName () const
 

Protected Attributes

cv::Mat mImg
 
PixelSet mSet
 
QSharedPointer< ScaleFactorymScaleFactory
 
double mAngle = 0.0
 
- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Constructor & Destructor Documentation

rdf::TextLineSkew::TextLineSkew ( const cv::Mat &  img = cv::Mat())

Member Function Documentation

bool rdf::TextLineSkew::checkInput ( ) const
overrideprotectedvirtual

checks if all input images are in the specified format.

Implements rdf::Module.

Here is the caller graph for this function:

bool rdf::TextLineSkew::compute ( )
virtual

Runs the algorithm implemented by the module.

Returns
True on success.

Implements rdf::Module.

Here is the caller graph for this function:

QSharedPointer< TextLineSkewConfig > rdf::TextLineSkew::config ( ) const

Here is the caller graph for this function:

cv::Mat rdf::TextLineSkew::draw ( const cv::Mat &  img) const

Here is the caller graph for this function:

double rdf::TextLineSkew::getAngle ( )
bool rdf::TextLineSkew::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.

cv::Mat rdf::TextLineSkew::rotated ( const cv::Mat &  img) const

Here is the caller graph for this function:

QString rdf::TextLineSkew::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.

Member Data Documentation

double rdf::TextLineSkew::mAngle = 0.0
protected
cv::Mat rdf::TextLineSkew::mImg
protected
QSharedPointer<ScaleFactory> rdf::TextLineSkew::mScaleFactory
protected
PixelSet rdf::TextLineSkew::mSet
protected

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