Image Component Library (ICL)
HoughLine.h
Go to the documentation of this file.
1 /********************************************************************
2 ** Image Component Library (ICL) **
3 ** **
4 ** Copyright (C) 2006-2013 CITEC, University of Bielefeld **
5 ** Neuroinformatics Group **
6 ** Website: www.iclcv.org and **
7 ** http://opensource.cit-ec.de/projects/icl **
8 ** **
9 ** File : ICLCV/src/ICLCV/HoughLine.h **
10 ** Module : ICLCV **
11 ** Authors: Christof Elbrechter **
12 ** **
13 ** **
14 ** GNU LESSER GENERAL PUBLIC LICENSE **
15 ** This file may be used under the terms of the GNU Lesser General **
16 ** Public License version 3.0 as published by the **
17 ** **
18 ** Free Software Foundation and appearing in the file LICENSE.LGPL **
19 ** included in the packaging of this file. Please review the **
20 ** following information to ensure the license requirements will **
21 ** be met: http://www.gnu.org/licenses/lgpl-3.0.txt **
22 ** **
23 ** The development of this software was supported by the **
24 ** Excellence Cluster EXC 277 Cognitive Interaction Technology. **
25 ** The Excellence Cluster EXC 277 is a grant of the Deutsche **
26 ** Forschungsgemeinschaft (DFG) in the context of the German **
27 ** Excellence Initiative. **
28 ** **
29 ********************************************************************/
30 
31 #pragma once
32 
33 #include <ICLUtils/Point32f.h>
34 #include <ICLCore/ImgBase.h>
35 #include <vector>
36 
37 namespace icl{
38  namespace cv{
40 
50  HoughLine();
51 
53 
56  HoughLine(const utils::Point32f &offs, const utils::Point32f &dir);
57 
59 
61  HoughLine(icl32f distance, icl32f angle);
62 
64  void sample(core::ImgBase *image, icl32f r, icl32f g, icl32f b, icl32f alpha=255) const;
65 
67 
121  static utils::Point32f getIntersection(const HoughLine &a, const HoughLine &b);
122 
124  static std::vector<utils::Point32f> getPairwiseIntersections(const std::vector<HoughLine> &lines);
125 
128 
130  float rho() const { return m_distance; }
131 
133  float theta() const { return m_angle; }
134 
135  private:
136  float m_distance;
137  float m_angle;
140  };
141  } // namespace cv
142 }
143 
undocument this line if you encounter any issues!
Definition: Any.h:37
Line Equation structure.
Definition: HoughLine.h:48
float m_distance
Definition: HoughLine.h:136
utils::Point32f m_offset
Definition: HoughLine.h:138
#define ICLCV_API
Definition: CompatMacros.h:177
Ipp32f icl32f
32Bit floating point type for the ICL
Definition: BasicTypes.h:55
utils::Point32f m_direction
Definition: HoughLine.h:139
float theta() const
convenence function for transf. into IppPointPolar
Definition: HoughLine.h:133
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
float rho() const
convenence function for transf. into IppPointPolar
Definition: HoughLine.h:130
float m_angle
Definition: HoughLine.h:137
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
static const utils::Point32f NO_INTERSECTION
indicator for no found intersection (lines intersect in infinity – max-float)
Definition: HoughLine.h:127