10 #ifndef mrpt_vision_tracking_H
11 #define mrpt_vision_tracking_H
117 inline CGenericFeatureTracker() : m_timlog(false), m_update_patches_counter(0),m_check_KLT_counter(0),m_detector_adaptive_thres(10)
150 out_featureList = in_featureList;
152 out_featureList.
begin(),out_featureList.
end(),
154 this->trackFeatures(old_img, new_img, out_featureList);
195 void updateAdaptiveNewFeatsThreshold(
196 const size_t nNewlyDetectedFeats,
197 const size_t desired_num_features);
204 template <
typename FEATLIST>
205 void internal_trackFeatures(
208 FEATLIST &inout_featureList );
244 template <
typename FEATLIST>
245 void trackFeatures_impl_templ(
248 FEATLIST &inout_featureList );
257 CFeatureList &rightList,
265 unsigned int numberOfSigmas );
Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
void trackFeaturesNewList(const CImage &old_img, const CImage &new_img, const vision::CFeatureList &in_featureList, vision::CFeatureList &out_featureList)
A wrapper around the basic trackFeatures() method, but keeping the original list of features unmodifi...
A class for storing images as grayscale or RGB bitmaps.
mrpt::utils::CTimeLogger m_timlog
the internal time logger, disabled by default.
mrpt::utils::TParametersDouble extra_params
Optional list of extra parameters to the algorithm.
CFeatureTracker_KL(mrpt::utils::TParametersDouble extraParams)
Ctor with extra parameters.
int m_detector_adaptive_thres
For use in "add_new_features" == true.
int getDetectorAdaptiveThreshold() const
Returns the current adaptive threshold used by the FAST(ER) detector to find out new features in empt...
std::auto_ptr< CGenericFeatureTracker > CGenericFeatureTrackerAutoPtr
void VISION_IMPEXP filterBadCorrsByDistance(mrpt::utils::TMatchingPairList &list, unsigned int numberOfSigmas)
Filter bad correspondences by distance ...
This base provides a set of functions for maths stuff.
A list of visual features, to be used as output by detectors, as input/output by trackers, etc.
void enableTimeLogger(bool enable=true)
Returns a read-only reference to the internal time logger.
const mrpt::utils::CTimeLogger & getProfiler() const
Returns a read-only reference to the internal time logger.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Track a set of features from old_img -> new_img using sparse optimal flow (classic KL method)...
A structure containing options for the matching.
mrpt::vision::TSimpleFeatureList m_newly_detected_feats
This field is clared by trackFeatures() before calling trackFeatures_impl(), and can be filled out wi...
A versatile "profiler" that logs the time spent within each pair of calls to enter(X)-leave(X), among other stats.
size_t m_check_KLT_counter
For use when "check_KLT_response_every">=1.
CFeatureTracker_KL()
Default ctor.
void VISION_IMPEXP checkTrackedFeatures(CFeatureList &leftList, CFeatureList &rightList, vision::TMatchingOptions options)
Search for correspondences which are not in the same row and deletes them ...
size_t m_update_patches_counter
for use when "update_patches_every">=1
TExtraOutputInfo last_execution_extra_info
Updated with each call to trackFeatures()
virtual ~CGenericFeatureTracker()
Dtor.
CGenericFeatureTracker()
Default ctor.
A virtual interface for all feature trackers, implementing the part of feature tracking that is commo...
mrpt::utils::CTimeLogger & getProfiler()
Returns a reference to the internal time logger.
CGenericFeatureTracker(mrpt::utils::TParametersDouble extraParams)
Ctor with extra parameters.