OpenCV
3.1.0
Open Source Computer Vision
|
Layer factory allows to create instances of registered layers. More...
#include "layer.hpp"
Public Types | |
typedef Ptr< Layer >(* | Constuctor) (LayerParams ¶ms) |
Each Layer class must provide this function to the factory. More... | |
Static Public Member Functions | |
static Ptr< Layer > | createLayerInstance (const String &type, LayerParams ¶ms) |
Creates instance of registered layer. More... | |
static void | registerLayer (const String &type, Constuctor constructor) |
Registers the layer class with typename type and specified constructor . More... | |
static void | unregisterLayer (const String &type) |
Unregisters registered layer with specified type name. More... | |
Layer factory allows to create instances of registered layers.
typedef Ptr<Layer>(* cv::dnn::LayerFactory::Constuctor) (LayerParams ¶ms) |
Each Layer class must provide this function to the factory.
|
static |
Creates instance of registered layer.
type | type name of creating layer. |
params | parameters which will be used for layer initialization. |
|
static |
Registers the layer class with typename type
and specified constructor
.
|
static |
Unregisters registered layer with specified type name.