モデルのグラフまたはサブグラフを表す。グラフ(数学的にはむしろマルチグラフ)は、トポロジカルソートされた線形の操作シーケンスとして表現される。各操作は Layer(その派生クラスのインスタンスのいずれか)へのスマートポインタであり、入力と出力のリストに加え、省略可能なサブグラフのリスト(例: 'If' は2つのサブグラフを含む)を含む。詳細...
#include <opencv2/dnn/dnn.hpp>
|
| virtual | ~Graph () |
| |
| virtual Arg | append (Ptr< Layer > &layer, const std::string &outname=std::string())=0 |
| |
| virtual const std::vector< Arg > & | append (Ptr< Layer > &layer, const std::vector< std::string > &outnames=std::vector< std::string >())=0 |
| |
| virtual void | clear ()=0 |
| |
| virtual std::ostream & | dump (std::ostream &strm, int indent, bool comma)=0 |
| |
| virtual bool | empty () const =0 |
| |
| virtual const std::vector< Arg > & | inputs () const =0 |
| |
| virtual std::string | name () const =0 |
| |
| virtual const std::vector< Arg > & | outputs () const =0 |
| |
| virtual const std::vector< Ptr< Layer > > & | prog () const =0 |
| |
| virtual void | setOutputs (const std::vector< Arg > &outputs)=0 |
| |
| virtual void | setProg (const std::vector< Ptr< Layer > > &newprog)=0 |
| |
モデルのグラフまたはサブグラフを表す。グラフ(数学的にはむしろマルチグラフ)は、トポロジカルソートされた線形の操作シーケンスとして表現される。各操作は Layer(その派生クラスのインスタンスのいずれか)へのスマートポインタであり、入力と出力のリストに加え、省略可能なサブグラフのリスト(例: 'If' は2つのサブグラフを含む)を含む。
◆ ~Graph()
| virtual cv::dnn::Graph::~Graph |
( |
| ) |
|
|
virtual |
◆ append() [1/2]
| virtual Arg cv::dnn::Graph::append |
( |
Ptr< Layer > & | layer, |
|
|
const std::string & | outname = std::string() ) |
|
pure virtual |
◆ append() [2/2]
| virtual const std::vector< Arg > & cv::dnn::Graph::append |
( |
Ptr< Layer > & | layer, |
|
|
const std::vector< std::string > & | outnames = std::vector< std::string >() ) |
|
pure virtual |
◆ clear()
| virtual void cv::dnn::Graph::clear |
( |
| ) |
|
|
pure virtual |
◆ create()
| static Ptr< Graph > cv::dnn::Graph::create |
( |
void * | netimpl, |
|
|
const std::string & | name, |
|
|
const std::vector< Arg > & | inputs ) |
|
static |
◆ dump()
| virtual std::ostream & cv::dnn::Graph::dump |
( |
std::ostream & | strm, |
|
|
int | indent, |
|
|
bool | comma ) |
|
pure virtual |
◆ empty()
| virtual bool cv::dnn::Graph::empty |
( |
| ) |
const |
|
pure virtual |
◆ inputs()
| virtual const std::vector< Arg > & cv::dnn::Graph::inputs |
( |
| ) |
const |
|
pure virtual |
◆ name()
| virtual std::string cv::dnn::Graph::name |
( |
| ) |
const |
|
pure virtual |
◆ outputs()
| virtual const std::vector< Arg > & cv::dnn::Graph::outputs |
( |
| ) |
const |
|
pure virtual |
◆ prog()
| virtual const std::vector< Ptr< Layer > > & cv::dnn::Graph::prog |
( |
| ) |
const |
|
pure virtual |
◆ setOutputs()
| virtual void cv::dnn::Graph::setOutputs |
( |
const std::vector< Arg > & | outputs | ) |
|
|
pure virtual |
◆ setProg()
| virtual void cv::dnn::Graph::setProg |
( |
const std::vector< Ptr< Layer > > & | newprog | ) |
|
|
pure virtual |
このクラス詳解は次のファイルから抽出されました: