#include "HoughBaseAlg.h"
|
| HoughTransform () |
|
| ~HoughTransform () |
|
void | Init (unsigned int dx, unsigned int dy, float rhores, unsigned int numACells) |
|
std::array< int, 3 > | AddPointReturnMax (int x, int y) |
|
bool | SubtractPoint (int x, int y) |
|
int | GetCell (int row, int col) const |
|
void | SetCell (int row, int col, int value) |
|
void | GetAccumSize (int &numRows, int &numCols) |
|
int | NumAccumulated () |
|
void | GetEquation (float row, float col, float &rho, float &theta) const |
|
int | GetMax (int &xmax, int &ymax) const |
|
void | reconfigure (fhicl::ParameterSet const &pset) |
|
Definition at line 481 of file HoughBaseAlg.h.
Type of the Hough transform (angle, distance) map with custom allocator.
Definition at line 525 of file HoughBaseAlg.h.
cluster::HoughTransform::HoughTransform |
( |
| ) |
|
cluster::HoughTransform::~HoughTransform |
( |
| ) |
|
std::array< int, 3 > cluster::HoughTransform::AddPointReturnMax |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
std::array< int, 3 > cluster::HoughTransform::DoAddPointReturnMax |
( |
int |
x, |
|
|
int |
y, |
|
|
bool |
bSubtract = false |
|
) |
| |
|
private |
Definition at line 910 of file HoughBaseAlg.cxx.
References cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::decrement(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::increment_and_get_max(), and max.
Referenced by GetMax().
912 std::array<int, 3>
max;
930 for (
size_t iAngleStep = 1; iAngleStep <
m_numAngleCells; ++iAngleStep) {
961 if(lastDist == dist) {
968 first_dist = dist > lastDist? lastDist: dist + 1;
969 end_dist = dist > lastDist? dist: lastDist + 1;
983 distMap.decrement(first_dist, end_dist);
987 = distMap.increment_and_get_max(first_dist, end_dist, max_val);
989 if (max_counter.second > max_val) {
994 max = {{ max_counter.second, max_counter.first.key(), (int) iAngleStep }};
995 max_val = max_counter.second;
void cluster::HoughTransform::GetAccumSize |
( |
int & |
numRows, |
|
|
int & |
numCols |
|
) |
| |
|
inline |
int cluster::HoughTransform::GetCell |
( |
int |
row, |
|
|
int |
col |
|
) |
| const |
|
inline |
void cluster::HoughTransform::GetEquation |
( |
float |
row, |
|
|
float |
col, |
|
|
float & |
rho, |
|
|
float & |
theta |
|
) |
| const |
int cluster::HoughTransform::GetMax |
( |
int & |
xmax, |
|
|
int & |
ymax |
|
) |
| const |
void cluster::HoughTransform::Init |
( |
unsigned int |
dx, |
|
|
unsigned int |
dy, |
|
|
float |
rhores, |
|
|
unsigned int |
numACells |
|
) |
| |
int cluster::HoughTransform::NumAccumulated |
( |
| ) |
|
|
inline |
void cluster::HoughTransform::SetCell |
( |
int |
row, |
|
|
int |
col, |
|
|
int |
value |
|
) |
| |
|
inline |
bool cluster::HoughTransform::SubtractPoint |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
column (map key)=rho, row (vector index)=theta
Definition at line 536 of file HoughBaseAlg.h.
std::vector<double> cluster::HoughTransform::m_cosTable |
|
private |
unsigned int cluster::HoughTransform::m_dx |
|
private |
unsigned int cluster::HoughTransform::m_dy |
|
private |
int cluster::HoughTransform::m_numAccumulated |
|
private |
unsigned int cluster::HoughTransform::m_numAngleCells |
|
private |
float cluster::HoughTransform::m_rhoResolutionFactor |
|
private |
unsigned int cluster::HoughTransform::m_rowLength |
|
private |
std::vector<double> cluster::HoughTransform::m_sinTable |
|
private |
The documentation for this class was generated from the following files:
- /cvmfs/larsoft.opensciencegrid.org/products/larreco/v07_10_02/source/larreco/RecoAlg/HoughBaseAlg.h
- /cvmfs/larsoft.opensciencegrid.org/products/larreco/v07_10_02/source/larreco/RecoAlg/HoughBaseAlg.cxx