HoughPeak.h
Go to the documentation of this file.
1 /////////////////////////////////////////////////////////////////
2 // \file HoughPeak.h
3 // \brief Contains class definition for hough peak object
4 // \version $ID: $
5 // \author edniner@fnal.gov
6 ////////////////////////////////////////////////////////////////
7 #ifndef HOUGHPEAK_H
8 #define HOUGHPEAK_H
9 
10 namespace novaddt{
11  class HoughPeak
12  {
13  public:
14  HoughPeak();
15  ~HoughPeak();
16 
17 #ifndef __GCCXML__
18 
19  public:
20  HoughPeak(const float rho,
21  const float theta,
22  const float sigmarho,
23  const float sigmatheta,
24  const int significance);
25  HoughPeak(const HoughPeak& hp);
26 
27  //getters for the data members
28  const float Rho () const;
29  const float Theta () const;
30  const float SigmaRho () const;
31  const float SigmaTheta () const;
32  const int Significance () const;
33 
34  //setters for the data members
35  void SetRho (const float& r );
36  void SetTheta (const float& t );
37  void SetSigmaRho (const float& sr );
38  void SetSigmaTheta (const float& st );
39  void SetSignificance (const int& sig );
40 #endif
41 
42  private:
43  float _rho; ///< hough transform distance from origin
44  float _theta; ///< hough transform angle coordinate
45  float _sigmarho; ///< spread in rho
46  float _sigmatheta; ///< spread in theta
47  int _significance; ///< number of hough points in peak
48  };
49 
50 
51  inline
53  _rho(0.0f),
54  _theta(0.0f),
55  _sigmarho(0.0f),
56  _sigmatheta(0.0f),
57  _significance(0)
58  {
59  }
60 
61 #ifndef __GCCXML__
62 
63  inline
64  HoughPeak(const float rho,
65  const float theta,
66  const float sigmarho,
67  const float sigmatheta,
68  const int significance) :
69  _rho (rho),
70  _theta (theta),
71  _sigmarho (sigmarho),
72  _sigmatheta (sigmatheta),
73  _significance (significance)
74  {
75  }
76 
77  inline
78  HoughPeak(const HoughPeak& hp):
79  _rho (hp._rho),
80  _theta (hp._theta),
81  _sigmarho (hp._sigmarho),
84  {
85  }
86 
87  inline const float Rho () const { return _rho; }
88  inline const float Theta () const { return _theta; }
89  inline const float SigmaRho () const { return _sigmaRho; }
90  inline const float SigmaTheta () const { return _sigmatheta; }
91  inline const int Significance () const { return _significance; }
92 
93  //setters for the data members
94  inline void SetRho (const float& r ) { _rho = r; }
95  inline void SetTheta (const float& t ) { _theta = t; }
96  inline void SetSigmaRho (const float& sr ) { _sigmarho = sr; }
97  inline void SetSigmaTheta (const float& st ) { _sigmatheta = st; }
98  inline void SetSignificance (const int& sig ) { _significance = sig; }
99 
100 #endif
101 
102 }
103 #endif
void SetTheta(const float &t)
const int Significance() const
const float SigmaTheta() const
float _sigmarho
spread in rho
Definition: HoughPeak.h:45
int _significance
number of hough points in peak
Definition: HoughPeak.h:47
caf::StandardRecord * sr
float _rho
hough transform distance from origin
Definition: HoughPeak.h:43
void SetSigmaTheta(const float &st)
const float SigmaRho() const
float _sigmatheta
spread in theta
Definition: HoughPeak.h:46
float _theta
hough transform angle coordinate
Definition: HoughPeak.h:44
void SetSignificance(const int &sig)
TRandom3 r(0)
void SetSigmaRho(const float &sr)
const float Theta() const
const float Rho() const
void SetRho(const float &r)