![]() |
OpenCV 4.13.0
Open Source Computer Vision
|
#include <opencv2/cann.hpp>
クラス | |
| class | Allocator |
公開メンバ関数 | |
| AscendMat (AscendMat::Allocator *allocator_=AscendMat::defaultAllocator()) | |
| デフォルトコンストラクタ | |
| AscendMat (const AscendMat &m) | |
| コピーコンストラクタ | |
| AscendMat (InputArray _m, const Rect &roi) | |
| 別の領域から特定の範囲を切り出して AscendMat を構築する | |
| AscendMat (InputArray _m, const Rect &roi, AscendStream &stream) | |
| AscendMat (InputArray arr, AscendStream &stream, AscendMat::Allocator *allocator=AscendMat::defaultAllocator()) | |
| ホストメモリから AscendMat を構築する (ブロッキング呼び出し) | |
| AscendMat (int rows, int cols, int type, AscendMat::Allocator *allocator=AscendMat::defaultAllocator()) | |
| 指定したサイズと型の AscendMat を構築する | |
| AscendMat (int rows, int cols, int type, Scalar &s, AscendMat::Allocator *allocator=AscendMat::defaultAllocator()) | |
| AscendMat を構築し、指定した値 s で埋める | |
| AscendMat (Size size, int type, AscendMat::Allocator *allocator=AscendMat::defaultAllocator()) | |
| 指定したサイズと型の AscendMat を構築する | |
| AscendMat (Size size, int type, Scalar &s, AscendMat::Allocator *allocator=AscendMat::defaultAllocator()) | |
| AscendMat を構築し、指定した値 s で埋める | |
| int | channels () const |
| チャンネル数を返す | |
| void | convertTo (AscendMat &dst, AscendStream &stream) const |
| AscendMat を別のデータ型に変換する。dst の行列は確保される。(ノンブロッキング呼び出し) | |
| void | convertTo (AscendMat &dst, int rtype) const |
| AscendMat を別のデータ型に変換する (ブロッキング呼び出し) | |
| void | convertTo (AscendMat &dst, int rtype, AscendStream &stream) const |
| AscendMat を別のデータ型に変換する (ノンブロッキング呼び出し) | |
| void | create (int rows, int cols, int type) |
| AscendMat がすでに指定したサイズと型を持っていない限り、新しい AscendMat データを確保する | |
| int | depth () const |
| 要素の型を返す | |
| void | download (OutputArray dst) const |
| AscendMat からホストへデータをダウンロードする (ブロッキング呼び出し) | |
| void | download (OutputArray dst, AscendStream &stream) const |
| AscendMat からホストへデータをダウンロードする (ノンブロッキング呼び出し) | |
| size_t | elemSize () const |
| 要素のサイズをバイト単位で返す | |
| size_t | elemSize1 () const |
| 要素のチャンネルのサイズをバイト単位で返す | |
| bool | empty () const |
| AscendMat のデータが NULL の場合に true を返す | |
| bool | isContinuous () const |
| AscendMat & | operator= (const AscendMat &m) |
| 代入演算子 | |
| AscendMat & | setTo (const Scalar &s) |
| AscendMat の一部の要素を s に設定する (ブロッキング呼び出し) | |
| AscendMat & | setTo (const Scalar &s, AscendStream &stream) |
| AscendMat の一部の要素を s に設定する (ノンブロッキング呼び出し) | |
| AscendMat & | setTo (float sc) |
| AscendMat のすべての要素を float に設定する (ブロッキング呼び出し) | |
| AscendMat & | setTo (float sc, AscendStream &stream) |
| AscendMat のすべての要素を float に設定する (ノンブロッキング呼び出し) | |
| Size | size () const |
| AscendMat のサイズを返す : width == 列数、height == 行数 | |
| size_t | step1 () const |
| step/elemSize1() を返す | |
| void | swap (AscendMat &mat) |
| 別のスマートポインタと交換する | |
| int | type () const |
| 要素の型を返す | |
| void | updateContinuityFlag () |
| 内部使用メソッド: 連続性フラグを更新する | |
| void | upload (InputArray arr) |
| ホストメモリのデータを AscendMat にアップロードする (ブロッキング呼び出し) | |
| void | upload (InputArray arr, AscendStream &stream) |
| ホストメモリのデータを AscendMat にアップロードする (ノンブロッキング呼び出し) | |
静的公開メンバ関数 | |
| static AscendMat::Allocator * | defaultAllocator () |
| AscendMat のデフォルトアロケータを作成する。このアロケータは指定したサイズの分だけデバイスからメモリを確保する。 | |
| static void | setDefaultAllocator (AscendMat::Allocator *allocator) |
| AscendMat にアロケータを設定する。 | |
公開変数類 | |
| Allocator * | allocator |
| アロケータ | |
| int | cols |
| std::shared_ptr< uchar > | data |
| データへのポインタ | |
| const uchar * | dataend |
| uchar * | datastart |
| locateROI と adjustROI で使用される補助フィールド | |
| int | flags |
| int | rows |
| 行数と列数 | |
| size_t | step |
| 連続する行の間のバイト単位の距離。存在する場合はギャップも含む | |
|
explicit |
デフォルトコンストラクタ
| cv::cann::AscendMat::AscendMat | ( | int | rows, |
| int | cols, | ||
| int | type, | ||
| AscendMat::Allocator * | allocator = AscendMat::defaultAllocator() ) |
指定したサイズと型の AscendMat を構築する
| cv::cann::AscendMat::AscendMat | ( | Size | size, |
| int | type, | ||
| AscendMat::Allocator * | allocator = AscendMat::defaultAllocator() ) |
指定したサイズと型の AscendMat を構築する
| cv::cann::AscendMat::AscendMat | ( | int | rows, |
| int | cols, | ||
| int | type, | ||
| Scalar & | s, | ||
| AscendMat::Allocator * | allocator = AscendMat::defaultAllocator() ) |
AscendMat を構築し、指定した値 s で埋める
| cv::cann::AscendMat::AscendMat | ( | Size | size, |
| int | type, | ||
| Scalar & | s, | ||
| AscendMat::Allocator * | allocator = AscendMat::defaultAllocator() ) |
AscendMat を構築し、指定した値 s で埋める
| cv::cann::AscendMat::AscendMat | ( | const AscendMat & | m | ) |
コピーコンストラクタ
| cv::cann::AscendMat::AscendMat | ( | InputArray | _m, |
| const Rect & | roi ) |
別の領域から特定の範囲を切り出して AscendMat を構築する
| cv::cann::AscendMat::AscendMat | ( | InputArray | _m, |
| const Rect & | roi, | ||
| AscendStream & | stream ) |
|
explicit |
ホストメモリから AscendMat を構築する (ブロッキング呼び出し)
| int cv::cann::AscendMat::channels | ( | ) | const |
チャンネル数を返す
| void cv::cann::AscendMat::convertTo | ( | AscendMat & | dst, |
| AscendStream & | stream ) const |
AscendMat を別のデータ型に変換する。dst の行列は確保される。(ノンブロッキング呼び出し)
| void cv::cann::AscendMat::convertTo | ( | AscendMat & | dst, |
| int | rtype ) const |
AscendMat を別のデータ型に変換する (ブロッキング呼び出し)
| void cv::cann::AscendMat::convertTo | ( | AscendMat & | dst, |
| int | rtype, | ||
| AscendStream & | stream ) const |
AscendMat を別のデータ型に変換する (ノンブロッキング呼び出し)
| void cv::cann::AscendMat::create | ( | int | rows, |
| int | cols, | ||
| int | type ) |
|
static |
AscendMat のデフォルトアロケータを作成する。このアロケータは指定したサイズの分だけデバイスからメモリを確保する。
| int cv::cann::AscendMat::depth | ( | ) | const |
要素の型を返す
| void cv::cann::AscendMat::download | ( | OutputArray | dst | ) | const |
AscendMat からホストへデータをダウンロードする (ブロッキング呼び出し)
| void cv::cann::AscendMat::download | ( | OutputArray | dst, |
| AscendStream & | stream ) const |
AscendMat からホストへデータをダウンロードする (ノンブロッキング呼び出し)
| size_t cv::cann::AscendMat::elemSize | ( | ) | const |
要素サイズをバイト単位で返す
| size_t cv::cann::AscendMat::elemSize1 | ( | ) | const |
要素のチャンネルのサイズをバイト単位で返す
| bool cv::cann::AscendMat::empty | ( | ) | const |
AscendMat のデータが NULL の場合に true を返す
| bool cv::cann::AscendMat::isContinuous | ( | ) | const |
AscendMat のデータが連続している場合に限り true を返す (すなわち連続する行の間に隙間がない場合)
|
static |
AscendMat にアロケータを設定する。
| allocator |
| AscendMat & cv::cann::AscendMat::setTo | ( | const Scalar & | s, |
| AscendStream & | stream ) |
AscendMat の一部の要素を s に設定する (ノンブロッキング呼び出し)
| AscendMat & cv::cann::AscendMat::setTo | ( | float | sc, |
| AscendStream & | stream ) |
AscendMat のすべての要素を float に設定する (ノンブロッキング呼び出し)
| size_t cv::cann::AscendMat::step1 | ( | ) | const |
step/elemSize1() を返す
| void cv::cann::AscendMat::swap | ( | AscendMat & | mat | ) |
別のスマートポインタと交換する
| int cv::cann::AscendMat::type | ( | ) | const |
要素の型を返す
| void cv::cann::AscendMat::updateContinuityFlag | ( | ) |
内部使用メソッド: 連続性フラグを更新する
| void cv::cann::AscendMat::upload | ( | InputArray | arr | ) |
ホストメモリのデータを AscendMat にアップロードする (ブロッキング呼び出し)
| void cv::cann::AscendMat::upload | ( | InputArray | arr, |
| AscendStream & | stream ) |
ホストメモリのデータを AscendMat にアップロードする (ノンブロッキング呼び出し)
| Allocator* cv::cann::AscendMat::allocator |
アロケータ
| int cv::cann::AscendMat::cols |
| std::shared_ptr<uchar> cv::cann::AscendMat::data |
データへのポインタ
| const uchar* cv::cann::AscendMat::dataend |
| uchar* cv::cann::AscendMat::datastart |
locateROI と adjustROI で使用される補助フィールド
| int cv::cann::AscendMat::flags |
いくつかのビットフィールドを含む:
| int cv::cann::AscendMat::rows |
行数と列数
| size_t cv::cann::AscendMat::step |
連続する行の間のバイト単位の距離。存在する場合はギャップも含む