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