![]() |
OpenCV 4.10.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()) |
| 在图像周围形成一个边界。 | |
| 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 | 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 | 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 深度的 1、3 和 4 通道图像。 |
| dst | 目标矩阵。 |
| flipCode | 源的翻转模式
|
| stream | 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 | 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 | 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 | Stream 用于异步版本。 |
1.9.8 为 OpenCV 生成于 2024 年 6 月 2 日星期日 21:52:15