ReadFramework
rdf::LineTraceLSD Class Reference

Detect lines using the LSD algorithm. This line finder implements the LSD method from OpenCV contrib. More...

#include <LineTrace.h>

Inheritance diagram for rdf::LineTraceLSD:
Collaboration diagram for rdf::LineTraceLSD:

Public Member Functions

 LineTraceLSD (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...
 
virtual bool compute () override
 Runs the algorithm implemented by the module. More...
 
QVector< Linelines () const
 
QVector< LineseparatorLines () const
 Returns only lines that are perpendicular or parallel to the image coordinates. More...
 
QSharedPointer< LineTraceLSDConfigconfig () const
 
LineFilter lineFilter () const
 
virtual QString toString () const override
 Converts the module's parameters and results to a string. More...
 
cv::Mat draw (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
 
QVector< LinemLines
 
LineFilter mLineFilter
 
- Protected Attributes inherited from rdf::Module
QSharedPointer< ModuleConfigmConfig
 

Detailed Description

Detect lines using the LSD algorithm. This line finder implements the LSD method from OpenCV contrib.

See also
Module

Constructor & Destructor Documentation

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

Member Function Documentation

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

checks if all input images are in the specified format.

Implements rdf::Module.

bool rdf::LineTraceLSD::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< LineTraceLSDConfig > rdf::LineTraceLSD::config ( ) const

Here is the caller graph for this function:

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

Here is the caller graph for this function:

bool rdf::LineTraceLSD::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.

LineFilter rdf::LineTraceLSD::lineFilter ( ) const

Here is the caller graph for this function:

QVector< Line > rdf::LineTraceLSD::lines ( ) const

Here is the caller graph for this function:

QVector< Line > rdf::LineTraceLSD::separatorLines ( ) const

Returns only lines that are perpendicular or parallel to the image coordinates.

Returns

Here is the caller graph for this function:

QString rdf::LineTraceLSD::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

cv::Mat rdf::LineTraceLSD::mImg
protected
LineFilter rdf::LineTraceLSD::mLineFilter
protected
QVector<Line> rdf::LineTraceLSD::mLines
protected

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