OpenCV 4.12.0
开源计算机视觉
加载中...
搜索中...
无匹配项
cv::dnn::LayerParams 类参考

该类提供初始化层所需的所有数据。 更多...

#include <opencv2/dnn/dnn.hpp>

cv::dnn::LayerParams 的协作图

公共属性

std::vector< Matblobs
 存储为 blob 的学习参数列表。
 
String name
 图层实例的名称(可选,可用于内部目的)。
 
String type
 用于按图层工厂创建图层的类型名称(可选)。
 

附加继承成员

- 从 cv::dnn::Dict 继承的公共成员函数
std::map< String, DictValue >::const_iterator begin () const
 
std::map< String, DictValue >::const_iterator end () const
 
void erase (const String &key)
 从字典中删除 key
 
const DictValueget (const String &key) const
 如果字典中有 key,则返回其值,否则会生成错误。
 
template<typename T >
get (const String &key) const
 
template<typename T >
get (const String &key, const T &defaultValue) const
 如果字典中有 key,则返回其值,否则返回 defaultValue
 
bool has (const String &key) const
 检查字典中是否存在 key
 
DictValueptr (const String &key)
 如果字典中有 key,则返回指向其值的指针,否则返回 NULL。
 
const DictValueptr (const String &key) const
 
template<typename T >
const T & set (const String &key, const T &value)
 key 设置新的 value,或将新的键值对添加到字典中。
 

详细描述

该类提供初始化层所需的所有数据。

它包括带有标量参数的字典(可以使用 Dict 接口读取),blob 参数 blobs 和可选的元信息:name 和图层实例的 type

成员数据文档

◆ blobs

std::vector<Mat> cv::dnn::LayerParams::blobs

存储为 blob 的学习参数列表。

◆ name

String cv::dnn::LayerParams::name

图层实例的名称(可选,可用于内部目的)。

◆ type

String cv::dnn::LayerParams::type

用于按图层工厂创建图层的类型名称(可选)。


此类文档由以下文件生成