ReadFramework
rdf::LineFilter Class Reference

#include <LineTrace.h>

Public Member Functions

 LineFilter ()
 
QVector< rdf::LinefilterLineAngle (const QVector< rdf::Line > &lines, double angle, double angleDiff=DBL_MAX) const
 Filters all lines accordinge a specified angle and the allowed angle difference angleDiff. More...
 
QVector< rdf::LinemergeLines (const QVector< rdf::Line > &lines, QVector< rdf::Line > *gaps=0, double maxGap=DBL_MAX, double maxAngleDiff=DBL_MAX) const
 Merges the lines. More...
 
QVector< rdf::LineremoveSmall (const QVector< rdf::Line > &lines, int minLineLength=0) const
 
QSharedPointer< LineFilterConfigconfig () const
 

Protected Attributes

QSharedPointer< LineFilterConfigmConfig
 

Constructor & Destructor Documentation

rdf::LineFilter::LineFilter ( )

Member Function Documentation

QSharedPointer< LineFilterConfig > rdf::LineFilter::config ( ) const

Here is the caller graph for this function:

QVector< rdf::Line > rdf::LineFilter::filterLineAngle ( const QVector< rdf::Line > &  lines,
double  angle,
double  maxAngleDiff = DBL_MAX 
) const

Filters all lines accordinge a specified angle and the allowed angle difference angleDiff.

Parameters
linesThe line vector.
angleThe angle in radians.
angleDiffThe maximal allowed angle difference in radians.
Returns
The filtered line vector.
QVector< rdf::Line > rdf::LineFilter::mergeLines ( const QVector< rdf::Line > &  lines,
QVector< rdf::Line > *  gaps = 0,
double  maxGap = DBL_MAX,
double  maxAngleDiff = DBL_MAX 
) const

Merges the lines.

Parameters
linesSome lines.
maxGapThe maximum gap.
maxSlopeDiffThe maximum slope difference in radians.
maxAngleDiffThe maximum angle difference in radians.
Returns
The merged lines
QVector< rdf::Line > rdf::LineFilter::removeSmall ( const QVector< rdf::Line > &  lines,
int  minLineLength = 0 
) const

Member Data Documentation

QSharedPointer<LineFilterConfig> rdf::LineFilter::mConfig
protected

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