Skip to content
Snippets Groups Projects
Commit c985ace2 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

removed number_of_tracks_ from processor_tracker

parent fe08cf8f
No related branches found
No related tags found
1 merge request!274Resolve "Emplace API inconsistent with ProcessorTrackerFeature/Landmark functions"
This commit is part of merge request !274. Comments created here will be created in the context of that merge request.
...@@ -97,8 +97,6 @@ class ProcessorTracker : public ProcessorBase ...@@ -97,8 +97,6 @@ class ProcessorTracker : public ProcessorBase
FeatureBasePtrList new_features_last_; ///< List of new features in \b last for landmark initialization and new key-frame creation. FeatureBasePtrList new_features_last_; ///< List of new features in \b last for landmark initialization and new key-frame creation.
FeatureBasePtrList new_features_incoming_; ///< list of the new features of \b last successfully tracked in \b incoming FeatureBasePtrList new_features_incoming_; ///< list of the new features of \b last successfully tracked in \b incoming
SizeStd number_of_tracks_;
public: public:
ProcessorTracker(const std::string& _type, ProcessorTracker(const std::string& _type,
ProcessorParamsTrackerPtr _params_tracker); ProcessorParamsTrackerPtr _params_tracker);
...@@ -204,16 +202,6 @@ class ProcessorTracker : public ProcessorBase ...@@ -204,16 +202,6 @@ class ProcessorTracker : public ProcessorBase
FeatureBasePtrList& getNewFeaturesListLast(); FeatureBasePtrList& getNewFeaturesListLast();
const SizeStd& previousNumberOfTracks() const
{
return number_of_tracks_;
}
SizeStd& previousNumberOfTracks()
{
return number_of_tracks_;
}
protected: protected:
void computeProcessingStep(); void computeProcessingStep();
......
...@@ -21,8 +21,7 @@ ProcessorTracker::ProcessorTracker(const std::string& _type, ...@@ -21,8 +21,7 @@ ProcessorTracker::ProcessorTracker(const std::string& _type,
processing_step_(FIRST_TIME_WITHOUT_PACK), processing_step_(FIRST_TIME_WITHOUT_PACK),
origin_ptr_(nullptr), origin_ptr_(nullptr),
last_ptr_(nullptr), last_ptr_(nullptr),
incoming_ptr_(nullptr), incoming_ptr_(nullptr)
number_of_tracks_(0)
{ {
// //
} }
...@@ -251,7 +250,6 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr) ...@@ -251,7 +250,6 @@ void ProcessorTracker::process(CaptureBasePtr const _incoming_ptr)
break; break;
} }
number_of_tracks_ = last_ptr_->getFeatureList().size();
postProcess(); postProcess();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment