![]() |
OpenCV 4.12.0
開源計算機視覺
|
#include <opencv2/cann.hpp>
類 | |
| 類 | 分配器 |
公共成員函式 | |
| 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 轉換為另一種資料型別,目標矩陣已分配。(非阻塞呼叫) | |
| 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 的所有元素設定為浮點數 (阻塞呼叫) | |
| AscendMat & | setTo (float sc, AscendStream &stream) |
| 將 AscendMat 的所有元素設定為浮點數 (非阻塞呼叫) | |
| Size | size () const |
| 返回 AscendMat 大小:寬度 == 列數,高度 == 行數 | |
| 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 * | 分配器 |
| 分配器 | |
| int | cols |
| std::shared_ptr< uchar > | data |
| 指向資料的指標 | |
| const uchar * | dataend |
| uchar * | datastart |
| 用於 locateROI 和 adjustROI 的輔助欄位 | |
| int | flags |
| int | rows |
| 行數和列數 | |
| size_t | step |
| 連續行之間的位元組距離;包括可能存在的間隙 | |
|
顯式 |
預設建構函式
| 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 ) |
|
顯式 |
從主機記憶體構建 AscendMat (阻塞呼叫)
| int cv::cann::AscendMat::channels | ( | ) | const |
返回通道數
| void cv::cann::AscendMat::convertTo | ( | AscendMat & | dst, |
| AscendStream & | stream ) const |
將 AscendMat 轉換為另一種資料型別,目標矩陣已分配。(非阻塞呼叫)
| 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 設定分配器。
| 分配器 |
| AscendMat & cv::cann::AscendMat::setTo | ( | const Scalar & | s, |
| AscendStream & | stream ) |
將 AscendMat 的某些元素設定為 s (非阻塞呼叫)
| AscendMat & cv::cann::AscendMat::setTo | ( | float | sc, |
| AscendStream & | stream ) |
將 AscendMat 的所有元素設定為浮點數 (非阻塞呼叫)
| 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 |
連續行之間的位元組距離;包括可能存在的間隙