MRPT  2.0.4
CObjectDetection.cpp
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 #include "detectors-precomp.h" // Precompiled headers
11 
16 
17 // Universal include for all versions of OpenCV
18 #include <mrpt/3rdparty/do_opencv_includes.h>
19 
20 using namespace mrpt::detectors;
21 
23  const mrpt::img::CImage* img, vector_detectable_object& detected)
24 {
27  o.image = img->makeShallowCopy();
28  this->detectObjects_Impl(o, detected);
29 }
CImage makeShallowCopy() const
Returns a shallow copy of the original image.
Definition: img/CImage.h:484
Declares a class derived from "CObservation" that encapsules an image from a camera, whose relative pose to robot is also stored.
mrpt::system::TTimeStamp now()
A shortcut for system::getCurrentTime.
Definition: datetime.h:86
std::vector< CDetectableObject::Ptr > vector_detectable_object
mrpt::img::CImage image
The image captured by the camera, that is, the main piece of information of this observation.
mrpt::system::TTimeStamp timestamp
The associated UTC time-stamp.
Definition: CObservation.h:60
virtual void detectObjects_Impl(const mrpt::obs::CObservation &obs, vector_detectable_object &detected)=0
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:148



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