OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
cv::dnn::LayerParams Class Reference

This class provides all data needed to initialize layer. More...

#include <opencv2/dnn/dnn.hpp>

Inheritance diagram for cv::dnn::LayerParams:
Collaboration diagram for cv::dnn::LayerParams:

Public Member Functions

std::map< String, DictValue >::const_iterator begin () const
 
std::map< String, DictValue >::const_iterator end () const
 
void erase (const String &key)
 Erase key from the dictionary. More...
 
const DictValueget (const String &key) const
 If the key in the dictionary then returns its value, else an error will be generated. More...
 
template<typename T >
get (const String &key) const
 
template<typename T >
get (const String &key, const T &defaultValue) const
 If the key in the dictionary then returns its value, else returns defaultValue. More...
 
bool has (const String &key) const
 Checks a presence of the key in the dictionary. More...
 
DictValueptr (const String &key)
 If the key in the dictionary then returns pointer to its value, else returns NULL. More...
 
const DictValueptr (const String &key) const
 
template<typename T >
const T & set (const String &key, const T &value)
 Sets new value for the key, or adds new key-value pair into the dictionary. More...
 

Public Attributes

std::vector< Matblobs
 List of learned parameters stored as blobs. More...
 
String name
 Name of the layer instance (optional, can be used internal purposes). More...
 
String type
 Type name which was used for creating layer by layer factory (optional). More...
 

Detailed Description

This class provides all data needed to initialize layer.

It includes dictionary with scalar params (which can be read by using Dict interface), blob params blobs and optional meta information: name and type of layer instance.

Member Function Documentation

◆ begin()

std::map<String, DictValue>::const_iterator cv::dnn::Dict::begin ( ) const
inherited

◆ end()

std::map<String, DictValue>::const_iterator cv::dnn::Dict::end ( ) const
inherited

◆ erase()

void cv::dnn::Dict::erase ( const String key)
inherited

Erase key from the dictionary.

◆ get() [1/3]

const DictValue& cv::dnn::Dict::get ( const String key) const
inherited

If the key in the dictionary then returns its value, else an error will be generated.

◆ get() [2/3]

template<typename T >
T cv::dnn::Dict::get ( const String key) const
inherited

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ get() [3/3]

template<typename T >
T cv::dnn::Dict::get ( const String key,
const T &  defaultValue 
) const
inherited

If the key in the dictionary then returns its value, else returns defaultValue.

◆ has()

bool cv::dnn::Dict::has ( const String key) const
inherited

Checks a presence of the key in the dictionary.

◆ ptr() [1/2]

DictValue* cv::dnn::Dict::ptr ( const String key)
inherited

If the key in the dictionary then returns pointer to its value, else returns NULL.

◆ ptr() [2/2]

const DictValue* cv::dnn::Dict::ptr ( const String key) const
inherited

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

◆ set()

template<typename T >
const T& cv::dnn::Dict::set ( const String key,
const T &  value 
)
inherited

Sets new value for the key, or adds new key-value pair into the dictionary.

Member Data Documentation

◆ blobs

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

List of learned parameters stored as blobs.

◆ name

String cv::dnn::LayerParams::name

Name of the layer instance (optional, can be used internal purposes).

◆ type

String cv::dnn::LayerParams::type

Type name which was used for creating layer by layer factory (optional).


The documentation for this class was generated from the following file: