ReadFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rdf::ReadLSD Class Reference

#include <LineTrace.h>

Inheritance diagram for rdf::ReadLSD:
Collaboration diagram for rdf::ReadLSD:

Public Member Functions

 ReadLSD (const cv::Mat &img, const cv::Mat &mask=cv::Mat())
 
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 bool compute () override
 Runs the algorithm implemented by the module. More...
 
cv::Mat magImg () const
 
cv::Mat radImg () const
 
QVector< rdf::LineSegmentlines () const
 
QSharedPointer< ReadLSDConfigconfig () const
 
virtual QString toString () const override
 Converts the module's parameters and results to a string. More...
 
- 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 mSrcImg
 
cv::Mat mLineImg
 
cv::Mat mRegionImg
 
cv::Mat mMagImg
 
cv::Mat mRadImg
 
cv::Mat mMask
 
int mTabSize = 100000
 
double mInv [100000]
 
QVector< rdf::LinehLines
 
QVector< rdf::LinevLines
 
QVector< rdf::LineSegmentmLineSegments
 
- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Constructor & Destructor Documentation

rdf::ReadLSD::ReadLSD ( const cv::Mat &  img,
const cv::Mat &  mask = cv::Mat() 
)

Member Function Documentation

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

checks if all input images are in the specified format.

Implements rdf::Module.

bool rdf::ReadLSD::compute ( )
overridevirtual

Runs the algorithm implemented by the module.

Returns
True on success.
  • Check if the rectangle exceeds the minimal density of

Implements rdf::Module.

QSharedPointer< ReadLSDConfig > rdf::ReadLSD::config ( ) const
bool rdf::ReadLSD::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.

QVector< rdf::LineSegment > rdf::ReadLSD::lines ( ) const
cv::Mat rdf::ReadLSD::magImg ( ) const
cv::Mat rdf::ReadLSD::radImg ( ) const
QString rdf::ReadLSD::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

QVector<rdf::Line> rdf::ReadLSD::hLines
protected
double rdf::ReadLSD::mInv[100000]
protected
cv::Mat rdf::ReadLSD::mLineImg
protected
QVector<rdf::LineSegment> rdf::ReadLSD::mLineSegments
protected
cv::Mat rdf::ReadLSD::mMagImg
protected
cv::Mat rdf::ReadLSD::mMask
protected
cv::Mat rdf::ReadLSD::mRadImg
protected
cv::Mat rdf::ReadLSD::mRegionImg
protected
cv::Mat rdf::ReadLSD::mSrcImg
protected
int rdf::ReadLSD::mTabSize = 100000
protected
QVector<rdf::Line> rdf::ReadLSD::vLines
protected

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