NVIDIA DeepStream SDK API Reference

9.2 Release
SegmenterFactory Class Reference

Detailed Description

Singleton factory that constructs the configured implementation.

Definition at line 94 of file sources/libs/nvmultiobjecttracker/include/modules/Segmenter/Segmenter_factory.hpp.

Collaboration diagram for SegmenterFactory:

Public Member Functions

std::shared_ptr< ISegmenter > makeSegmenter (const std::string &configFilePath)
 Construct the configured segmenter implementation. More...
 
std::shared_ptr< ISegmenter > makeSegmenter (const std::string &configFilePath)
 Construct the configured segmenter implementation. More...
 

Static Public Member Functions

static SegmenterFactory & getInstance ()
 Get the singleton factory instance. More...
 
static SegmenterFactory & getInstance ()
 Get the singleton factory instance. More...
 

Protected Attributes

SegmenterFactoryParams m_params
 Config params. More...
 

Member Function Documentation

◆ getInstance() [1/2]

static SegmenterFactory& SegmenterFactory::getInstance ( )
inlinestatic

Get the singleton factory instance.

Definition at line 98 of file sources/libs/nvmultiobjecttracker/include/modules/Segmenter/Segmenter_factory.hpp.

◆ getInstance() [2/2]

static SegmenterFactory& SegmenterFactory::getInstance ( )
inlinestatic

Get the singleton factory instance.

Definition at line 98 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/Segmenter/Segmenter_factory.hpp.

◆ makeSegmenter() [1/2]

std::shared_ptr<ISegmenter> SegmenterFactory::makeSegmenter ( const std::string &  configFilePath)
inline

Construct the configured segmenter implementation.

Parameters
[in]configFilePathPath to the tracker configuration file.
Returns
The segmenter implementation selected by the configuration.

Parse the module config.

Definition at line 109 of file 9.2/sources/libs/nvmultiobjecttracker/include/modules/Segmenter/Segmenter_factory.hpp.

References DUMMY_SEGMENTER, EfficientVitSAM, m_params, SegmenterFactoryParams::m_segmenterType, NanoSAM, and SAM2.

◆ makeSegmenter() [2/2]

std::shared_ptr<ISegmenter> SegmenterFactory::makeSegmenter ( const std::string &  configFilePath)
inline

Construct the configured segmenter implementation.

Parameters
[in]configFilePathPath to the tracker configuration file.
Returns
The segmenter implementation selected by the configuration.

Parse the module config.

Definition at line 109 of file sources/libs/nvmultiobjecttracker/include/modules/Segmenter/Segmenter_factory.hpp.

References DUMMY_SEGMENTER, EfficientVitSAM, m_params, SegmenterFactoryParams::m_segmenterType, NanoSAM, and SAM2.

Field Documentation

◆ m_params

SegmenterFactoryParams SegmenterFactory::m_params
protected

The documentation for this class was generated from the following file: