Main MRPT website > C++ reference for MRPT 1.9.9
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 #ifndef CObjectDetection_H
11 #define CObjectDetection_H
12 
14 #include <mrpt/utils/CConfigFile.h>
15 #include <mrpt/utils/CImage.h>
16 
17 namespace mrpt
18 {
19 namespace detectors
20 {
21 typedef std::vector<CDetectableObject::Ptr> vector_detectable_object;
22 
23 /** \ingroup mrpt_detectors_grp */
25 {
26  public:
27  /** Initialize the object with parameters loaded from the given config file.
28  */
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
36  * source. */
37  virtual void init(const mrpt::utils::CConfigFileBase& cfg) = 0;
38 
39  inline void detectObjects(
41  vector_detectable_object& detected)
42  {
43  detectObjects_Impl(obs.get(), detected);
44  };
45 
46  inline void detectObjects(
48  {
49  detectObjects_Impl(obs, detected);
50  };
51 
52  void detectObjects(
54 
55  protected:
56  virtual void detectObjects_Impl(
57  const mrpt::obs::CObservation* obs,
58  vector_detectable_object& detected) = 0;
59 
60 }; // End of class
61 }
62 }
63 
64 #endif
A class for storing images as grayscale or RGB bitmaps.
Definition: CImage.h:118
This class allows loading and storing values and vectors of different types from ".ini" files easily.
Definition: CConfigFile.h:35
This class allows loading and storing values and vectors of different types from a configuration text...
GLint GLvoid * img
Definition: glext.h:3763
void init(const std::string &configFile)
Initialize the object with parameters loaded from the given config file.
std::shared_ptr< CObservation > Ptr
Definition: CObservation.h:43
GLsizei const GLchar ** string
Definition: glext.h:4101
virtual void detectObjects_Impl(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)=0
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
std::vector< CDetectableObject::Ptr > vector_detectable_object
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:41
void detectObjects(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)
void detectObjects(const mrpt::obs::CObservation::Ptr obs, vector_detectable_object &detected)



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019