Read@CVL
|
DBScan clustering for pixels. More...
#include <PixelSet.h>
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< PixelSet > | sets () 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 |
DBScan clustering for pixels.
|
protected |
rdf::DBScanPixel::DBScanPixel | ( | const PixelSet & | pixels | ) |
|
protected |
void rdf::DBScanPixel::compute | ( | ) |
QVector< QSharedPointer< PixelEdge > > rdf::DBScanPixel::edges | ( | ) | const |
|
protected |
|
protected |
void rdf::DBScanPixel::setDistanceFunction | ( | const PixelDistance::PixelDistanceFunction & | distFnc | ) |
void rdf::DBScanPixel::setEpsilonMultiplier | ( | double | eps | ) |
void rdf::DBScanPixel::setFast | ( | bool | f | ) |
void rdf::DBScanPixel::setMaxDistance | ( | double | dist | ) |
QVector< PixelSet > rdf::DBScanPixel::sets | ( | ) | const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |