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

レイヤーファクトリは登録済みレイヤーのインスタンスを作成できる。詳細...

#include <opencv2/dnn/layer.hpp>

Collaboration diagram for cv::dnn::LayerFactory:

公開型

typedef Ptr< Layer >(*) Constructor(LayerParams &params)
 Layer クラスは、この関数をファクトリに提供しなければならない。
 

静的公開メンバ関数

static Ptr< LayercreateLayerInstance (const String &type, LayerParams &params)
 登録済みレイヤーのインスタンスを作成する。
 
static bool isLayerRegistered (const std::string &type)
 レイヤーが登録されているかどうかを確認する。
 
static void registerLayer (const String &type, Constructor constructor)
 型名 type と指定された constructor でレイヤークラスを登録する。スレッドセーフ。
 
static void unregisterLayer (const String &type)
 指定された型名で登録済みのレイヤーの登録を解除する。スレッドセーフ。
 

詳細説明

レイヤーファクトリは登録済みレイヤーのインスタンスを作成できる。

型定義メンバ詳解

◆ Constructor

Ptr< Layer >(*) cv::dnn::LayerFactory::Constructor(LayerParams &params)

Layer クラスは、この関数をファクトリに提供しなければならない。

メンバ関数詳解

◆ createLayerInstance()

static Ptr< Layer > cv::dnn::LayerFactory::createLayerInstance ( const String & type,
LayerParams & params )
static

登録済みレイヤーのインスタンスを作成する。

引数
type作成するレイヤーの型名。
paramsレイヤーの初期化に使用されるパラメータ。
覚え書き
スレッドセーフ。

◆ isLayerRegistered()

static bool cv::dnn::LayerFactory::isLayerRegistered ( const std::string & type)
static

レイヤーが登録されているかどうかを確認する。

◆ registerLayer()

static void cv::dnn::LayerFactory::registerLayer ( const String & type,
Constructor constructor )
static

型名 type と指定された constructor でレイヤークラスを登録する。スレッドセーフ。

◆ unregisterLayer()

static void cv::dnn::LayerFactory::unregisterLayer ( const String & type)
static

指定された型名で登録済みのレイヤーの登録を解除する。スレッドセーフ。


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