Loading...
Searching...
No Matches
cv::dnn::LayerFactory Class Reference
Layer factory allows to create instances of registered layers. More...
#include <opencv2/dnn/layer.hpp>
Public Types | |
| typedef Ptr< Layer >(* | Constructor) (LayerParams ¶ms) |
| Each Layer class must provide this function to the factory. | |
Static Public Member Functions | |
| static Ptr< Layer > | createLayerInstance (const String &type, LayerParams ¶ms) |
| Creates instance of registered layer. | |
| static bool | isLayerRegistered (const std::string &type) |
| Check if layer is registered. | |
| 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. | |
Detailed Description
Layer factory allows to create instances of registered layers.
Member Typedef Documentation
◆ Constructor
| typedef Ptr< Layer >(* cv::dnn::LayerFactory::Constructor) (LayerParams ¶ms) |
Each Layer class must provide this function to the factory.
Member Function Documentation
◆ createLayerInstance()
|
static |
Creates instance of registered layer.
- Parameters
-
type type name of creating layer. params parameters which will be used for layer initialization.
- Note
- Thread-safe.
◆ isLayerRegistered()
|
static |
Check if layer is registered.
◆ registerLayer()
|
static |
Registers the layer class with typename type and specified constructor. Thread-safe.
◆ unregisterLayer()
|
static |
Unregisters registered layer with specified type name. Thread-safe.
The documentation for this class was generated from the following file:
- opencv2/dnn/layer.hpp
1.9.6