ReadFramework
rdf::DBScanPixel Class Reference

DBScan clustering for pixels. More...

#include <PixelSet.h>

Collaboration diagram for rdf::DBScanPixel:

Public Member Functions

 DBScanPixel (const PixelSet &pixels)
 
void compute ()
 
void setMaxDistance (double dist)
 
void setEpsilonMultiplier (double eps)
 
void setDistanceFunction (const PixelDistance::PixelDistanceFunction &distFnc)
 
void setFast (bool f)
 
QVector< PixelSetsets () const
 
QVector< QSharedPointer< PixelEdge > > edges () const
 

Protected Types

enum  Label { not_visited = 0, visited, noise, cluster0 }
 

Protected Member Functions

void expandCluster (int pixelIndex, unsigned int clusterIndex, const QVector< int > &neighbors, double eps, int minPts) const
 
QVector< int > regionQuery (int pixelIdx, double eps) const
 
cv::Mat calcDists (const PixelSet &pixels) const
 

Protected Attributes

PixelSet mPixels
 
cv::Mat mDists
 
cv::Mat mLabels
 
unsigned int * mLabelPtr
 
unsigned int mCLabel = cluster0
 
PixelDistance::PixelDistanceFunction mDistFnc = &PixelDistance::euclidean
 
double mMaxDistance = 0
 
double mEpsMultiplier = 2.0
 
int mMinPts = 3
 
bool mFast = false
 

Detailed Description

DBScan clustering for pixels.

Member Enumeration Documentation

enum rdf::DBScanPixel::Label
protected
Enumerator
not_visited 
visited 
noise 
cluster0 

Constructor & Destructor Documentation

rdf::DBScanPixel::DBScanPixel ( const PixelSet pixels)

Member Function Documentation

cv::Mat rdf::DBScanPixel::calcDists ( const PixelSet pixels) const
protected
void rdf::DBScanPixel::compute ( )

Here is the caller graph for this function:

QVector< QSharedPointer< PixelEdge > > rdf::DBScanPixel::edges ( ) const

Here is the caller graph for this function:

void rdf::DBScanPixel::expandCluster ( int  pixelIndex,
unsigned int  clusterIndex,
const QVector< int > &  neighbors,
double  eps,
int  minPts 
) const
protected
QVector< int > rdf::DBScanPixel::regionQuery ( int  pixelIdx,
double  eps 
) const
protected
void rdf::DBScanPixel::setDistanceFunction ( const PixelDistance::PixelDistanceFunction distFnc)

Here is the caller graph for this function:

void rdf::DBScanPixel::setEpsilonMultiplier ( double  eps)
void rdf::DBScanPixel::setFast ( bool  f)

Here is the caller graph for this function:

void rdf::DBScanPixel::setMaxDistance ( double  dist)

Here is the caller graph for this function:

QVector< PixelSet > rdf::DBScanPixel::sets ( ) const

Here is the caller graph for this function:

Member Data Documentation

unsigned int rdf::DBScanPixel::mCLabel = cluster0
protected
PixelDistance::PixelDistanceFunction rdf::DBScanPixel::mDistFnc = &PixelDistance::euclidean
protected
cv::Mat rdf::DBScanPixel::mDists
protected
double rdf::DBScanPixel::mEpsMultiplier = 2.0
protected
bool rdf::DBScanPixel::mFast = false
protected
unsigned int* rdf::DBScanPixel::mLabelPtr
protected
cv::Mat rdf::DBScanPixel::mLabels
protected
double rdf::DBScanPixel::mMaxDistance = 0
protected
int rdf::DBScanPixel::mMinPts = 3
protected
PixelSet rdf::DBScanPixel::mPixels
protected

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