Read@CVL
|
#include <Pixel.h>
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< Pixel > | first () const |
QSharedPointer< Pixel > | second () 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< Pixel > | mFirst |
QSharedPointer< Pixel > | mSecond |
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) |
rdf::PixelEdge::PixelEdge | ( | ) |
rdf::PixelEdge::PixelEdge | ( | const QSharedPointer< Pixel > | first, |
const QSharedPointer< Pixel > | second, | ||
const QString & | id = QString() |
||
) |
void rdf::PixelEdge::draw | ( | QPainter & | p | ) | const |
Line rdf::PixelEdge::edge | ( | ) | const |
|
virtual |
|
virtual |
Reimplemented in rdf::LineEdge.
QSharedPointer< Pixel > rdf::PixelEdge::first | ( | ) | const |
bool rdf::PixelEdge::isNull | ( | ) | const |
|
virtual |
|
overridevirtual |
Reimplemented from rdf::BaseElement.
QSharedPointer< Pixel > rdf::PixelEdge::second | ( | ) | const |
void rdf::PixelEdge::setEdgeWeightFunction | ( | PixelDistance::EdgeWeightFunction & | fnc | ) |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |