Main MRPT website > C++ reference for MRPT 1.4.0
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-2016, 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
16#include <mrpt/utils/CImage.h>
17
18namespace 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
39 {
40 detectObjects_Impl(obs.pointer(), detected);
41 };
42
44 {
45 detectObjects_Impl( obs, detected );
46 };
47
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
void detectObjects(const mrpt::utils::CImage *img, vector_detectable_object &detected)
void detectObjects(const mrpt::obs::CObservationPtr obs, vector_detectable_object &detected)
virtual void detectObjects_Impl(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)=0
void detectObjects(const mrpt::obs::CObservation *obs, vector_detectable_object &detected)
void init(const std::string &configFile)
Initialize the object with parameters loaded from the given config file.
virtual void init(const mrpt::utils::CConfigFileBase &cfg)=0
Initialize the object with parameters loaded from the given config source.
Declares a class that represents any robot's observation.
This class allows loading and storing values and vectors of different types from a configuration text...
This class allows loading and storing values and vectors of different types from "....
Definition: CConfigFile.h:29
A class for storing images as grayscale or RGB bitmaps.
Definition: CImage.h:102
std::vector< CDetectableObjectPtr > vector_detectable_object
struct OBS_IMPEXP CObservationPtr
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.



Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Mar 22 09:54:56 UTC 2023