31#include <visp3/rbt/vpRBDriftDetectorFactory.h>
32#include <visp3/rbt/vpRBProbabilistic3DDriftDetector.h>
40vpRBDriftDetectorFactory::vpRBDriftDetectorFactory()
42#ifdef VISP_HAVE_NLOHMANN_JSON
48 registerType(
"probabilistic", [](
const nlohmann::json &j) {
49 std::shared_ptr<vpRBProbabilistic3DDriftDetector>
p(
new vpRBProbabilistic3DDriftDetector());
50 p->loadJsonConfiguration(j);
Factory-type class that allows for the dynamic registration of subclasses.
void setJsonKeyFinder(const std::function< std::string(const nlohmann::json &)> &finderFn)
void registerType(const std::string &key, const std::function< std::shared_ptr< vpRBDriftDetector >(const nlohmann::json &)> &function)