Read@CVL
rdf::LineEdge Class Reference

#include <Pixel.h>

Inheritance diagram for rdf::LineEdge:
Collaboration diagram for rdf::LineEdge:

Public Member Functions

 LineEdge ()
 
 LineEdge (const PixelEdge &pe)
 
 LineEdge (const QSharedPointer< Pixel > first, const QSharedPointer< Pixel > second, const QString &id=QString())
 
virtual double edgeWeightConst () const override
 
- Public Member Functions inherited from rdf::PixelEdge
 PixelEdge ()
 
 PixelEdge (const QSharedPointer< Pixel > first, const QSharedPointer< Pixel > second, const QString &id=QString())
 
virtual bool lessThan (const PixelEdge &e) const
 
bool isNull () const
 
void setEdgeWeightFunction (PixelDistance::EdgeWeightFunction &fnc)
 
virtual double edgeWeight ()
 
Line edge () const
 
QSharedPointer< Pixelfirst () const
 
QSharedPointer< Pixelsecond () const
 
void scale (double s) override
 
void draw (QPainter &p) const
 
- Public Member Functions inherited from rdf::BaseElement
 BaseElement (const QString &id=QString())
 This class keeps an ID to keep track of transformed elements during a processing chain. You can e.g. generate Pixel elements from MserBlobs. After filtering, processing etc. you can map back to the (pixel accurate) MserBlob using this ID. More...
 
void setId (const QString &id)
 Sets the (preferably unique) ID. If no ID is set, a unqiue ID is generated and assigned. More...
 
QString id () const
 Returns the elment's id. More...
 
virtual QString toString () const
 

Protected Member Functions

double statsWeight (const QSharedPointer< Pixel > &pixel) const
 
double calcWeight () const
 

Protected Attributes

double mEdgeWeight = 0.0
 
- Protected Attributes inherited from rdf::PixelEdge
bool mIsNull = true
 
double mEdgeWeight = DBL_MAX
 
PixelDistance::EdgeWeightFunction mWeightFnc = PixelDistance::spacingWeighted
 
QSharedPointer< PixelmFirst
 
QSharedPointer< PixelmSecond
 
Line mEdge
 
- Protected Attributes inherited from rdf::BaseElement
QString mId
 

Friends

DllCoreExport bool operator< (const QSharedPointer< LineEdge > &le1, const QSharedPointer< LineEdge > &le2)
 

Constructor & Destructor Documentation

rdf::LineEdge::LineEdge ( )
rdf::LineEdge::LineEdge ( const PixelEdge pe)
rdf::LineEdge::LineEdge ( const QSharedPointer< Pixel first,
const QSharedPointer< Pixel second,
const QString &  id = QString() 
)

Member Function Documentation

double rdf::LineEdge::calcWeight ( ) const
protected
double rdf::LineEdge::edgeWeightConst ( ) const
overridevirtual

Reimplemented from rdf::PixelEdge.

double rdf::LineEdge::statsWeight ( const QSharedPointer< Pixel > &  pixel) const
protected

Friends And Related Function Documentation

DllCoreExport bool operator< ( const QSharedPointer< LineEdge > &  le1,
const QSharedPointer< LineEdge > &  le2 
)
friend

Member Data Documentation

double rdf::LineEdge::mEdgeWeight = 0.0
protected

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