26 COccupancyGridMapFeatureExtractor::COccupancyGridMapFeatureExtractor()
33 COccupancyGridMapFeatureExtractor::~COccupancyGridMapFeatureExtractor()
41 void COccupancyGridMapFeatureExtractor::uncached_extractFeatures(
44 const size_t number_of_features,
98 void COccupancyGridMapFeatureExtractor::extractFeatures(
101 const size_t number_of_features,
108 uncached_extractFeatures(grid,outMap,number_of_features,descriptors,feat_options);
113 if (it==m_cache.end())
118 uncached_extractFeatures(grid,*theMap,number_of_features,descriptors,feat_options);
123 m_cache[&grid] = theMap;
128 outMap = *(it->second);
135 void COccupancyGridMapFeatureExtractor::OnEvent(
const mrptEvent &e)
150 this->observeEnd( *const_cast<COccupancyGridMap2D*>(
src) );
float getYMin() const
Returns the "y" coordinate of top side of grid map.
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
Used in some methods to mean "any of the present descriptors".
float getResolution() const
Returns the resolution of the grid map.
#define MRPT_END_WITH_CLEAN_UP(stuff)
A class for storing images as grayscale or RGB bitmaps.
The basic event type for the observer-observable pattern in MRPT.
const Scalar * const_iterator
double z
X,Y,Z coordinates.
T square(const T x)
Inline function for the square of a number.
std::vector< mrpt::vision::CFeaturePtr > features
The set of features from which the landmark comes.
A class for storing a map of 3D probabilistic landmarks.
float getXMin() const
Returns the "x" coordinate of left side of grid map.
mrpt::maps::CLandmarksMapPtr CLandmarksMapPtr
Backward compatible typedef.
void push_back(const CLandmark &lm)
The object is copied, thus the original copy passed as a parameter can be released.
Event emitted by a metric up upon a succesful call to insertObservation()
An event sent by any CObservable object (automatically) just before being destroyed and telling its o...
A list of visual features, to be used as output by detectors, as input/output by trackers, etc.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
Event emitted by a metric up upon call of clear()
TDescriptorType
The bitwise OR combination of values of TDescriptorType are used in CFeatureExtraction::computeDescri...
A class for storing an occupancy grid map.
void getAsImageFiltered(utils::CImage &img, bool verticalFlip=false, bool forceRGB=false) const
Returns the grid as a 8-bit graylevel image, where each pixel is a cell (output image is RGB only if ...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
The class for storing "landmarks" (visual or laser-scan-extracted features,...)
TInternalFeatList::iterator iterator
static CLandmarksMapPtr Create()
mrpt::math::TPoint3D pose_mean
The mean of the landmark 3D position.
uint32_t seenTimesCount
The number of times that this landmark has been seen.
void saveMetricMapRepresentationToFile(const std::string &filNamePrefix) const MRPT_OVERRIDE
This virtual method saves the map to a file "filNamePrefix"+< some_file_extension >...
struct VISION_IMPEXP mrpt::maps::CLandmarksMap::TCustomSequenceLandmarks landmarks
TLandmarkID ID
An ID for the landmark (see details next...) This ID was introduced in the version 3 of this class (2...