Main MRPT website > C++ reference for MRPT 1.5.7
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-2017, 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  typedef std::vector<CDetectableObjectPtr> vector_detectable_object;
23 
24  /** \ingroup mrpt_detectors_grp */
26  {
27  public:
28  /** Initialize the object with parameters loaded from the given config file. */
29  inline void init(const std::string &configFile)
30  {
31  mrpt::utils::CConfigFile cfg(configFile);
32  init(cfg);
33  }
34 
35  /** Initialize the object with parameters loaded from the given config source. */
36  virtual void init(const mrpt::utils::CConfigFileBase &cfg )=0;
37 
38  inline void detectObjects(const mrpt::obs::CObservationPtr obs, vector_detectable_object &detected)
39  {
40  detectObjects_Impl(obs.pointer(), detected);
41  };
42 
44  {
45  detectObjects_Impl( obs, detected );
46  };
47 
48  void detectObjects(const mrpt::utils::CImage *img, vector_detectable_object &detected);
49 
50  protected:
51 
52  virtual void detectObjects_Impl( const mrpt::obs::CObservation *obs, vector_detectable_object &detected) = 0;
53 
54  }; // End of class
55  }
56 
57 }
58 
59 #endif
60 
61 
62 
63 
A class for storing images as grayscale or RGB bitmaps.
Definition: CImage.h:101
void detectObjects(const mrpt::obs::CObservationPtr obs, vector_detectable_object &detected)
This class allows loading and storing values and vectors of different types from ".ini" files easily.
Definition: CConfigFile.h:30
std::vector< CDetectableObjectPtr > vector_detectable_object
This class allows loading and storing values and vectors of different types from a configuration text...
GLint GLvoid * img
Definition: glext.h:3645
void init(const std::string &configFile)
Initialize the object with parameters loaded from the given config file.
GLsizei const GLchar ** string
Definition: glext.h:3919
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Declares a class that represents any robot&#39;s observation.
void detectObjects(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)



Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019