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-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
18 {
19 namespace detectors
20 {
21 using vector_detectable_object = std::vector<CDetectableObject::Ptr>;
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::config::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::config::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
mrpt::obs::CObservation::Ptr
std::shared_ptr< CObservation > Ptr
Definition: CObservation.h:45
mrpt::detectors::CObjectDetection::init
void init(const std::string &configFile)
Initialize the object with parameters loaded from the given config file.
Definition: CObjectDetection.h:29
mrpt::detectors::CObjectDetection::detectObjects_Impl
virtual void detectObjects_Impl(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)=0
CConfigFile.h
mrpt
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Definition: CKalmanFilterCapable.h:30
mrpt::detectors::CObjectDetection::detectObjects
void detectObjects(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)
Definition: CObjectDetection.h:46
mrpt::detectors::CObjectDetection
Definition: CObjectDetection.h:24
mrpt::detectors::CObjectDetection::detectObjects
void detectObjects(const mrpt::obs::CObservation::Ptr obs, vector_detectable_object &detected)
Definition: CObjectDetection.h:39
mrpt::config::CConfigFileBase
This class allows loading and storing values and vectors of different types from a configuration text...
Definition: config/CConfigFileBase.h:44
mrpt::img::CImage
A class for storing images as grayscale or RGB bitmaps.
Definition: img/CImage.h:130
mrpt::detectors::vector_detectable_object
std::vector< CDetectableObject::Ptr > vector_detectable_object
Definition: CObjectDetection.h:21
img
GLint GLvoid * img
Definition: glext.h:3763
mrpt::config::CConfigFile
This class allows loading and storing values and vectors of different types from "....
Definition: config/CConfigFile.h:33
mrpt::obs::CObservation
Declares a class that represents any robot's observation.
Definition: CObservation.h:43
string
GLsizei const GLchar ** string
Definition: glext.h:4101
CImage.h
CDetectableObject.h



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST