LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Public Member Functions | |
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) |
Private Types | |
typedef HoughTransformCounters< int, signed char, 64 > | BaseMap_t |
rho -> # hits (for convenience) More... | |
typedef HoughTransformCounters< int, signed char, 64 > | DistancesMap_t |
typedef std::vector< DistancesMap_t > | HoughImage_t |
Type of the Hough transform (angle, distance) map with custom allocator. More... | |
Private Member Functions | |
std::array< int, 3 > | DoAddPointReturnMax (int x, int y, bool bSubtract=false) |
Private Attributes | |
unsigned int | m_dx |
unsigned int | m_dy |
unsigned int | m_rowLength |
unsigned int | m_numAngleCells |
float | m_rhoResolutionFactor |
HoughImage_t | m_accum |
column (map key)=rho, row (vector index)=theta More... | |
int | m_numAccumulated |
std::vector< double > | m_cosTable |
std::vector< double > | m_sinTable |
Definition at line 74 of file HoughBaseAlg.cxx.
|
private |
rho -> # hits (for convenience)
Definition at line 94 of file HoughBaseAlg.cxx.
|
private |
Definition at line 95 of file HoughBaseAlg.cxx.
|
private |
Type of the Hough transform (angle, distance) map with custom allocator.
Definition at line 98 of file HoughBaseAlg.cxx.
|
inline |
Definition at line 645 of file HoughBaseAlg.cxx.
References DoAddPointReturnMax(), m_dx, and m_dy.
Referenced by cluster::HoughBaseAlg::FastTransform(), cluster::HoughBaseAlg::HoughBaseAlg(), and cluster::HoughBaseAlg::Transform().
|
private |
Definition at line 738 of file HoughBaseAlg.cxx.
References cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::decrement(), larg4::dist(), cluster::HoughTransformCounters< KEY, COUNTER, SIZE, ALLOC, SUBCOUNTERS >::increment_and_get_max(), m_accum, m_cosTable, m_numAccumulated, m_numAngleCells, m_rhoResolutionFactor, m_rowLength, and m_sinTable.
Referenced by AddPointReturnMax(), and SubtractPoint().
|
inline |
Definition at line 81 of file HoughBaseAlg.cxx.
References m_accum, and m_rowLength.
Referenced by cluster::HoughBaseAlg::HoughBaseAlg(), and cluster::HoughBaseAlg::Transform().
|
inline |
Definition at line 637 of file HoughBaseAlg.cxx.
Referenced by cluster::HoughBaseAlg::FastTransform(), cluster::HoughBaseAlg::HoughBaseAlg(), and cluster::HoughBaseAlg::Transform().
void cluster::HoughTransform::GetEquation | ( | float | row, |
float | col, | ||
float & | rho, | ||
float & | theta | ||
) | const |
Definition at line 712 of file HoughBaseAlg.cxx.
References m_numAngleCells, m_rhoResolutionFactor, and m_rowLength.
Referenced by cluster::HoughBaseAlg::FastTransform(), cluster::HoughBaseAlg::HoughBaseAlg(), NumAccumulated(), and cluster::HoughBaseAlg::Transform().
int cluster::HoughTransform::GetMax | ( | int & | xmax, |
int & | ymax | ||
) | const |
Definition at line 719 of file HoughBaseAlg.cxx.
References m_accum.
Referenced by NumAccumulated(), and cluster::HoughBaseAlg::Transform().
void cluster::HoughTransform::Init | ( | unsigned int | dx, |
unsigned int | dy, | ||
float | rhores, | ||
unsigned int | numACells | ||
) |
Definition at line 664 of file HoughBaseAlg.cxx.
References m_accum, m_cosTable, m_dx, m_dy, m_numAccumulated, m_numAngleCells, m_rhoResolutionFactor, m_rowLength, m_sinTable, and PI.
Referenced by cluster::HoughBaseAlg::FastTransform(), cluster::HoughBaseAlg::HoughBaseAlg(), and cluster::HoughBaseAlg::Transform().
|
inline |
Definition at line 86 of file HoughBaseAlg.cxx.
References GetEquation(), GetMax(), m_numAccumulated, and reconfigure().
void cluster::HoughTransform::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Referenced by NumAccumulated().
|
inline |
Definition at line 80 of file HoughBaseAlg.cxx.
References m_accum.
Referenced by cluster::HoughBaseAlg::FastTransform(), and cluster::HoughBaseAlg::HoughBaseAlg().
|
inline |
Definition at line 656 of file HoughBaseAlg.cxx.
References DoAddPointReturnMax(), m_dx, and m_dy.
Referenced by cluster::HoughBaseAlg::HoughBaseAlg().
|
private |
column (map key)=rho, row (vector index)=theta
Definition at line 108 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), GetAccumSize(), GetCell(), GetMax(), Init(), and SetCell().
|
private |
Definition at line 110 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), and Init().
|
private |
Definition at line 100 of file HoughBaseAlg.cxx.
Referenced by AddPointReturnMax(), Init(), and SubtractPoint().
|
private |
Definition at line 101 of file HoughBaseAlg.cxx.
Referenced by AddPointReturnMax(), Init(), and SubtractPoint().
|
private |
Definition at line 109 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), Init(), and NumAccumulated().
|
private |
Definition at line 103 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), GetEquation(), and Init().
|
private |
Definition at line 104 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), GetEquation(), and Init().
|
private |
Definition at line 102 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), GetAccumSize(), GetEquation(), and Init().
|
private |
Definition at line 111 of file HoughBaseAlg.cxx.
Referenced by DoAddPointReturnMax(), and Init().