OpenCV  5.0.0alpha
Open Source Computer Vision
Loading...
Searching...
No Matches
layer.details.hpp File Reference
Include dependency graph for layer.details.hpp:

Classes

class  cv::dnn::details::_LayerStaticRegisterer
 

Namespaces

namespace  cv
 
namespace  cv::dnn
 
namespace  cv::dnn::details
 

Macros

#define CV_DNN_REGISTER_LAYER_CLASS(type, class)
 Registers layer class in runtime.
 
#define CV_DNN_REGISTER_LAYER_CLASS_STATIC(type, class)
 Registers layer class on module load time.
 
#define CV_DNN_REGISTER_LAYER_FUNC(type, constructorFunc)
 Registers layer constructor in runtime.
 
#define CV_DNN_REGISTER_LAYER_FUNC_STATIC(type, constructorFunc)
 Registers layer constructor on module load time.
 

Functions

template<typename LayerClass >
Ptr< Layercv::dnn::details::_layerDynamicRegisterer (LayerParams &params)
 

Macro Definition Documentation

◆ CV_DNN_REGISTER_LAYER_CLASS

#define CV_DNN_REGISTER_LAYER_CLASS ( type,
class )
Value:
static void registerLayer(const String &type, Constructor constructor)
Registers the layer class with typename type and specified constructor. Thread-safe.
Ptr< Layer > _layerDynamicRegisterer(LayerParams &params)
Definition layer.details.hpp:51

Registers layer class in runtime.

Parameters
typestring, containing type name of the layer.
classC++ class, derived from Layer.

This macros must be placed inside the function code.

◆ CV_DNN_REGISTER_LAYER_CLASS_STATIC

#define CV_DNN_REGISTER_LAYER_CLASS_STATIC ( type,
class )
Value:
Ptr<Layer> __LayerStaticRegisterer_func_##type(LayerParams &params) \
{ return Ptr<Layer>(new class(params)); } \
static cv::dnn::details::_LayerStaticRegisterer __LayerStaticRegisterer_##type(#type, __LayerStaticRegisterer_func_##type);
Definition layer.details.hpp:58

Registers layer class on module load time.

Parameters
typestring, containing type name of the layer.
classC++ class, derived from Layer.

This macros must be placed outside the function code.

◆ CV_DNN_REGISTER_LAYER_FUNC

#define CV_DNN_REGISTER_LAYER_FUNC ( type,
constructorFunc )
Value:
cv::dnn::LayerFactory::registerLayer(#type, constructorFunc);

Registers layer constructor in runtime.

Parameters
typestring, containing type name of the layer.
constructorFuncpointer to the function of type LayerRegister::Constructor, which creates the layer.

This macros must be placed inside the function code.

◆ CV_DNN_REGISTER_LAYER_FUNC_STATIC

#define CV_DNN_REGISTER_LAYER_FUNC_STATIC ( type,
constructorFunc )
Value:
static cv::dnn::details::_LayerStaticRegisterer __LayerStaticRegisterer_##type(#type, constructorFunc);

Registers layer constructor on module load time.

Parameters
typestring, containing type name of the layer.
constructorFuncpointer to the function of type LayerRegister::Constructor, which creates the layer.

This macros must be placed outside the function code.