OpenCV453
|
Layer factory allows to create instances of registered layers. [詳解]
#include <layer.hpp>
公開型 | |
typedef Ptr< Layer >(* | Constructor) (LayerParams ¶ms) |
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< Layer > | createLayerInstance (const String &type, LayerParams ¶ms) |
Creates instance of registered layer. [詳解] | |
Layer factory allows to create instances of registered layers.
|
static |
Creates instance of registered layer.
type | type name of creating layer. |
params | parameters which will be used for layer initialization. |