Main MRPT website > C++ reference
MRPT logo
CObjectDetection.h
Go to the documentation of this file.
1 /* +---------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2014, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +---------------------------------------------------------------------------+ */
9 
10 
11 #ifndef CObjectDetection_H
12 #define CObjectDetection_H
13 
15 #include <mrpt/utils/CConfigFile.h>
16 #include <mrpt/utils/CImage.h>
17 
18 namespace mrpt
19 {
20  namespace detectors
21  {
22  using namespace std;
23  using namespace mrpt::slam;
24  using namespace mrpt::utils;
25 
26  typedef std::vector<CDetectableObjectPtr> vector_detectable_object;
27 
28  /** \ingroup mrpt_detectors_grp */
30  {
31  public:
32  //virtual ~CObjectDetection();
33 
34  /** Initialize the object with parameters loaded from the given config file. */
35  inline void init(const std::string &configFile)
36  {
37  mrpt::utils::CConfigFile cfg(configFile);
38  init(cfg);
39  }
40 
41  /** Initialize the object with parameters loaded from the given config source. */
42  virtual void init(const mrpt::utils::CConfigFileBase &cfg )=0;
43 
44  inline void detectObjects(const CObservationPtr obs, vector_detectable_object &detected)
45  {
46  detectObjects_Impl(obs.pointer(), detected);
47  };
48 
49  inline void detectObjects( const CObservation *obs, vector_detectable_object &detected)
50  {
51  detectObjects_Impl( obs, detected );
52  };
53 
54  void detectObjects(const CImage *img, vector_detectable_object &detected);
55 
56  protected:
57 
58  virtual void detectObjects_Impl( const CObservation *obs, vector_detectable_object &detected) = 0;
59 
60  }; // End of class
61  }
62 
63 }
64 
65 #endif
66 
67 
68 
69 
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
Definition: zip.h:16
A class for storing images as grayscale or RGB bitmaps.
Definition: CImage.h:97
This class allows loading and storing values and vectors of different types from ".ini" files easily.
Definition: CConfigFile.h:28
std::vector< CDetectableObjectPtr > vector_detectable_object
STL namespace.
void detectObjects(const CObservation *obs, vector_detectable_object &detected)
This namespace contains algorithms for SLAM, localization, map building, representation of robot's ac...
This class allows loading and storing values and vectors of different types from a configuration text...
Declares a class that represents any robot's observation.
Definition: CObservation.h:52
void init(const std::string &configFile)
Initialize the object with parameters loaded from the given config file.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
void detectObjects(const CObservationPtr obs, vector_detectable_object &detected)



Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014