![]() |
OpenCV 4.13.0
開源計算機視覺庫 (Open Source Computer Vision)
|
類 | |
| 類 | cv::cuda::LookUpTable |
| 使用查詢表進行變換的基類。 更多... | |
函式 | |
| void | cv::cuda::copyMakeBorder (InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, Scalar value=Scalar(), Stream &stream=Stream::Null()) |
| 在影像周圍形成邊框。 | |
| Ptr< LookUpTable > | cv::cuda::createLookUpTable (InputArray lut) |
| 建立 cuda::LookUpTable 的實現。 | |
| void | cv::cuda::flip (InputArray src, OutputArray dst, int flipCode, Stream &stream=Stream::Null()) |
| 圍繞垂直、水平或兩個軸翻轉 2D 矩陣。 | |
| void | cv::cuda::merge (const GpuMat *src, size_t n, OutputArray dst, Stream &stream=Stream::Null()) |
| 由幾個單通道矩陣組成一個多通道矩陣。 | |
| void | cv::cuda::merge (const std::vector< GpuMat > &src, OutputArray dst, Stream &stream=Stream::Null()) |
| void | cv::cuda::split (InputArray src, GpuMat *dst, Stream &stream=Stream::Null()) |
| 將多通道矩陣的每個平面複製到一個數組中。 | |
| void | cv::cuda::split (InputArray src, std::vector< GpuMat > &dst, Stream &stream=Stream::Null()) |
| void | cv::cuda::transpose (InputArray src1, OutputArray dst, Stream &stream=Stream::Null()) |
| 矩陣轉置。 | |
| void cv::cuda::copyMakeBorder | ( | InputArray | src, |
| OutputArray | dst, | ||
| int | top (上), | ||
| int | bottom (下), | ||
| int | left (左), | ||
| int | right (右), | ||
| int | borderType, | ||
| Scalar | value=Scalar(), | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
在影像周圍形成邊框。
| src | 源影像。支援 CV_8UC1、CV_8UC4、CV_32SC1 和 CV_32FC1 型別。 |
| dst | 目標影像,型別與 src 相同。大小為 Size(src.cols+left+right, src.rows+top+bottom)。 |
| top (上) | 頂部畫素的數量 |
| bottom (下) | 底部畫素的數量 |
| left (左) | 左側畫素的數量 |
| right (右) | 從源影像矩形到外插的每個方向上的畫素數。例如:top=1, bottom=1, left=1, right=1 表示需要構建一個 1 畫素寬的邊框。 |
| borderType | 邊框型別。有關詳細資訊,請參見 borderInterpolate。目前支援 BORDER_REFLECT101、BORDER_REPLICATE、BORDER_CONSTANT、BORDER_REFLECT 和 BORDER_WRAP。 |
| value (值) | 邊框值。 |
| 流 | Stream 用於非同步版本。 |
| Ptr< LookUpTable > cv::cuda::createLookUpTable | ( | InputArray | lut | ) |
| void cv::cuda::flip | ( | InputArray | src, |
| OutputArray | dst, | ||
| int | flipCode (翻轉程式碼), | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
圍繞垂直、水平或兩個軸翻轉 2D 矩陣。
| src | 源矩陣。支援具有 CV_8U、CV_16U、CV_32S 或 CV_32F 深度的 1、3 和 4 通道影像。 |
| dst | 目標矩陣。 |
| flipCode (翻轉程式碼) | 源的翻轉模式
|
| 流 | Stream 用於非同步版本。 |
| void cv::cuda::merge | ( | const GpuMat * | src, |
| size_t | n, | ||
| OutputArray | dst, | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
由幾個單通道矩陣組成一個多通道矩陣。
| src | 源矩陣的陣列/向量。 |
| n | 源矩陣的數量。 |
| dst | 目標矩陣。 |
| 流 | Stream 用於非同步版本。 |
| void cv::cuda::merge | ( | const std::vector< GpuMat > & | src, |
| OutputArray | dst, | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
這是一個過載的成員函式,為方便起見而提供。它與上述函式的區別僅在於所接受的引數不同。
| void cv::cuda::split | ( | InputArray | src, |
| GpuMat * | dst, | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
將多通道矩陣的每個平面複製到一個數組中。
| src | 源矩陣。 |
| dst | 單通道目標矩陣的陣列/向量。 |
| 流 | Stream 用於非同步版本。 |
| void cv::cuda::split | ( | InputArray | src, |
| std::vector< GpuMat > & | dst, | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
這是一個過載的成員函式,為方便起見而提供。它與上述函式的區別僅在於所接受的引數不同。
| void cv::cuda::transpose | ( | InputArray | src1, |
| OutputArray | dst, | ||
| 流 (Stream) & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
矩陣轉置。
| src1 | 源矩陣。目前支援 1、4、8 位元組元素大小。 |
| dst | 目標矩陣。 |
| 流 | Stream 用於非同步版本。 |