MRPT  2.0.4
CCascadeClassifierDetection.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2020, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
13 
14 namespace mrpt::detectors
15 {
16 /**
17  * \ingroup mrpt_detectors_grp
18  */
20 {
21  public:
23 
25 
26  /** Initialize cascade classifier detection */
27  void init(const mrpt::config::CConfigFileBase& cfg) override;
28 
29  protected:
30  /** Detect objects in a *CObservation
31  * \return A vector with detected objects
32  */
33 
34  void detectObjects_Impl(
35  const mrpt::obs::CObservation& obs,
36  vector_detectable_object& detected) override;
37 
38  /** Cascade classifier object */
39  void* m_cascade;
40 
41  struct TOptions
42  {
43  std::string cascadeFileName;
44  double scaleFactor;
46  int flags;
47  int minSize;
48  /** Cascade classifier options */
49  } m_options;
50 
51 }; // End of class
52 } // namespace mrpt::detectors
struct mrpt::detectors::CCascadeClassifierDetection::TOptions m_options
std::vector< CDetectableObject::Ptr > vector_detectable_object
void detectObjects_Impl(const mrpt::obs::CObservation &obs, vector_detectable_object &detected) override
Detect objects in a *CObservation.
This class allows loading and storing values and vectors of different types from a configuration text...
void init(const mrpt::config::CConfigFileBase &cfg) override
Initialize cascade classifier detection.
Declares a class that represents any robot&#39;s observation.
Definition: CObservation.h:43



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: c4d914402 Wed Jun 3 12:47:17 2020 +0200 at miƩ jun 3 13:00:13 CEST 2020