![]() |
OpenCV 4.12.0
开源计算机视觉
|
该类提供初始化层所需的所有数据。 更多...
#include <opencv2/dnn/dnn.hpp>
公共属性 | |
| std::vector< Mat > | blobs |
| 存储为 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 DictValue & | get (const String &key) const |
如果字典中有 key,则返回其值,否则会生成错误。 | |
| template<typename T > | |
| T | get (const String &key) const |
| template<typename T > | |
| T | get (const String &key, const T &defaultValue) const |
如果字典中有 key,则返回其值,否则返回 defaultValue。 | |
| bool | has (const String &key) const |
检查字典中是否存在 key。 | |
| DictValue * | ptr (const String &key) |
如果字典中有 key,则返回指向其值的指针,否则返回 NULL。 | |
| const DictValue * | ptr (const String &key) const |
| template<typename T > | |
| const T & | set (const String &key, const T &value) |
为 key 设置新的 value,或将新的键值对添加到字典中。 | |
| std::vector<Mat> cv::dnn::LayerParams::blobs |
存储为 blob 的学习参数列表。
| String cv::dnn::LayerParams::name |
图层实例的名称(可选,可用于内部目的)。
| String cv::dnn::LayerParams::type |
用于按图层工厂创建图层的类型名称(可选)。