OpenCV453
公開型 | 静的公開メンバ関数 | 全メンバ一覧

Layer factory allows to create instances of registered layers. [詳解]

#include <layer.hpp>

公開型

typedef Ptr< Layer >(* Constructor) (LayerParams &params)
 Each Layer class must provide this function to the factory
 

静的公開メンバ関数

static void registerLayer (const String &type, Constructor constructor)
 Registers the layer class with typename type and specified constructor. Thread-safe.
 
static void unregisterLayer (const String &type)
 Unregisters registered layer with specified type name. Thread-safe.
 
static Ptr< LayercreateLayerInstance (const String &type, LayerParams &params)
 Creates instance of registered layer. [詳解]
 

詳解

Layer factory allows to create instances of registered layers.

関数詳解

◆ createLayerInstance()

static Ptr< Layer > cv::dnn::LayerFactory::createLayerInstance ( const String &  type,
LayerParams params 
)
static

Creates instance of registered layer.

引数
typetype name of creating layer.
paramsparameters which will be used for layer initialization.
覚え書き
Thread-safe.

このクラス詳解は次のファイルから抽出されました: