![]() |
OpenCV 4.12.0
開源計算機視覺
|
類 | |
| 類 | 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()) |
| Forms a border around an image. | |
| Ptr< LookUpTable > | cv::cuda::createLookUpTable (InputArray lut) |
| 建立 cuda::LookUpTable 的實現。 | |
| void | cv::cuda::flip (InputArray src, OutputArray dst, int flipCode, Stream &stream=Stream::Null()) |
| 圍繞垂直、水平或兩個軸翻轉二維矩陣。 | |
| 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 | 左, | ||
| int | 右, | ||
| int | borderType, | ||
| Scalar | value = Scalar(), | ||
| Stream & | stream = Stream::Null() ) |
#include <opencv2/cudaarithm.hpp>
Forms a border around an image.
| src | 源影像。支援 CV_8UC1、CV_8UC4、CV_32SC1 和 CV_32FC1 型別。 |
| dst | 與 src 型別相同的目標影像。尺寸為 Size(src.cols+left+right, src.rows+top+bottom) 。 |
| top | 頂部畫素數 |
| bottom | 底部畫素數 |
| 左 | 左側畫素數 |
| 右 | 從源影像矩形到外推的每個方向上的畫素數。例如:top=1, bottom=1, left=1, right=1 表示需要構建 1 畫素寬的邊框。 |
| borderType | 邊框型別。有關詳細資訊,請參見 borderInterpolate。目前支援 BORDER_REFLECT101、BORDER_REPLICATE、BORDER_CONSTANT、BORDER_REFLECT 和 BORDER_WRAP。 |
| 值 | 邊框值。 |
| 流 | 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>
圍繞垂直、水平或兩個軸翻轉二維矩陣。
| src | 源矩陣。支援具有 CV_8U、CV_16U、CV_32S 或 CV_32F 深度的一個、三個和四個通道的影像。 |
| 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 用於非同步版本。 |