Layer 工厂允许创建已注册层的实例。 更多...
#include <opencv2/dnn/layer.hpp>
◆ 构造函数
◆ createLayerInstance()
创建已注册层的实例。
- 参数
-
| type | 正在创建的层的类型名称。 |
| params | 将用于层初始化的参数。 |
- 注意
- 线程安全。
◆ isLayerRegistered()
| static bool cv::dnn::LayerFactory::isLayerRegistered |
( |
const std::string & | type | ) |
|
|
static |
◆ registerLayer()
| static void cv::dnn::LayerFactory::registerLayer |
( |
const String & | type, |
|
|
构造函数 | constructor ) |
|
static |
使用类型名称 type 和指定的 constructor 注册层类。线程安全。
◆ unregisterLayer()
| static void cv::dnn::LayerFactory::unregisterLayer |
( |
const String & | type | ) |
|
|
static |
此类文档由以下文件生成