Definition at line 71 of file DBScanAlg.cxx.
AcceptEllipse::AcceptEllipse |
( |
const BoundingBox & |
b, |
|
|
double |
r1, |
|
|
double |
r2 |
|
) |
| |
|
inlineexplicit |
Definition at line 76 of file DBScanAlg.cxx.
double c[2]
center of the bounding box
const BoundingBox & m_bound
AcceptEllipse::AcceptEllipse |
( |
| ) |
|
|
inlineprivate |
Definition at line 110 of file DBScanAlg.cxx.
References EmptyBoundingBox.
static const BoundingBox EmptyBoundingBox
double c[2]
center of the bounding box
const BoundingBox & m_bound
bool AcceptEllipse::operator() |
( |
const RTree::Node *const |
node | ) |
const |
|
inline |
Definition at line 85 of file DBScanAlg.cxx.
88 return m_bound.overlaps(node->bound);
const BoundingBox & m_bound
bool AcceptEllipse::operator() |
( |
const RTree::Leaf *const |
leaf | ) |
const |
|
inline |
Definition at line 90 of file DBScanAlg.cxx.
94 C[0] = (leaf->bound.edges[0].second + leaf->bound.edges[0].first) / 2.0;
95 C[1] = (leaf->bound.edges[1].second + leaf->bound.edges[1].first) / 2.0;
96 D[0] = (leaf->bound.edges[0].second - leaf->bound.edges[0].first) / 2.0;
97 D[1] = (leaf->bound.edges[1].second - leaf->bound.edges[1].first) / 2.0;
99 for (
int i = 0; i < 2; ++i) {
102 t += ((
c[i] - C[i]) * (
c[i] - C[i])) / ((
d[i] + D[i]) * (
d[i] + D[i]));
double c[2]
center of the bounding box
double AcceptEllipse::c[2] |
double AcceptEllipse::d[2] |
double AcceptEllipse::r[2] |
The documentation for this struct was generated from the following file: