MRPT  2.0.4
List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes
mrpt::detectors::CCascadeClassifierDetection Class Reference

Detailed Description

Definition at line 19 of file CCascadeClassifierDetection.h.

#include <mrpt/detectors/CCascadeClassifierDetection.h>

Inheritance diagram for mrpt::detectors::CCascadeClassifierDetection:

Classes

struct  TOptions
 

Public Member Functions

 CCascadeClassifierDetection ()
 
virtual ~CCascadeClassifierDetection ()
 
void init (const mrpt::config::CConfigFileBase &cfg) override
 Initialize cascade classifier detection. More...
 
void init (const std::string &configFile)
 Initialize the object with parameters loaded from the given config file. More...
 
void detectObjects (const mrpt::obs::CObservation::Ptr obs, vector_detectable_object &detected)
 
void detectObjects (const mrpt::obs::CObservation &obs, vector_detectable_object &detected)
 
void detectObjects (const mrpt::img::CImage *img, vector_detectable_object &detected)
 

Protected Member Functions

void detectObjects_Impl (const mrpt::obs::CObservation &obs, vector_detectable_object &detected) override
 Detect objects in a *CObservation. More...
 

Protected Attributes

void * m_cascade
 Cascade classifier object. More...
 
struct mrpt::detectors::CCascadeClassifierDetection::TOptions m_options
 

Constructor & Destructor Documentation

◆ CCascadeClassifierDetection()

CCascadeClassifierDetection::CCascadeClassifierDetection ( )

Definition at line 38 of file CCascadeClassifierDetection.cpp.

References THROW_EXCEPTION.

◆ ~CCascadeClassifierDetection()

CCascadeClassifierDetection::~CCascadeClassifierDetection ( )
virtual

Definition at line 52 of file CCascadeClassifierDetection.cpp.

References CASCADE.

Member Function Documentation

◆ detectObjects() [1/3]

void mrpt::detectors::CObjectDetection::detectObjects ( const mrpt::obs::CObservation::Ptr  obs,
vector_detectable_object detected 
)
inlineinherited

Definition at line 36 of file CObjectDetection.h.

References mrpt::detectors::CObjectDetection::detectObjects_Impl().

Here is the call graph for this function:

◆ detectObjects() [2/3]

void mrpt::detectors::CObjectDetection::detectObjects ( const mrpt::obs::CObservation obs,
vector_detectable_object detected 
)
inlineinherited

Definition at line 43 of file CObjectDetection.h.

References mrpt::detectors::CObjectDetection::detectObjects_Impl().

Here is the call graph for this function:

◆ detectObjects() [3/3]

void CObjectDetection::detectObjects ( const mrpt::img::CImage img,
vector_detectable_object detected 
)
inherited

Definition at line 22 of file CObjectDetection.cpp.

References mrpt::detectors::CObjectDetection::detectObjects_Impl(), mrpt::obs::CObservationImage::image, mrpt::img::CImage::makeShallowCopy(), mrpt::system::now(), and mrpt::obs::CObservation::timestamp.

Here is the call graph for this function:

◆ detectObjects_Impl()

void CCascadeClassifierDetection::detectObjects_Impl ( const mrpt::obs::CObservation obs,
vector_detectable_object detected 
)
overrideprotectedvirtual

Detect objects in a *CObservation.

Returns
A vector with detected objects

Implements mrpt::detectors::CObjectDetection.

Definition at line 91 of file CCascadeClassifierDetection.cpp.

References mrpt::img::CImage::asCvMatRef(), CASCADE, mrpt::img::FAST_REF_OR_CONVERT_TO_GRAY, and IS_CLASS.

Here is the call graph for this function:

◆ init() [1/2]

void mrpt::detectors::CObjectDetection::init ( const std::string &  configFile)
inlineinherited

Initialize the object with parameters loaded from the given config file.

Definition at line 26 of file CObjectDetection.h.

◆ init() [2/2]

void CCascadeClassifierDetection::init ( const mrpt::config::CConfigFileBase cfg)
overridevirtual

Initialize cascade classifier detection.

Implements mrpt::detectors::CObjectDetection.

Definition at line 63 of file CCascadeClassifierDetection.cpp.

References CASCADE, mrpt::config::CConfigFileBase::read_double(), mrpt::config::CConfigFileBase::read_int(), and mrpt::config::CConfigFileBase::read_string().

Here is the call graph for this function:

Member Data Documentation

◆ m_cascade

void* mrpt::detectors::CCascadeClassifierDetection::m_cascade
protected

Cascade classifier object.

Definition at line 39 of file CCascadeClassifierDetection.h.

◆ m_options

struct mrpt::detectors::CCascadeClassifierDetection::TOptions mrpt::detectors::CCascadeClassifierDetection::m_options
protected



Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020