ReadFramework
rdf::RegionPixelConnector Class Reference

Fully connected graph. Super pixels are connected with all other super pixels within a region. More...

#include <PixelSet.h>

Inheritance diagram for rdf::RegionPixelConnector:
Collaboration diagram for rdf::RegionPixelConnector:

Public Member Functions

 RegionPixelConnector (double multiplier=2.0)
 
virtual QVector< QSharedPointer< PixelEdge > > connect (const QVector< QSharedPointer< Pixel > > &pixels) const override
 Fully connected graph. Super pixels are connected with all other super pixels within a region of radius lineSpacing() * radiusFactor or radius. More...
 
void setRadius (double radius)
 
void setLineSpacingMultiplier (double multiplier)
 
- Public Member Functions inherited from rdf::PixelConnector
 PixelConnector ()
 
void setDistanceFunction (const PixelDistance::PixelDistanceFunction &distFnc)
 
void setStopLines (const QVector< Line > &stopLines)
 Sets the stop lines. Edges that intersect with stop lines are removed. More...
 

Protected Attributes

double mRadius = 0.0
 
double mMultiplier = 2.0
 
- Protected Attributes inherited from rdf::PixelConnector
PixelDistance::PixelDistanceFunction mDistanceFnc
 
QVector< LinemStopLines
 

Additional Inherited Members

- Protected Member Functions inherited from rdf::PixelConnector
QVector< QSharedPointer< PixelEdge > > filter (QVector< QSharedPointer< PixelEdge > > &edges) const
 

Detailed Description

Fully connected graph. Super pixels are connected with all other super pixels within a region.

See also
PixelConnector

Constructor & Destructor Documentation

rdf::RegionPixelConnector::RegionPixelConnector ( double  multiplier = 2.0)

Member Function Documentation

QVector< QSharedPointer< PixelEdge > > rdf::RegionPixelConnector::connect ( const QVector< QSharedPointer< Pixel > > &  pixels) const
overridevirtual

Fully connected graph. Super pixels are connected with all other super pixels within a region of radius lineSpacing() * radiusFactor or radius.

Returns
Connecting edges.

Implements rdf::PixelConnector.

void rdf::RegionPixelConnector::setLineSpacingMultiplier ( double  multiplier)
void rdf::RegionPixelConnector::setRadius ( double  radius)

Member Data Documentation

double rdf::RegionPixelConnector::mMultiplier = 2.0
protected
double rdf::RegionPixelConnector::mRadius = 0.0
protected

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