OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::dnn::DictValue 結構參考

該結構儲存以下型別之一的標量值(或陣列):double、cv::String 或 int64。 更多...

#include <opencv2/dnn/dict.hpp>

cv::dnn::DictValue 的協作圖

公共成員函式

 DictValue (bool i)
 構造整數標量。
 
 DictValue (const char *s)
 這是一個過載的成員函式,為了方便而提供。它與上面的函式唯一的不同之處在於它接受的引數。
 
 DictValue (const DictValue &r)
 
 DictValue (const String &s)
 構造字串標量。
 
 DictValue (double p)
 構造浮點標量。
 
 DictValue (int i)
 構造整數標量。
 
 DictValue (int64 i=0)
 構造整數標量。
 
 DictValue (unsigned p)
 構造整數標量。
 
 ~DictValue ()
 
template<typename T >
get (int idx=-1) const
 嘗試將指定索引的陣列元素轉換為請求的型別並返回它。
 
int getIntValue (int idx=-1) const
 
double getRealValue (int idx=-1) const
 
String getStringValue (int idx=-1) const
 
bool isInt () const
 
bool isReal () const
 
bool isString () const
 
DictValueoperator= (const DictValue &r)
 
int size () const
 

靜態公共成員函式

template<typename TypeIter >
static DictValue arrayInt (TypeIter begin, int size)
 構造整數陣列。
 
template<typename TypeIter >
static DictValue arrayReal (TypeIter begin, int size)
 構造浮點陣列。
 
template<typename TypeIter >
static DictValue arrayString (TypeIter begin, int size)
 構造字串陣列。
 

友元

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

詳細描述

該結構儲存以下型別之一的標量值(或陣列):double、cv::String 或 int64。

待辦
也許 int64 沒有用,因為 double 型別可以精確儲存至少 2^52 個整數。

建構函式 & 解構函式文件

◆ DictValue() [1/8]

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

◆ DictValue() [2/8]

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

構造整數標量。

◆ DictValue() [3/8]

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

構造整數標量。

◆ DictValue() [4/8]

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

構造整數標量。

◆ DictValue() [5/8]

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

構造整數標量。

◆ DictValue() [6/8]

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

構造浮點標量。

◆ DictValue() [7/8]

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

構造字串標量。

◆ DictValue() [8/8]

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

這是一個過載的成員函式,為了方便而提供。它與上面的函式唯一的不同之處在於它接受的引數。

◆ ~DictValue()

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

成員函式文件

◆ arrayInt()

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

構造整數陣列。

◆ arrayReal()

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

構造浮點陣列。

◆ arrayString()

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

構造字串陣列。

◆ get()

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

嘗試將指定索引的陣列元素轉換為請求的型別並返回它。

◆ getIntValue()

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

◆ getRealValue()

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

◆ getStringValue()

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

◆ isInt()

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

◆ isReal()

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

◆ isString()

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

◆ operator=()

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

◆ size()

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

友元和相關符號文件

◆ operator<<

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

成員資料文件

◆ 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

此結構的文件由以下檔案生成