NimbRo ROS Soccer Package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
LineDetector.hpp
1 //LineDetector.hpp
2 // Created on: May 14, 2015
3 // Author: Hafez Farazi <farazi@ais.uni-bonn.de>
4 #pragma once
5 #include <opencv2/opencv.hpp>
6 #include <math.h>
7 #include <vision_module/Tools/Parameters.hpp>
8 #include <vision_module/Tools/General.hpp>
9 #include <vision_module/Tools/LineSegment.hpp>
10 #include <vision_module/Projections/CameraProjections.hpp>
11 #include <algorithm> // std::sort
12 #include <math.h> /* pow */
13 #include <vision_module/SoccerObjects/IDetector.hpp>
14 #include <vision_module/Tools/BoundaryLinearInterpolation.hpp>
15 
16 using namespace cv;
22 class LineDetector: public IDetector
23 {
24 public:
25  bool GetLines(Mat &rawHSV, Mat & fieldMask, Mat &guiImg,
26  CameraProjections &projection, bool SHOWGUI, const Mat &lineBinary,
27  Rect box, vector<LineSegment> &resLines);
28  inline ~LineDetector()
29  {
30  }
31  inline bool Init()
32  {
33  return true;
34  }
35 };
For pixel projections.
Definition: CameraProjections.hpp:50
For detecting field lines.
Definition: LineDetector.hpp:22