Visual Servoing Platform version 3.7.0
Loading...
Searching...
No Matches

#include <vpObjectMaskFactory.h>

Inheritance diagram for vpObjectMaskFactory:

Public Member Functions

void registerType (const std::string &key, const std::function< std::shared_ptr< vpObjectMask >(const nlohmann::json &)> &function)
void registerTypeRaw (const std::string &key, const std::function< std::shared_ptr< vpObjectMask >(const std::string &)> function)
std::shared_ptr< vpObjectMaskbuildFromJson (const nlohmann::json &j)
void setJsonKeyFinder (const std::function< std::string(const nlohmann::json &)> &finderFn)

Static Public Member Functions

static vpObjectMaskFactorygetFactory ()

Protected Attributes

std::map< std::string, std::function< std::shared_ptr< vpObjectMask >(const nlohmann::json &)> > m_jsonBuilders
std::map< std::string, std::function< std::shared_ptr< vpObjectMask >(const std::string &)> > m_jsonRawBuilders
std::function< std::string(const nlohmann::json &)> m_keyFinder

Detailed Description

A factory that can be used to create Object segmentation algorithms from JSON data.

Tutorials & Examples

Tutorials
If you want to have an in-depth presentation of the Render-Based Tracker (RBT), you may have a look at:

Definition at line 55 of file vpObjectMaskFactory.h.

Member Function Documentation

◆ buildFromJson()

std::shared_ptr< vpObjectMask > vpDynamicFactory< vpObjectMask >::buildFromJson ( const nlohmann::json & j)
inlineinherited

Definition at line 78 of file vpDynamicFactory.h.

◆ getFactory()

vpObjectMaskFactory & vpObjectMaskFactory::getFactory ( )
inlinestatic

Definition at line 61 of file vpObjectMaskFactory.h.

Referenced by vpRBTracker::loadConfiguration().

◆ registerType()

void vpDynamicFactory< vpObjectMask >::registerType ( const std::string & key,
const std::function< std::shared_ptr< vpObjectMask >(const nlohmann::json &)> & function )
inlineinherited

Definition at line 59 of file vpDynamicFactory.h.

◆ registerTypeRaw()

void vpDynamicFactory< vpObjectMask >::registerTypeRaw ( const std::string & key,
const std::function< std::shared_ptr< vpObjectMask >(const std::string &)> function )
inlineinherited

Definition at line 67 of file vpDynamicFactory.h.

◆ setJsonKeyFinder()

void vpDynamicFactory< vpObjectMask >::setJsonKeyFinder ( const std::function< std::string(const nlohmann::json &)> & finderFn)
inlineinherited

Definition at line 95 of file vpDynamicFactory.h.

Member Data Documentation

◆ m_jsonBuilders

std::map<std::string, std::function<std::shared_ptr<vpObjectMask>(const nlohmann::json &)> > vpDynamicFactory< vpObjectMask >::m_jsonBuilders
protectedinherited

Definition at line 107 of file vpDynamicFactory.h.

◆ m_jsonRawBuilders

std::map<std::string, std::function<std::shared_ptr<vpObjectMask>(const std::string &)> > vpDynamicFactory< vpObjectMask >::m_jsonRawBuilders
protectedinherited

Definition at line 108 of file vpDynamicFactory.h.

◆ m_keyFinder

std::function<std::string(const nlohmann::json &)> vpDynamicFactory< vpObjectMask >::m_keyFinder
protectedinherited

Definition at line 110 of file vpDynamicFactory.h.