Class cv::dnn::LayerParams#

This class provides all data needed to initialize layer. View details

Collaboration diagram for cv::dnn::LayerParams:

Public Member Functions#

Public Member Functions inherited from cv::dnn::Dict

Return

Name

Description

std::map< String, DictValue >::const_iterator

begin()

std::map< String, DictValue >::const_iterator

end()

void

erase(const String & key)

Erase key from the dictionary.

const DictValue &

get(const String & key)

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

T

get(const String & key)

T

get(
    const String & key,
    const T & defaultValue )

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

std::vector< T >

getVector(const String & key)

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

bool

has(const String & key)

Checks a presence of the key in the dictionary.

DictValue *

ptr(const String & key)

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

const DictValue *

ptr(const String & key)

const T &

set(
    const String & key,
    const T & value )

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

Additional Inherited Members#

Friends inherited from cv::dnn::Dict

Return

Name

Description

std::ostream &

operator<<(std::ostream &stream, const Dict &dict)

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 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).

Source file#

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