OpenCV 5.0.0
Open Source Computer Vision
読み込み中...
検索中...
見つかりません
🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

このクラスは名前と値の辞書を実装したものであり、値は DictValue のインスタンスである。 続きを読む...

#include <opencv2/dnn/dict.hpp>

Collaboration diagram for 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 DictValueget (const String &key) const
 key が辞書に存在する場合はその値を返し、存在しない場合はエラーを発生させる。
 
template<typename T >
get (const String &key) const
 
template<typename T >
get (const String &key, const T &defaultValue) const
 key が辞書に存在する場合はその値を返し、存在しない場合は defaultValue を返す。
 
template<typename T >
std::vector< T > getVector (const String &key) const
 辞書に key が存在する場合はその値を返し、存在しない場合は空のベクトルを返す。
 
bool has (const String &key) const
 辞書内に key が存在するかどうかを確認する。
 
DictValueptr (const String &key)
 key が辞書に存在する場合はその値へのポインタを返し、存在しない場合はNULLを返す。
 
const DictValueptr (const String &key) const
 
template<typename T >
const T & set (const String &key, const T &value)
 key に新しい value を設定するか、新しいキーと値のペアを辞書に追加する。
 

フレンド

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

詳細説明

このクラスは名前と値の辞書を実装したものであり、値は DictValue のインスタンスである。

メンバ関数詳解

◆ begin()

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

◆ end()

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

◆ erase()

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

辞書から key を削除する。

◆ get() [1/3]

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

key が辞書に存在する場合はその値を返し、存在しない場合はエラーを発生させる。

◆ get() [2/3]

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

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

◆ get() [3/3]

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

key が辞書に存在する場合はその値を返し、存在しない場合は defaultValue を返す。

◆ getVector()

template<typename T >
std::vector< T > cv::dnn::Dict::getVector ( const String & key) const

辞書に key が存在する場合はその値を返し、存在しない場合は空のベクトルを返す。

◆ has()

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

辞書内に key が存在するか確認する。

◆ ptr() [1/2]

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

辞書内に key が存在する場合はその値へのポインタを返し、存在しない場合は NULL を返す。

◆ ptr() [2/2]

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

これは利便性のために提供されているオーバーロードされたメンバ関数である。上記の関数とは、受け取る引数のみが異なる。

◆ set()

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

key に新しい value を設定する。キーが存在しない場合は新しいキーと値のペアを辞書に追加する。

Friends And Related Symbol Documentation

◆ operator<<

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

このクラス詳解は次のファイルから抽出されました: