![]() |
OpenCV 4.10.0
开源计算机视觉
|
#include <opencv2/dnn/layer.hpp>类 | |
| class | cv::dnn::details::_LayerStaticRegisterer |
命名空间 | |
| namespace | cv |
| 与磁盘上的文件关联的文件存储的“黑盒”表示。 | |
| namespace | cv::dnn |
| namespace | cv::dnn::details |
宏 | |
| #define | CV_DNN_REGISTER_LAYER_CLASS(type, class) cv::dnn::LayerFactory::registerLayer(#type, cv::dnn::details::_layerDynamicRegisterer<class>); |
| 在运行时注册图层类。 | |
| #define | CV_DNN_REGISTER_LAYER_CLASS_STATIC(type, class) |
| 在模块加载时注册图层类。 | |
| #define | CV_DNN_REGISTER_LAYER_FUNC(type, constructorFunc) cv::dnn::LayerFactory::registerLayer(#type, constructorFunc); |
| 在运行时注册图层构造函数。 | |
| #define | CV_DNN_REGISTER_LAYER_FUNC_STATIC(type, constructorFunc) static cv::dnn::details::_LayerStaticRegisterer __LayerStaticRegisterer_##type(#type, constructorFunc); |
| 在模块加载时注册图层构造函数。 | |
函数 | |
| template<typename LayerClass > | |
| Ptr< Layer > | cv::dnn::details::_layerDynamicRegisterer (LayerParams ¶ms) |
| #define CV_DNN_REGISTER_LAYER_CLASS | ( | type, | |
| class | |||
| ) | cv::dnn::LayerFactory::registerLayer(#type, cv::dnn::details::_layerDynamicRegisterer<class>); |
在运行时注册图层类。
| type | 包含图层类型名称的字符串。 |
| class | 从 Layer 派生的 C++ 类。 |
此宏必须放置在函数代码内。
| #define CV_DNN_REGISTER_LAYER_CLASS_STATIC | ( | type, | |
| class | |||
| ) |
在模块加载时注册图层类。
| type | 包含图层类型名称的字符串。 |
| class | 从 Layer 派生的 C++ 类。 |
此宏必须放置在函数代码之外。
| #define CV_DNN_REGISTER_LAYER_FUNC | ( | type, | |
| constructorFunc | |||
| ) | cv::dnn::LayerFactory::registerLayer(#type, constructorFunc); |
在运行时注册图层构造函数。
| type | 包含图层类型名称的字符串。 |
| constructorFunc | 指向类型为 LayerRegister::Constructor 的函数的指针,该函数创建图层。 |
此宏必须放置在函数代码内。
| #define CV_DNN_REGISTER_LAYER_FUNC_STATIC | ( | type, | |
| constructorFunc | |||
| ) | static cv::dnn::details::_LayerStaticRegisterer __LayerStaticRegisterer_##type(#type, constructorFunc); |
在模块加载时注册图层构造函数。
| type | 包含图层类型名称的字符串。 |
| constructorFunc | 指向类型为 LayerRegister::Constructor 的函数的指针,该函数创建图层。 |
此宏必须放置在函数代码之外。
1.9.8