Utilities for New Layers Registration#
Classes#
Name |
Description |
|---|---|
Layer factory allows to create instances of registered layers. |
Class cv::dnn::LayerFactory#
Layer factory allows to create instances of registered layers.
#include <opencv2/dnn/layer.hpp>Collaboration diagram for cv::dnn::LayerFactory:
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.
Constructor & Destructor Documentation#
LayerFactory()#
cv::dnn::LayerFactory::LayerFactory()
Member Function Documentation#
createLayerInstance()#
static Ptr< Layer > cv::dnn::LayerFactory::createLayerInstance(
const String & type,
LayerParams & params )
Creates instance of registered layer.
Note
Thread-safe.
Parameters
type— type name of creating layer.params— parameters which will be used for layer initialization.
isLayerRegistered()#
static bool cv::dnn::LayerFactory::isLayerRegistered(const std::string & type)
Check if layer is registered.
registerLayer()#
static void cv::dnn::LayerFactory::registerLayer(
const String & type,
Constructor constructor )
Registers the layer class with typename type and specified constructor. Thread-safe.
unregisterLayer()#
static void cv::dnn::LayerFactory::unregisterLayer(const String & type)
Unregisters registered layer with specified type name. Thread-safe.
Source file#
The documentation for this class was generated from the following file:
opencv2/dnn/layer.hpp