Read@CVL
rdf::PixelEdge Class Reference

#include <Pixel.h>

Inheritance diagram for rdf::PixelEdge:
Collaboration diagram for rdf::PixelEdge:

Public Member Functions

 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 edgeWeightConst () const
 
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 Attributes

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 PixelEdge &pe1, const PixelEdge &pe2)
 
DllCoreExport bool operator< (const QSharedPointer< PixelEdge > &pe1, const QSharedPointer< PixelEdge > &pe2)
 

Constructor & Destructor Documentation

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

Member Function Documentation

void rdf::PixelEdge::draw ( QPainter &  p) const
Line rdf::PixelEdge::edge ( ) const
double rdf::PixelEdge::edgeWeight ( )
virtual
double rdf::PixelEdge::edgeWeightConst ( ) const
virtual

Reimplemented in rdf::LineEdge.

QSharedPointer< Pixel > rdf::PixelEdge::first ( ) const
bool rdf::PixelEdge::isNull ( ) const
bool rdf::PixelEdge::lessThan ( const PixelEdge e) const
virtual
void rdf::PixelEdge::scale ( double  s)
overridevirtual

Reimplemented from rdf::BaseElement.

QSharedPointer< Pixel > rdf::PixelEdge::second ( ) const
void rdf::PixelEdge::setEdgeWeightFunction ( PixelDistance::EdgeWeightFunction fnc)

Friends And Related Function Documentation

DllCoreExport bool operator< ( const PixelEdge pe1,
const PixelEdge pe2 
)
friend
DllCoreExport bool operator< ( const QSharedPointer< PixelEdge > &  pe1,
const QSharedPointer< PixelEdge > &  pe2 
)
friend

Member Data Documentation

Line rdf::PixelEdge::mEdge
protected
double rdf::PixelEdge::mEdgeWeight = DBL_MAX
protected
QSharedPointer<Pixel> rdf::PixelEdge::mFirst
protected
bool rdf::PixelEdge::mIsNull = true
protected
QSharedPointer<Pixel> rdf::PixelEdge::mSecond
protected
PixelDistance::EdgeWeightFunction rdf::PixelEdge::mWeightFnc = PixelDistance::spacingWeighted
protected

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