Struct cv::dnn::DictValue#

This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64. View details

Collaboration diagram for cv::dnn::DictValue:

Friends#

Return

Name

Description

std::ostream &

operator<<(std::ostream &stream, const DictValue &dictv)

Detailed Description#

struct DictValue#

This struct stores the scalar value (or array) of one of the following type: double, cv::String or int64.

Todo:

Maybe int64 is useless because double type exactly stores at least 2^52 integers.

Constructor & Destructor Documentation#

DictValue()#

cv::dnn::DictValue::DictValue(bool i)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Constructs integer scalar.

DictValue()#

cv::dnn::DictValue::DictValue(const char * s)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

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

DictValue()#

cv::dnn::DictValue::DictValue(const DictValue & r)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

DictValue()#

cv::dnn::DictValue::DictValue(const String & s)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Constructs string scalar.

DictValue()#

cv::dnn::DictValue::DictValue(double p)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Constructs floating point scalar.

DictValue()#

cv::dnn::DictValue::DictValue(int i)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Constructs integer scalar.

DictValue()#

cv::dnn::DictValue::DictValue(int64 i = 0)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Constructs integer scalar.

DictValue()#

cv::dnn::DictValue::DictValue(unsigned p)

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Constructs integer scalar.

~DictValue()#

cv::dnn::DictValue::~DictValue()

DictValue()#

cv::dnn::DictValue::DictValue(
Param _type,
void * _p )

Python:

cv.dnn.DictValue(i) -> <dnn_DictValue object>
cv.dnn.DictValue(p) -> <dnn_DictValue object>
cv.dnn.DictValue(s) -> <dnn_DictValue object>

Member Function Documentation#

get()#

template<typename T>
T cv::dnn::DictValue::get(int idx = -1)

Tries to convert array element with specified index to requested type and returns its.

getIntValue()#

int cv::dnn::DictValue::getIntValue(int idx = -1)

Python:

cv.dnn.DictValue.getIntValue([, idx]) -> retval

getRealValue()#

double cv::dnn::DictValue::getRealValue(int idx = -1)

Python:

cv.dnn.DictValue.getRealValue([, idx]) -> retval

getStringValue()#

String cv::dnn::DictValue::getStringValue(int idx = -1)

Python:

cv.dnn.DictValue.getStringValue([, idx]) -> retval

isInt()#

bool cv::dnn::DictValue::isInt()

Python:

cv.dnn.DictValue.isInt() -> retval

isReal()#

bool cv::dnn::DictValue::isReal()

Python:

cv.dnn.DictValue.isReal() -> retval

isString()#

bool cv::dnn::DictValue::isString()

Python:

cv.dnn.DictValue.isString() -> retval

operator=()#

DictValue & cv::dnn::DictValue::operator=(const DictValue & r)

size()#

int cv::dnn::DictValue::size()

arrayInt()#

template<typename TypeIter>
static DictValue cv::dnn::DictValue::arrayInt(
TypeIter begin,
int size )

Constructs integer array.

arrayReal()#

template<typename TypeIter>
static DictValue cv::dnn::DictValue::arrayReal(
TypeIter begin,
int size )

Constructs floating point array.

arrayString()#

template<typename TypeIter>
static DictValue cv::dnn::DictValue::arrayString(
TypeIter begin,
int size )

Constructs array of strings.

release()#

void cv::dnn::DictValue::release()

Member Data Documentation#

#

union cv::dnn::DictValue cv::dnn::DictValue::

type#

Param cv::dnn::DictValue::type

pd#

AutoBuffer< double, 1 > * cv::dnn::DictValue::pd

pi#

AutoBuffer< int64, 1 > * cv::dnn::DictValue::pi

ps#

AutoBuffer< String, 1 > * cv::dnn::DictValue::ps

pv#

void * cv::dnn::DictValue::pv

Source file#

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