Layer factory allows to create instances of registered layers.
More...
#include <opencv2/dnn/layer.hpp>
Layer factory allows to create instances of registered layers.
Each Layer class must provide this function to the factory.
Creates instance of registered layer.
- Parameters
-
type | type name of creating layer. |
params | parameters which will be used for layer initialization. |
- Note
- Thread-safe.
static void cv::dnn::LayerFactory::registerLayer |
( |
const String & |
type, |
|
|
Constructor |
constructor |
|
) |
| |
|
static |
Registers the layer class with typename type
and specified constructor
. Thread-safe.
static void cv::dnn::LayerFactory::unregisterLayer |
( |
const String & |
type | ) |
|
|
static |
Unregisters registered layer with specified type name. Thread-safe.
The documentation for this class was generated from the following file: