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-2018, 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 
15 #include <mrpt/img/CImage.h>
16 
17 namespace mrpt::detectors
18 {
19 using vector_detectable_object = std::vector<CDetectableObject::Ptr>;
20 
21 /** \ingroup mrpt_detectors_grp */
23 {
24  public:
25  /** Initialize the object with parameters loaded from the given config file.
26  */
27  inline void init(const std::string& configFile)
28  {
29  mrpt::config::CConfigFile cfg(configFile);
30  init(cfg);
31  }
32 
33  /** Initialize the object with parameters loaded from the given config
34  * source. */
35  virtual void init(const mrpt::config::CConfigFileBase& cfg) = 0;
36 
37  inline void detectObjects(
39  vector_detectable_object& detected)
40  {
41  detectObjects_Impl(obs.get(), detected);
42  };
43 
44  inline void detectObjects(
46  {
47  detectObjects_Impl(obs, detected);
48  };
49 
50  void detectObjects(
52 
53  protected:
54  virtual void detectObjects_Impl(
55  const mrpt::obs::CObservation* obs,
56  vector_detectable_object& detected) = 0;
57 
58 }; // End of class
59 }
60 #endif
61 
62 
This class allows loading and storing values and vectors of different types from ".ini" files easily.
std::vector< CDetectableObject::Ptr > 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:3763
void init(const std::string &configFile)
Initialize the object with parameters loaded from the given config file.
GLsizei const GLchar ** string
Definition: glext.h:4101
virtual void detectObjects_Impl(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)=0
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:43
void detectObjects(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)
void detectObjects(const mrpt::obs::CObservation::Ptr obs, vector_detectable_object &detected)
A class for storing images as grayscale or RGB bitmaps.
Definition: img/CImage.h:130



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020