![]() |
OpenCV 4.12.0
开源计算机视觉
|
#include <opencv2/dnn/layer.hpp>类 | |
| 类 | cv::dnn::details::_LayerStaticRegisterer |
命名空间 | |
| 命名空间 | cv |
| 命名空间 | cv::dnn |
| 命名空间 | cv::dnn::details |
宏 | |
| #define | CV_DNN_REGISTER_LAYER_CLASS(type, class) |
| 在运行时注册层类。 | |
| #define | CV_DNN_REGISTER_LAYER_CLASS_STATIC(type, class) |
| 在模块加载时注册层类。 | |
| #define | CV_DNN_REGISTER_LAYER_FUNC(type, constructorFunc) |
| 在运行时注册层构造函数。 | |
| #define | CV_DNN_REGISTER_LAYER_FUNC_STATIC(type, constructorFunc) |
| 在模块加载时注册层构造函数。 | |
函数 | |
| template<typename LayerClass > | |
| Ptr< Layer > | cv::dnn::details::_layerDynamicRegisterer (LayerParams ¶ms) |
| #define CV_DNN_REGISTER_LAYER_CLASS | ( | type, | |
| 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 ) |
在运行时注册层构造函数。
| type | 字符串,包含层的类型名称。 |
| constructorFunc | 指向类型为 LayerRegister::Constructor 的函数的指针,该函数创建层。 |
此宏必须放置在函数代码内部。
| #define CV_DNN_REGISTER_LAYER_FUNC_STATIC | ( | type, | |
| constructorFunc ) |
在模块加载时注册层构造函数。
| type | 字符串,包含层的类型名称。 |
| constructorFunc | 指向类型为 LayerRegister::Constructor 的函数的指针,该函数创建层。 |
此宏必须放置在函数代码外部。