OpenCV 4.11.0
开源计算机视觉库
|
主题 | |
逐元素加法和减法 | |
逐元素最小值或最大值 | |
逐元素绝对差 | |
按位逻辑运算 | |
查找表 | |
汉明距离 | |
逐元素比较 | |
逐元素乘法 | |
逐元素除法 | |
逐元素倒数 | |
逐元素加权和 | |
通道分离 | |
通道合并 | |
反正切计算 | |
幅度计算 | |
逆平方根计算 | |
平方根计算 | |
自然对数计算 | |
指数计算 | |
LU矩阵分解 | |
Cholesky矩阵分解 | |
奇异值矩阵分解 | |
QR矩阵分解 | |
矩阵乘法 | |
类 | |
结构体 | cvhalDFT |
存储DFT/DCT上下文的虚拟结构体。 更多… | |
函数 | |
int | hal_ni_dct2D (cvhalDFT *context, const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step) |
int | hal_ni_dctFree2D (cvhalDFT *context) |
int | hal_ni_dctInit2D (cvhalDFT **context, int width, int height, int depth, int flags) |
int | hal_ni_dft1D (cvhalDFT *context, const uchar *src, uchar *dst) |
int | hal_ni_dft2D (cvhalDFT *context, const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step) |
int | hal_ni_dftFree1D (cvhalDFT *context) |
int | hal_ni_dftFree2D (cvhalDFT *context) |
int | hal_ni_dftInit1D (cvhalDFT **context, int len, int count, int depth, int flags, bool *needBuffer) |
int | hal_ni_dftInit2D (cvhalDFT **context, int width, int height, int depth, int src_channels, int dst_channels, int flags, int nonzero_rows) |
int | hal_ni_dotProduct (const uchar *a_data, size_t a_step, const uchar *b_data, size_t b_step, int width, int height, int type, double *dot_val) |
计算两个向量(表示为二维图像)的点积 | |
int | hal_ni_flip (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int flip_mode) |
hal_flip | |
int | hal_ni_meanStdDev (const uchar *src_data, size_t src_step, int width, int height, int src_type, double *mean_val, double *stddev_val, uchar *mask, size_t mask_step) |
独立地为每个通道计算数组元素的均值和标准差 | |
int | hal_ni_minMaxIdx (const uchar *src_data, size_t src_step, int width, int height, int depth, double *minVal, double *maxVal, int *minIdx, int *maxIdx, uchar *mask) |
查找数组中的全局最小值和最大值。 | |
int | hal_ni_rotate90 (int src_type, const uchar *src_data, size_t src_step, int src_width, int src_height, uchar *dst_data, size_t dst_step, int angle) |
rotate90 | |
int | hal_ni_transpose2d (const uchar *src_data, size_t src_step, uchar *dst_data, size_t dst_step, int src_width, int src_height, int element_size) |
转置2d。 | |
数据类型 | |
基本类型
| |
typedef uint32_t | uint |
typedef signed char | schar |
typedef unsigned char | uchar |
typedef unsigned short | ushort |
typedef int64_t | int64 |
typedef uint64_t | uint64 |
#define | CV_BIG_INT(n) |
#define | CV_BIG_UINT(n) |
#define | CV_USRTYPE1 ("OpenCV 4.0中已取消CV_USRTYPE1支持") |
#define | CV_CN_MAX 512 |
#define | CV_CN_SHIFT 3 |
#define | CV_DEPTH_MAX (1 << CV_CN_SHIFT) |
#define | CV_8U 0 |
#define | CV_8S 1 |
#define | CV_16U 2 |
#define | CV_16S 3 |
#define | CV_32S 4 |
#define | CV_32F 5 |
#define | CV_64F 6 |
#define | CV_16F 7 |
#define | CV_MAT_DEPTH_MASK (CV_DEPTH_MAX - 1) |
#define | CV_MAT_DEPTH(flags) |
#define | CV_MAKETYPE(depth, cn) |
#define | CV_MAKE_TYPE CV_MAKETYPE |
#define | CV_8UC1 CV_MAKETYPE(CV_8U,1) |
#define | CV_8UC2 CV_MAKETYPE(CV_8U,2) |
#define | CV_8UC3 CV_MAKETYPE(CV_8U,3) |
#define | CV_8UC4 CV_MAKETYPE(CV_8U,4) |
#define | CV_8UC(n) |
#define | CV_8SC1 CV_MAKETYPE(CV_8S,1) |
#define | CV_8SC2 CV_MAKETYPE(CV_8S,2) |
#define | CV_8SC3 CV_MAKETYPE(CV_8S,3) |
#define | CV_8SC4 CV_MAKETYPE(CV_8S,4) |
#define | CV_8SC(n) |
#define | CV_16UC1 CV_MAKETYPE(CV_16U,1) |
#define | CV_16UC2 CV_MAKETYPE(CV_16U,2) |
#define | CV_16UC3 CV_MAKETYPE(CV_16U,3) |
#define | CV_16UC4 CV_MAKETYPE(CV_16U,4) |
#define | CV_16UC(n) |
#define | CV_16SC1 CV_MAKETYPE(CV_16S,1) |
#define | CV_16SC2 CV_MAKETYPE(CV_16S,2) |
#define | CV_16SC3 CV_MAKETYPE(CV_16S,3) |
#define | CV_16SC4 CV_MAKETYPE(CV_16S,4) |
#define | CV_16SC(n) |
#define | CV_32SC1 CV_MAKETYPE(CV_32S,1) |
#define | CV_32SC2 CV_MAKETYPE(CV_32S,2) |
#define | CV_32SC3 CV_MAKETYPE(CV_32S,3) |
#define | CV_32SC4 CV_MAKETYPE(CV_32S,4) |
#define | CV_32SC(n) |
#define | CV_32FC1 CV_MAKETYPE(CV_32F,1) |
#define | CV_32FC2 CV_MAKETYPE(CV_32F,2) |
#define | CV_32FC3 CV_MAKETYPE(CV_32F,3) |
#define | CV_32FC4 CV_MAKETYPE(CV_32F,4) |
#define | CV_32FC(n) |
#define | CV_64FC1 CV_MAKETYPE(CV_64F,1) |
#define | CV_64FC2 CV_MAKETYPE(CV_64F,2) |
#define | CV_64FC3 CV_MAKETYPE(CV_64F,3) |
#define | CV_64FC4 CV_MAKETYPE(CV_64F,4) |
#define | CV_64FC(n) |
#define | CV_16FC1 CV_MAKETYPE(CV_16F,1) |
#define | CV_16FC2 CV_MAKETYPE(CV_16F,2) |
#define | CV_16FC3 CV_MAKETYPE(CV_16F,3) |
#define | CV_16FC4 CV_MAKETYPE(CV_16F,4) |
#define | CV_16FC(n) |
返回代码 | |
#define | CV_HAL_ERROR_OK 0 |
#define | CV_HAL_ERROR_NOT_IMPLEMENTED 1 |
#define | CV_HAL_ERROR_UNKNOWN -1 |
比较操作 | |
#define | CV_HAL_CMP_EQ 0 |
#define | CV_HAL_CMP_GT 1 |
#define | CV_HAL_CMP_GE 2 |
#define | CV_HAL_CMP_LT 3 |
#define | CV_HAL_CMP_LE 4 |
#define | CV_HAL_CMP_NE 5 |
边界处理模式 | |
#define | CV_HAL_BORDER_CONSTANT 0 |
#define | CV_HAL_BORDER_REPLICATE 1 |
#define | CV_HAL_BORDER_REFLECT 2 |
#define | CV_HAL_BORDER_WRAP 3 |
#define | CV_HAL_BORDER_REFLECT_101 4 |
#define | CV_HAL_BORDER_TRANSPARENT 5 |
#define | CV_HAL_BORDER_ISOLATED 16 |
DFT标志 | |
#define | CV_HAL_DFT_INVERSE 1 |
#define | CV_HAL_DFT_SCALE 2 |
#define | CV_HAL_DFT_ROWS 4 |
#define | CV_HAL_DFT_COMPLEX_OUTPUT 16 |
#define | CV_HAL_DFT_REAL_OUTPUT 32 |
#define | CV_HAL_DFT_TWO_STAGE 64 |
#define | CV_HAL_DFT_STAGE_COLS 128 |
#define | CV_HAL_DFT_IS_CONTINUOUS 512 |
#define | CV_HAL_DFT_IS_INPLACE 1024 |
SVD标志 | |
#define | CV_HAL_SVD_NO_UV 1 |
#define | CV_HAL_SVD_SHORT_UV 2 |
#define | CV_HAL_SVD_MODIFY_A 4 |
#define | CV_HAL_SVD_FULL_UV 8 |
Gemm标志 | |
#define | CV_HAL_GEMM_1_T 1 |
#define | CV_HAL_GEMM_2_T 2 |
#define | CV_HAL_GEMM_3_T 4 |
#define CV_16F 7 |
#include <opencv2/core/hal/interface.h>
#define CV_16FC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC1 CV_MAKETYPE(CV_16F,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC2 CV_MAKETYPE(CV_16F,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC3 CV_MAKETYPE(CV_16F,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16FC4 CV_MAKETYPE(CV_16F,4) |
#include <opencv2/core/hal/interface.h>
#define CV_16S 3 |
#define CV_16SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC1 CV_MAKETYPE(CV_16S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC2 CV_MAKETYPE(CV_16S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC3 CV_MAKETYPE(CV_16S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16SC4 CV_MAKETYPE(CV_16S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_16U 2 |
#include <opencv2/core/hal/interface.h>
#define CV_16UC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC1 CV_MAKETYPE(CV_16U,1) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC2 CV_MAKETYPE(CV_16U,2) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC3 CV_MAKETYPE(CV_16U,3) |
#include <opencv2/core/hal/interface.h>
#define CV_16UC4 CV_MAKETYPE(CV_16U,4) |
#include <opencv2/core/hal/interface.h>
#define CV_32F 5 |
#define CV_32FC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_32FC1 CV_MAKETYPE(CV_32F,1) |
#define CV_32FC2 CV_MAKETYPE(CV_32F,2) |
#include <opencv2/core/hal/interface.h>
#define CV_32FC3 CV_MAKETYPE(CV_32F,3) |
#include <opencv2/core/hal/interface.h>
#define CV_32FC4 CV_MAKETYPE(CV_32F,4) |
#include <opencv2/core/hal/interface.h>
#define CV_32S 4 |
#define CV_32SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC1 CV_MAKETYPE(CV_32S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC2 CV_MAKETYPE(CV_32S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC3 CV_MAKETYPE(CV_32S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_32SC4 CV_MAKETYPE(CV_32S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_64F 6 |
#include <opencv2/core/hal/interface.h>
#define CV_64FC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC1 CV_MAKETYPE(CV_64F,1) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC2 CV_MAKETYPE(CV_64F,2) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC3 CV_MAKETYPE(CV_64F,3) |
#include <opencv2/core/hal/interface.h>
#define CV_64FC4 CV_MAKETYPE(CV_64F,4) |
#include <opencv2/core/hal/interface.h>
#define CV_8S 1 |
#include <opencv2/core/hal/interface.h>
#define CV_8SC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC1 CV_MAKETYPE(CV_8S,1) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC2 CV_MAKETYPE(CV_8S,2) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC3 CV_MAKETYPE(CV_8S,3) |
#include <opencv2/core/hal/interface.h>
#define CV_8SC4 CV_MAKETYPE(CV_8S,4) |
#include <opencv2/core/hal/interface.h>
#define CV_8U 0 |
#define CV_8UC | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC1 CV_MAKETYPE(CV_8U,1) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC2 CV_MAKETYPE(CV_8U,2) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC3 CV_MAKETYPE(CV_8U,3) |
#include <opencv2/core/hal/interface.h>
#define CV_8UC4 CV_MAKETYPE(CV_8U,4) |
#define CV_BIG_INT | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_BIG_UINT | ( | n | ) |
#include <opencv2/core/hal/interface.h>
#define CV_CN_MAX 512 |
#include <opencv2/core/hal/interface.h>
#define CV_CN_SHIFT 3 |
#include <opencv2/core/hal/interface.h>
#define CV_DEPTH_MAX (1 << CV_CN_SHIFT) |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_CONSTANT 0 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_ISOLATED 16 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_REFLECT 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_REFLECT_101 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_REPLICATE 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_TRANSPARENT 5 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_BORDER_WRAP 3 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_EQ 0 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_GE 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_GT 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_LE 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_LT 3 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_CMP_NE 5 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_COMPLEX_OUTPUT 16 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_INVERSE 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_IS_CONTINUOUS 512 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_IS_INPLACE 1024 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_REAL_OUTPUT 32 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_ROWS 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_SCALE 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_STAGE_COLS 128 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_DFT_TWO_STAGE 64 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_ERROR_NOT_IMPLEMENTED 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_ERROR_OK 0 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_ERROR_UNKNOWN -1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_GEMM_1_T 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_GEMM_2_T 2 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_GEMM_3_T 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_FULL_UV 8 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_MODIFY_A 4 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_NO_UV 1 |
#include <opencv2/core/hal/interface.h>
#define CV_HAL_SVD_SHORT_UV 2 |
#include <opencv2/core/hal/interface.h>
#define CV_MAKE_TYPE CV_MAKETYPE |
#include <opencv2/core/hal/interface.h>
#define CV_MAKETYPE | ( | depth, | |
cn ) |
#include <opencv2/core/hal/interface.h>
#define CV_MAT_DEPTH | ( | flags | ) |
#include <opencv2/core/hal/interface.h>
#define CV_MAT_DEPTH_MASK (CV_DEPTH_MAX - 1) |
#include <opencv2/core/hal/interface.h>
#define CV_USRTYPE1 (void)"OpenCV 4.0 中已放弃 CV_USRTYPE1 支持" |
#include <opencv2/core/hal/interface.h>
typedef int64_t int64 |
#include <opencv2/core/hal/interface.h>
typedef signed char schar |
#include <opencv2/core/hal/interface.h>
typedef unsigned char uchar |
typedef uint32_t uint |
#include <opencv2/core/hal/interface.h>
typedef uint64_t uint64 |
#include <opencv2/core/hal/interface.h>
typedef unsigned short ushort |
#include <opencv2/core/hal/interface.h>
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文指针 |
src_data | 源图像数据 |
src_step | 源图像步长 |
dst_data | 目标图像数据 |
dst_step | 目标图像步长 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文指针 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文双指针 |
width | 图像宽度 |
height | 图像高度 |
depth | 图像类型 (CV_32F 或 CV_64F) |
flags | 算法选项 (CV_HAL_DFT_INVERSE 的组合,...) |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文指针 |
src | 源数据 |
dst | 目标数据 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文指针 |
src_data | 源图像数据 |
src_step | 源图像步长 |
dst_data | 目标图像数据 |
dst_step | 目标图像步长 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文指针 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文指针 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文双指针 |
len | 变换数组长度 |
count | 估计的变换次数 |
depth | 数组类型 (CV_32F 或 CV_64F) |
flags | 算法选项 (CV_HAL_DFT_INVERSE、CV_HAL_DFT_SCALE 的组合,...) |
needBuffer | 指向布尔变量的指针,如果提供了有效的指针,则应将变量值设置为 true 以指示需要额外的内存缓冲区来进行操作。 |
|
inline |
#include <core/src/hal_replacement.hpp>
context | 指向存储所有必要数据的上下文双指针 |
width | 图像宽度 |
height | 图像高度 |
depth | 图像类型 (CV_32F 或 CV_64F) |
src_channels | 输入图像中的通道数 |
dst_channels | 输出图像中的通道数 |
flags | 算法选项 (CV_HAL_DFT_INVERSE 的组合,...) |
nonzero_rows | 图像中非零行的数量,可用于优化 |
|
inline |
#include <core/src/hal_replacement.hpp>
计算两个向量(表示为二维图像)的点积
a_data | 指向第一个和第二个图像数据的指针 |
a_step | 第一个和第二个图像的步长 |
b_data | 指向第一个和第二个图像数据的指针 |
b_step | 第一个和第二个图像的步长 |
width | 两个图像的宽度 |
height | 两个图像的高度 |
type | 两个图像的数据类型,例如 CV_8U 或 CV_32F |
dot_val | 指向结果点积值的指针 |
|
inline |
#include <core/src/hal_replacement.hpp>
hal_flip
src_type | 源图像和目标图像类型 |
src_data | 源图像数据 |
src_step | 源图像步长 |
src_width | 源图像和目标图像宽度 |
src_height | 源图像和目标图像高度 |
dst_data | 目标图像数据 |
dst_step | 目标图像步长 |
flip_mode | 0 绕 x 轴翻转,正数绕 y 轴翻转,负数绕 x 和 y 轴翻转 |
|
inline |
#include <core/src/hal_replacement.hpp>
独立地为每个通道计算数组元素的均值和标准差
src_data | 源图像 |
src_step | 源图像 |
width | 源图像尺寸 |
height | 源图像尺寸 |
src_type | 源图像类型 |
mean_val | 每个通道均值的数组。如果不需要均值,可以为 nullptr。 |
stddev_val | 每个通道标准差值的数组。如果不需要标准差,可以为 nullptr。 |
mask | 指定的数组区域。 |
mask_step | 掩码数组步长。 |
|
inline |
#include <core/src/hal_replacement.hpp>
查找数组中的全局最小值和最大值。
src_data | 源图像 |
src_step | 源图像 |
width | 源图像尺寸 |
height | 源图像尺寸 |
depth | 源图像深度 |
minVal | 指向返回的全局最小值和最大值的数组指针。 |
maxVal | 指向返回的全局最小值和最大值的数组指针。 |
minIdx | 指向返回的最小值和最大值位置的指针。 |
maxIdx | 指向返回的最小值和最大值位置的指针。 |
mask | 指定的数组区域。 |
|
inline |
#include <core/src/hal_replacement.hpp>
rotate90
src_type | 源图像和目标图像类型 |
src_data | 源图像数据 |
src_step | 源图像步长 |
src_width | 源图像宽度,如果角度值为[180],它也是目标图像宽度;如果角度值为[90, 270],它也是目标图像高度。 |
src_height | 源图像和目标图像高度(对于角度[90, 270],它是目标图像宽度)。如果角度值为[180],它也是目标图像高度;如果角度值为[90, 270],它也是目标图像宽度。 |
dst_data | 目标图像数据 |
dst_step | 目标图像步长 |
角度 | 顺时针旋转角度(度),取值范围为[90, 180, 270]。 |
|
inline |
#include <core/src/hal_replacement.hpp>
转置2d。
src_data, src_step | 源图像 |
dst_data, dst_step | 目标图像 |
src_width, src_height | 源图像尺寸 |
element_size | 元素大小(字节) |