畳み込みニューラルネットワークによって画像を拡大するクラス。以下の4つのモデルが実装されている: さらに詳しく...
#include <opencv2/dnn_superres.hpp>
畳み込みニューラルネットワークによって画像を拡大するクラス。以下の4つのモデルが実装されている:
◆ DnnSuperResImpl() [1/2]
| cv::dnn_superres::DnnSuperResImpl::DnnSuperResImpl |
( |
| ) |
|
◆ DnnSuperResImpl() [2/2]
| cv::dnn_superres::DnnSuperResImpl::DnnSuperResImpl |
( |
const String & | algo, |
|
|
int | scale ) |
目的のモデルを即座に設定するコンストラクタ。
- 引数
-
| algo | 目的のモデルのいずれかを含む文字列: |
| scale | 拡大率を指定する整数 |
◆ create()
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.create( | | ) -> | retval |
| cv.dnn_superres.DnnSuperResImpl_create( | | ) -> | retval |
◆ getAlgorithm()
| String cv::dnn_superres::DnnSuperResImpl::getAlgorithm |
( |
| ) |
|
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.getAlgorithm( | | ) -> | retval |
モデルのスケールファクタを返す:
- 戻り値
- 現在のアルゴリズム。
◆ getScale()
| int cv::dnn_superres::DnnSuperResImpl::getScale |
( |
| ) |
|
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.getScale( | | ) -> | retval |
モデルのスケールファクタを返す:
- 戻り値
- 現在のスケールファクタ。
◆ readModel() [1/2]
| void cv::dnn_superres::DnnSuperResImpl::readModel |
( |
const String & | path | ) |
|
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.readModel( | path | ) -> | None |
◆ readModel() [2/2]
| void cv::dnn_superres::DnnSuperResImpl::readModel |
( |
const String & | weights, |
|
|
const String & | definition ) |
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.readModel( | path | ) -> | None |
指定したパスからモデルを読み込む。
- 引数
-
| weights | モデルの重みファイルへのパス。 |
| definition | モデル定義ファイルへのパス。 |
◆ setModel()
| void cv::dnn_superres::DnnSuperResImpl::setModel |
( |
const String & | algo, |
|
|
int | scale ) |
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.setModel( | algo, scale | ) -> | None |
目的のモデルを設定する。
- 引数
-
| algo | 目的のモデルのいずれかを含む文字列: |
| scale | 拡大率を指定する整数 |
◆ setPreferableBackend()
| void cv::dnn_superres::DnnSuperResImpl::setPreferableBackend |
( |
int | backendId | ) |
|
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.setPreferableBackend( | backendId | ) -> | None |
◆ setPreferableTarget()
| void cv::dnn_superres::DnnSuperResImpl::setPreferableTarget |
( |
int | targetId | ) |
|
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.setPreferableTarget( | targetId | ) -> | None |
◆ upsample()
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.upsample( | img[, result] | ) -> | result |
ニューラルネットワークによるアップサンプリング。
- 引数
-
| img | 拡大する画像 |
| result | 拡大された出力画像 |
◆ upsampleMultioutput()
| void cv::dnn_superres::DnnSuperResImpl::upsampleMultioutput |
( |
InputArray | img, |
|
|
std::vector< Mat > & | imgs_new, |
|
|
const std::vector< int > & | scale_factors, |
|
|
const std::vector< String > & | node_names ) |
| Python: |
|---|
| cv.dnn_superres.DnnSuperResImpl.upsampleMultioutput( | img, imgs_new, scale_factors, node_names | ) -> | None |
複数出力を持つニューラルネットワークによるアップサンプリング。
- 引数
-
| img | 拡大する画像 |
| imgs_new | 拡大された出力画像群 |
| scale_factors | 出力ノードのスケーリング係数 |
| node_names | ニューラルネットワーク内の出力ノードの名前 |
このクラス詳解は次のファイルから抽出されました: