diff --git a/src/processor_base.h b/src/processor_base.h index 73fdc721ebbadc8630f36772282c44db9b45afd6..d63edd93cdf79cb5381531f669fc6e5635bcfb39 100644 --- a/src/processor_base.h +++ b/src/processor_base.h @@ -109,10 +109,31 @@ class KFPackBuffer */ struct ProcessorParamsBase { + ProcessorParamsBase() = default; + + ProcessorParamsBase(bool _voting_active, + Scalar _time_tolerance, + const std::string& _type, + const std::string& _name) + : voting_active(_voting_active) + , time_tolerance(_time_tolerance) + , type(_type) + , name(_name) + { + // + } + + virtual ~ProcessorParamsBase() = default; + + bool voting_active = false; + + ///< maximum time difference between a Keyframe time stamp and + /// a particular Capture of this processor to allow assigning + /// this Capture to the Keyframe. + Scalar time_tolerance = Scalar(0); + std::string type; std::string name; - Scalar time_tolerance; ///< maximum time difference between a Keyframe time stamp and a particular Capture of this processor to allow assigning this Capture to the Keyframe. - bool voting_active; }; //class ProcessorBase