![]() |
OpenCV 4.13.0
开源计算机视觉库 (Open Source Computer Vision)
|
#include <limits>#include <cstring>#include <algorithm>#include "opencv2/core/utility.hpp"#include "opencv2/core/saturate.hpp"类 | |
| 结构体 | cv::v_reg< _Tp, n > |
命名空间 | |
| 命名空间 | cv |
宏 | |
| #define | OPENCV_HAL_IMPL_ARITHM_OP(func, bin_op, cast_op, _Tp2) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_INIT_VAL(_Tpvec, _Tp, prefix, suffix) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_INIT_ZERO(_Tpvec, prefix, suffix) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_PACK(_Tp, _Tpn, pack_suffix, cast) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_PACK_STORE(_Tp, _Tpn, pack_suffix, cast) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_REINTERPRET(_Tp, suffix) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_RSHIFTR(_Tp) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_RSHR_PACK(_Tp, _Tpn, pack_suffix, cast) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_RSHR_PACK_STORE(_Tp, _Tpn, pack_suffix, cast) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_SHIFTL(_Tp) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_C_SHIFTR(_Tp) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_CMP_OP(cmp_op, func) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_MATH_FUNC(func, cfunc, _Tp2) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_MINMAX_FUNC(func, cfunc) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_REDUCE_MINMAX_FUNC(func, cfunc) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_ROTATE_SHIFT_OP(suffix, opA, opB) |
| 辅助宏。 | |
| #define | OPENCV_HAL_IMPL_SHIFT_OP(shift_op, func) |
| 辅助宏。 | |
| #define | OPENCV_HAL_MATH_HAVE_EXP 1 |
类型定义 (Typedefs) | |
| typedef v_reg< float, 16 > | cv::v_float32x16 |
| 16个 32位浮点值 (单精度) | |
| typedef v_reg< float, 4 > | cv::v_float32x4 |
| 4个 32位浮点值 (单精度) | |
| typedef v_reg< float, 8 > | cv::v_float32x8 |
| 8个 32位浮点值 (单精度) | |
| typedef v_reg< double, 2 > | cv::v_float64x2 |
| 2个 64位浮点值 (双精度) | |
| typedef v_reg< double, 4 > | cv::v_float64x4 |
| 4个 64位浮点值 (双精度) | |
| typedef v_reg< double, 8 > | cv::v_float64x8 |
| 8个 64位浮点值 (双精度) | |
| typedef v_reg< short, 16 > | cv::v_int16x16 |
| 16个 16位有符号整数值。 | |
| typedef v_reg< short, 32 > | cv::v_int16x32 |
| 32个 16位有符号整数值。 | |
| typedef v_reg< short, 8 > | cv::v_int16x8 |
| 8个 16位有符号整数值。 | |
| typedef v_reg< int, 16 > | cv::v_int32x16 |
| 16个 32位有符号整数值。 | |
| typedef v_reg< int, 4 > | cv::v_int32x4 |
| 4个 32位有符号整数值。 | |
| typedef v_reg< int, 8 > | cv::v_int32x8 |
| 8个 32位有符号整数值。 | |
| typedef v_reg< int64, 2 > | cv::v_int64x2 |
| 2个 64位有符号整数值。 | |
| typedef v_reg< int64, 4 > | cv::v_int64x4 |
| 4个 64位有符号整数值。 | |
| typedef v_reg< int64, 8 > | cv::v_int64x8 |
| 8个 64位有符号整数值。 | |
| typedef v_reg< schar, 16 > | cv::v_int8x16 |
| 16个 8位有符号整数值。 | |
| typedef v_reg< schar, 32 > | cv::v_int8x32 |
| 32个 8位有符号整数值。 | |
| typedef v_reg< schar, 64 > | cv::v_int8x64 |
| 64个 8位有符号整数值。 | |
| typedef v_reg< ushort, 16 > | cv::v_uint16x16 |
| 16个 16位无符号整数值。 | |
| typedef v_reg< ushort, 32 > | cv::v_uint16x32 |
| 32个 16位无符号整数值。 | |
| typedef v_reg< ushort, 8 > | cv::v_uint16x8 |
| 8个 16位无符号整数值。 | |
| typedef v_reg< unsigned, 16 > | cv::v_uint32x16 |
| 16个 32位无符号整数值。 | |
| typedef v_reg< unsigned, 4 > | cv::v_uint32x4 |
| 4个 32位无符号整数值。 | |
| typedef v_reg< unsigned, 8 > | cv::v_uint32x8 |
| 8个 32位无符号整数值。 | |
| typedef v_reg< uint64, 2 > | cv::v_uint64x2 |
| 2个 64位无符号整数值。 | |
| typedef v_reg< uint64, 4 > | cv::v_uint64x4 |
| 4个 64位无符号整数值。 | |
| typedef v_reg< uint64, 8 > | cv::v_uint64x8 |
| 8个 64位无符号整数值。 | |
| typedef v_reg< uchar, 16 > | cv::v_uint8x16 |
| 16个 8位无符号整数值。 | |
| typedef v_reg< uchar, 32 > | cv::v_uint8x32 |
| 32个 8位无符号整数值。 | |
| typedef v_reg< uchar, 64 > | cv::v_uint8x64 |
| 64个 8位无符号整数值。 | |
枚举 | |
| enum | { cv::simd128_width = 16 , cv::simd256_width = 32 , cv::simd512_width = 64 , cv::simdmax_width = simd512_width } |
函数 | |
| void | cv::v256_cleanup () |
| template<typename _Tp > | |
| v_reg< _Tp, simd256_width/sizeof(_Tp)> | cv::v256_load (const _Tp *ptr) |
| 从内存加载 256 位长度的寄存器内容。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd256_width/sizeof(_Tp)> | cv::v256_load_aligned (const _Tp *ptr) |
| 从内存加载寄存器内容 (对齐加载) | |
| template<typename _Tp > | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, simd256_width/sizeof(typename V_TypeTraits< _Tp >::w_type)> | cv::v256_load_expand (const _Tp *ptr) |
| 从内存加载寄存器内容并进行双倍扩展 (double expand)。 | |
| v_reg< float, simd256_width/sizeof(float)> | cv::v256_load_expand (const hfloat *ptr) |
| template<typename _Tp > | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, simd256_width/sizeof(typename V_TypeTraits< _Tp >::q_type)> | cv::v256_load_expand_q (const _Tp *ptr) |
| 从内存加载寄存器内容并进行四倍扩展 (quad expand)。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd256_width/sizeof(_Tp)> | cv::v256_load_halves (const _Tp *loptr, const _Tp *hiptr) |
| 从两个内存块加载寄存器内容。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd256_width/sizeof(_Tp)> | cv::v256_load_low (const _Tp *ptr) |
| 加载 128 位数据到低位部分 (高位部分未定义)。 | |
| void | cv::v512_cleanup () |
| template<typename _Tp > | |
| v_reg< _Tp, simd512_width/sizeof(_Tp)> | cv::v512_load (const _Tp *ptr) |
| 从内存加载 512 位长度的寄存器内容。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd512_width/sizeof(_Tp)> | cv::v512_load_aligned (const _Tp *ptr) |
| 从内存加载寄存器内容 (对齐加载) | |
| template<typename _Tp > | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, simd512_width/sizeof(typename V_TypeTraits< _Tp >::w_type)> | cv::v512_load_expand (const _Tp *ptr) |
| 从内存加载寄存器内容并进行双倍扩展 (double expand)。 | |
| v_reg< float, simd512_width/sizeof(float)> | cv::v512_load_expand (const hfloat *ptr) |
| template<typename _Tp > | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, simd512_width/sizeof(typename V_TypeTraits< _Tp >::q_type)> | cv::v512_load_expand_q (const _Tp *ptr) |
| 从内存加载寄存器内容并进行四倍扩展 (quad expand)。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd512_width/sizeof(_Tp)> | cv::v512_load_halves (const _Tp *loptr, const _Tp *hiptr) |
| 从两个内存块加载寄存器内容。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd512_width/sizeof(_Tp)> | cv::v512_load_low (const _Tp *ptr) |
| 加载 256 位数据到低位部分 (高位部分未定义)。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::abs_type, n > | cv::v_abs (const v_reg< _Tp, n > &a) |
| 元素的绝对值。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::abs_type, n > | cv::v_absdiff (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 绝对差值。 | |
| template<int n> | |
| v_reg< double, n > | cv::v_absdiff (const v_reg< double, n > &a, const v_reg< double, n > &b) |
| template<int n> | |
| v_reg< float, n > | cv::v_absdiff (const v_reg< float, n > &a, const v_reg< float, n > &b) |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_absdiffs (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 饱和绝对差值。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_add (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相加。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_add_wrap (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相加 (不进行饱和处理)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_and (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 按位与 (Bitwise AND)。 | |
| template<int i, typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_broadcast_element (const v_reg< _Tp, n > &a) |
| 广播向量的第 i 个元素。 | |
| template<int n> | |
| v_reg< int, n *2 > | cv::v_ceil (const v_reg< double, n > &a) |
| template<int n> | |
| v_reg< int, n > | cv::v_ceil (const v_reg< float, n > &a) |
| 向上取整。 | |
| template<typename _Tp , int n> | |
| bool | cv::v_check_all (const v_reg< _Tp, n > &a) |
| 检查是否所有打包值都小于零。 | |
| template<typename _Tp , int n> | |
| bool | cv::v_check_any (const v_reg< _Tp, n > &a) |
| 检查是否有任何打包值小于零。 | |
| void | cv::v_cleanup () |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_combine_high (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 从两个向量的后半部分元素组合成新向量。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_combine_low (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 从两个向量的前半部分元素组合成新向量。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_cos (const v_reg< _Tp, n > &a) |
| 元素的余弦值 \( cos(x) \)。 | |
| template<int n> | |
| v_reg< float, n *2 > | cv::v_cvt_f32 (const v_reg< double, n > &a) |
| 将低半部分转换为 float。 | |
| template<int n> | |
| v_reg< float, n *2 > | cv::v_cvt_f32 (const v_reg< double, n > &a, const v_reg< double, n > &b) |
| 转换为 float。 | |
| template<int n> | |
| v_reg< float, n > | cv::v_cvt_f32 (const v_reg< int, n > &a) |
| 转换为 float。 | |
| template<int n> | |
| v_reg< double,(n/2)> | cv::v_cvt_f64 (const v_reg< float, n > &a) |
| 将低半部分转换为 double。 | |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_cvt_f64 (const v_reg< int, n > &a) |
| 将低半部分转换为 double。 | |
| template<int n> | |
| v_reg< double, n > | cv::v_cvt_f64 (const int64, n > &a) |
| 转换为 double。 | |
| template<int n> | |
| v_reg< double,(n/2)> | cv::v_cvt_f64_high (const v_reg< float, n > &a) |
| 将向量的高半部分转换为 double。 | |
| template<int n> | |
| v_reg< double,(n/2)> | cv::v_cvt_f64_high (const v_reg< int, n > &a) |
| 将向量的高半部分转换为 double。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_div (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相除。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > | cv::v_dotprod (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 元素的点积。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > | cv::v_dotprod (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > &c) |
| 元素的点积。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, n/4 > | cv::v_dotprod_expand (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 点积并扩展。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, n/4 > | cv::v_dotprod_expand (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< typename V_TypeTraits< _Tp >::q_type, n/4 > &c) |
| 元素的点积。 | |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_dotprod_expand (const v_reg< int, n > &a, const v_reg< int, n > &b) |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_dotprod_expand (const v_reg< int, n > &a, const v_reg< int, n > &b, const v_reg< double, n/2 > &c) |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, n/4 > | cv::v_dotprod_expand_fast (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 快速点积并扩展。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, n/4 > | cv::v_dotprod_expand_fast (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< typename V_TypeTraits< _Tp >::q_type, n/4 > &c) |
| 快速点积。 | |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_dotprod_expand_fast (const v_reg< int, n > &a, const v_reg< int, n > &b) |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_dotprod_expand_fast (const v_reg< int, n > &a, const v_reg< int, n > &b, const v_reg< double, n/2 > &c) |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > | cv::v_dotprod_fast (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 快速点积。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > | cv::v_dotprod_fast (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > &c) |
| 快速点积。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_eq (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 等于比较。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_erf (const v_reg< _Tp, n > &a) |
| 误差 (Error) 函数。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_exp (const v_reg< _Tp, n > &a) |
| 元素的指数值 \( e^x \)。 | |
| template<typename _Tp , int n> | |
| void | cv::v_expand (const v_reg< _Tp, n > &a, v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > &b0, v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > &b1) |
| 将数值扩展到更宽的打包类型。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > | cv::v_expand_high (const v_reg< _Tp, n > &a) |
| 将高位数值扩展到更宽的打包类型。 | |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > | cv::v_expand_low (const v_reg< _Tp, n > &a) |
| 将低位数值扩展到更宽的打包类型。 | |
| template<int s, typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_extract (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 向量提取。 | |
| template<int s, typename _Tp , int n> | |
| _Tp | cv::v_extract_n (const v_reg< _Tp, n > &v) |
| 向量提取。 | |
| template<int n> | |
| v_reg< int, n *2 > | cv::v_floor (const v_reg< double, n > &a) |
| template<int n> | |
| v_reg< int, n > | cv::v_floor (const v_reg< float, n > &a) |
| 向下取整。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_fma (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< _Tp, n > &c) |
| 乘加运算 (FMA)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_ge (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 大于或等于比较。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_gt (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 大于比较。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_interleave_pairs (const v_reg< _Tp, n > &vec) |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_interleave_quads (const v_reg< _Tp, n > &vec) |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_invsqrt (const v_reg< _Tp, n > &a) |
| 平方根倒数。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_le (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 小于或等于比较。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_load (const _Tp *ptr) |
| 从内存加载寄存器内容。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_load_aligned (const _Tp *ptr) |
| 从内存加载寄存器内容 (对齐加载) | |
| template<typename _Tp , int n> | |
| void | cv::v_load_deinterleave (const _Tp *ptr, v_reg< _Tp, n > &a, v_reg< _Tp, n > &b) |
| 加载并去交错 (2 通道) | |
| template<typename _Tp , int n> | |
| void | cv::v_load_deinterleave (const _Tp *ptr, v_reg< _Tp, n > &a, v_reg< _Tp, n > &b, v_reg< _Tp, n > &c) |
| 加载并去交错 (3 通道) | |
| template<typename _Tp , int n> | |
| void | cv::v_load_deinterleave (const _Tp *ptr, v_reg< _Tp, n > &a, v_reg< _Tp, n > &b, v_reg< _Tp, n > &c, v_reg< _Tp, n > &d) |
| 加载并去交错 (4 通道) | |
| template<typename _Tp > | |
| v_reg< typename V_TypeTraits< _Tp >::w_type, simd128_width/sizeof(typename V_TypeTraits< _Tp >::w_type)> | cv::v_load_expand (const _Tp *ptr) |
| 从内存加载寄存器内容并进行双倍扩展 (double expand)。 | |
| v_reg< float, simd128_width/sizeof(float)> | cv::v_load_expand (const hfloat *ptr) |
| template<typename _Tp > | |
| v_reg< typename V_TypeTraits< _Tp >::q_type, simd128_width/sizeof(typename V_TypeTraits< _Tp >::q_type)> | cv::v_load_expand_q (const _Tp *ptr) |
| 从内存加载寄存器内容并进行四倍扩展 (quad expand)。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_load_halves (const _Tp *loptr, const _Tp *hiptr) |
| 从两个内存块加载寄存器内容。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_load_low (const _Tp *ptr) |
| 加载 64 位数据到低位部分 (高位部分未定义)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_log (const v_reg< _Tp, n > &a) |
| 元素的自然对数 \( \log(x) \)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_lt (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 小于比较。 | |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_lut (const _Tp *tab, const int *idx) |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_lut (const double *tab, const v_reg< int, n > &idx) |
| template<int n> | |
| v_reg< float, n > | cv::v_lut (const float *tab, const v_reg< int, n > &idx) |
| template<int n> | |
| v_reg< int, n > | cv::v_lut (const int *tab, const v_reg< int, n > &idx) |
| template<int n> | |
| v_reg< unsigned, n > | cv::v_lut (const unsigned *tab, const v_reg< int, n > &idx) |
| template<int n> | |
| void | cv::v_lut_deinterleave (const double *tab, const v_reg< int, n *2 > &idx, v_reg< double, n > &x, v_reg< double, n > &y) |
| template<int n> | |
| void | cv::v_lut_deinterleave (const float *tab, const v_reg< int, n > &idx, v_reg< float, n > &x, v_reg< float, n > &y) |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_lut_pairs (const _Tp *tab, const int *idx) |
| template<typename _Tp > | |
| v_reg< _Tp, simd128_width/sizeof(_Tp)> | cv::v_lut_quads (const _Tp *tab, const int *idx) |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_magnitude (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 模长 (Magnitude)。 | |
| template<int n> | |
| v_reg< float, n > | cv::v_matmul (const v_reg< float, n > &v, const v_reg< float, n > &a, const v_reg< float, n > &b, const v_reg< float, n > &c, const v_reg< float, n > &d) |
| 矩阵乘法。 | |
| template<int n> | |
| v_reg< float, n > | cv::v_matmuladd (const v_reg< float, n > &v, const v_reg< float, n > &a, const v_reg< float, n > &b, const v_reg< float, n > &c, const v_reg< float, n > &d) |
| 矩阵乘加运算。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_max (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 为每对元素选择最大值。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_min (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 为每对元素选择最小值。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_mul (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相乘。 | |
| template<typename _Tp , int n> | |
| void | cv::v_mul_expand (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > &c, v_reg< typename V_TypeTraits< _Tp >::w_type, n/2 > &d) |
| 相乘并扩展。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_mul_hi (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 相乘并提取高位部分。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_mul_wrap (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相乘 (不进行饱和处理)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_muladd (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< _Tp, n > &c) |
| v_fma 的同义词。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_ne (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 不等于比较。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_not (const v_reg< _Tp, n > &a) |
| 按位非 (Bitwise NOT)。 | |
| template<int n> | |
| v_reg< double, n > | cv::v_not_nan (const v_reg< double, n > &a) |
| template<int n> | |
| v_reg< float, n > | cv::v_not_nan (const v_reg< float, n > &a) |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_or (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 按位或 (Bitwise OR)。 | |
| template<int n> | |
| void | cv::v_pack_store (hfloat *ptr, const v_reg< float, n > &v) |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_pack_triplets (const v_reg< _Tp, n > &vec) |
| template<typename _Tp , int n> | |
| v_reg< typename V_TypeTraits< _Tp >::abs_type, n > | cv::v_popcount (const v_reg< _Tp, n > &a) |
| 统计向量通道中 1 位的数量,并以相应的无符号类型返回结果。 | |
| template<typename _Tp , int n> | |
| void | cv::v_recombine (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, v_reg< _Tp, n > &low, v_reg< _Tp, n > &high) |
| 从另外两个向量的低位和高位部分组合出两个新向量。 | |
| template<typename _Tp , int n> | |
| _Tp | cv::v_reduce_max (const v_reg< _Tp, n > &a) |
| 寻找一个最大值。 | |
| template<typename _Tp , int n> | |
| _Tp | cv::v_reduce_min (const v_reg< _Tp, n > &a) |
| 寻找一个最小值。 | |
| template<typename _Tp , int n> | |
| V_TypeTraits< typenameV_TypeTraits< _Tp >::abs_type >::sum_type | cv::v_reduce_sad (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 计算数值的绝对差之和 (SAD)。 | |
| template<typename _Tp , int n> | |
| V_TypeTraits< _Tp >::sum_type | cv::v_reduce_sum (const v_reg< _Tp, n > &a) |
| 对打包值求和。 | |
| template<int n> | |
| v_reg< float, n > | cv::v_reduce_sum4 (const v_reg< float, n > &a, const v_reg< float, n > &b, const v_reg< float, n > &c, const v_reg< float, n > &d) |
| 对每个输入向量的所有元素求和,并返回由这些和组成的向量。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_reverse (const v_reg< _Tp, n > &a) |
| 向量元素次序反转。 | |
| template<int imm, typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_rotate_left (const v_reg< _Tp, n > &a) |
| 向量内元素向左平移。 | |
| template<int imm, typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_rotate_left (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| template<int imm, typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_rotate_right (const v_reg< _Tp, n > &a) |
| 向量内元素向右平移。 | |
| template<int imm, typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_rotate_right (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| template<int n> | |
| v_reg< int, n *2 > | cv::v_round (const v_reg< double, n > &a) |
| template<int n> | |
| v_reg< int, n *2 > | cv::v_round (const v_reg< double, n > &a, const v_reg< double, n > &b) |
| template<int n> | |
| v_reg< int, n > | cv::v_round (const v_reg< float, n > &a) |
| 元素舍入。 | |
| template<typename _Tp , int n> | |
| int | cv::v_scan_forward (const v_reg< _Tp, n > &a) |
| 获取第一个负值通道的索引。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_select (const v_reg< _Tp, n > &mask, const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 逐元素选择 (混合操作/blend operation) | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_shl (const v_reg< _Tp, n > &a, int imm) |
| 按位左移。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_shr (const v_reg< _Tp, n > &a, int imm) |
| 按位右移。 | |
| template<typename _Tp , int n> | |
| int | cv::v_signmask (const v_reg< _Tp, n > &a) |
| 获取负值掩码。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_sin (const v_reg< _Tp, n > &a) |
| 元素的正弦值 \( sin(x) \)。 | |
| template<typename _Tp , int n> | |
| void | cv::v_sincos (const v_reg< _Tp, n > &x, v_reg< _Tp, n > &s, v_reg< _Tp, n > &c) |
| 同时计算元素的正弦 \( sin(x) \) 和余弦 \( cos(x) \)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_sqr_magnitude (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 模长的平方。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_sqrt (const v_reg< _Tp, n > &a) |
| 元素的平方根。 | |
| template<typename _Tp , int n> | |
| void | cv::v_store (_Tp *ptr, const v_reg< _Tp, n > &a) |
| 将数据存储到内存。 | |
| template<typename _Tp , int n> | |
| void | cv::v_store (_Tp *ptr, const v_reg< _Tp, n > &a, hal::StoreMode) |
| template<typename _Tp , int n> | |
| void | cv::v_store_aligned (_Tp *ptr, const v_reg< _Tp, n > &a) |
| 将数据存储到内存 (对齐存储) | |
| template<typename _Tp , int n> | |
| void | cv::v_store_aligned (_Tp *ptr, const v_reg< _Tp, n > &a, hal::StoreMode) |
| template<typename _Tp , int n> | |
| void | cv::v_store_aligned_nocache (_Tp *ptr, const v_reg< _Tp, n > &a) |
| template<typename _Tp , int n> | |
| void | cv::v_store_high (_Tp *ptr, const v_reg< _Tp, n > &a) |
| 将数据存储到内存 (高半部分) | |
| template<typename _Tp , int n> | |
| void | cv::v_store_interleave (_Tp *ptr, const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< _Tp, n > &c, const v_reg< _Tp, n > &d, hal::StoreMode=hal::STORE_UNALIGNED) |
| 交错并存储 (4 通道) | |
| template<typename _Tp , int n> | |
| void | cv::v_store_interleave (_Tp *ptr, const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, const v_reg< _Tp, n > &c, hal::StoreMode=hal::STORE_UNALIGNED) |
| 交错并存储 (3 通道) | |
| template<typename _Tp , int n> | |
| void | cv::v_store_interleave (_Tp *ptr, const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b, hal::StoreMode=hal::STORE_UNALIGNED) |
| 交错并存储 (2 通道) | |
| template<typename _Tp , int n> | |
| void | cv::v_store_low (_Tp *ptr, const v_reg< _Tp, n > &a) |
| 将数据存储到内存 (低半部分) | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_sub (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相减。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_sub_wrap (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 数值相减 (不进行饱和处理)。 | |
| template<typename _Tp , int n> | |
| void | cv::v_transpose4x4 (v_reg< _Tp, n > &a0, const v_reg< _Tp, n > &a1, const v_reg< _Tp, n > &a2, const v_reg< _Tp, n > &a3, v_reg< _Tp, n > &b0, v_reg< _Tp, n > &b1, v_reg< _Tp, n > &b2, v_reg< _Tp, n > &b3) |
| 4x4 矩阵转置。 | |
| template<int n> | |
| v_reg< int, n *2 > | cv::v_trunc (const v_reg< double, n > &a) |
| template<int n> | |
| v_reg< int, n > | cv::v_trunc (const v_reg< float, n > &a) |
| 元素截断 (取整)。 | |
| template<typename _Tp , int n> | |
| v_reg< _Tp, n > | cv::v_xor (const v_reg< _Tp, n > &a, const v_reg< _Tp, n > &b) |
| 按位异或 (Bitwise XOR)。 | |
| template<typename _Tp , int n> | |
| void | cv::v_zip (const v_reg< _Tp, n > &a0, const v_reg< _Tp, n > &a1, v_reg< _Tp, n > &b0, v_reg< _Tp, n > &b1) |
| 交织两个向量。 | |
以零初始化 | |
创建元素全为零的新向量 | |
| v_float32x8 | cv::v256_setzero_f32 () |
| v_float64x4 | cv::v256_setzero_f64 () |
| v_int16x16 | cv::v256_setzero_s16 () |
| v_int32x8 | cv::v256_setzero_s32 () |
| v_int64x4 | cv::v256_setzero_s64 () |
| v_int8x32 | cv::v256_setzero_s8 () |
| v_uint16x16 | cv::v256_setzero_u16 () |
| v_uint32x8 | cv::v256_setzero_u32 () |
| v_uint64x4 | cv::v256_setzero_u64 () |
| v_uint8x32 | cv::v256_setzero_u8 () |
| v_float32x16 | cv::v512_setzero_f32 () |
| v_float64x8 | cv::v512_setzero_f64 () |
| v_int16x32 | cv::v512_setzero_s16 () |
| v_int32x16 | cv::v512_setzero_s32 () |
| v_int64x8 | cv::v512_setzero_s64 () |
| v_int8x64 | cv::v512_setzero_s8 () |
| v_uint16x32 | cv::v512_setzero_u16 () |
| v_uint32x16 | cv::v512_setzero_u32 () |
| v_uint64x8 | cv::v512_setzero_u64 () |
| v_uint8x64 | cv::v512_setzero_u8 () |
| template<> | |
| v_uint8x16 | cv::v_setzero_ () |
| template<> | |
| v_int8x16 | cv::v_setzero_ () |
| template<> | |
| v_uint16x8 | cv::v_setzero_ () |
| template<> | |
| v_int16x8 | cv::v_setzero_ () |
| template<> | |
| v_uint32x4 | cv::v_setzero_ () |
| template<> | |
| v_int32x4 | cv::v_setzero_ () |
| template<> | |
| v_float32x4 | cv::v_setzero_ () |
| template<> | |
| v_float64x2 | cv::v_setzero_ () |
| template<> | |
| v_uint64x2 | cv::v_setzero_ () |
| template<> | |
| v_int64x2 | cv::v_setzero_ () |
| template<> | |
| v_uint8x32 | cv::v_setzero_ () |
| template<> | |
| v_int8x32 | cv::v_setzero_ () |
| template<> | |
| v_uint16x16 | cv::v_setzero_ () |
| template<> | |
| v_int16x16 | cv::v_setzero_ () |
| template<> | |
| v_uint32x8 | cv::v_setzero_ () |
| template<> | |
| v_int32x8 | cv::v_setzero_ () |
| template<> | |
| v_float32x8 | cv::v_setzero_ () |
| template<> | |
| v_float64x4 | cv::v_setzero_ () |
| template<> | |
| v_uint64x4 | cv::v_setzero_ () |
| template<> | |
| v_int64x4 | cv::v_setzero_ () |
| template<> | |
| v_uint8x64 | cv::v_setzero_ () |
| template<> | |
| v_int8x64 | cv::v_setzero_ () |
| template<> | |
| v_uint16x32 | cv::v_setzero_ () |
| template<> | |
| v_int16x32 | cv::v_setzero_ () |
| template<> | |
| v_uint32x16 | cv::v_setzero_ () |
| template<> | |
| v_int32x16 | cv::v_setzero_ () |
| template<> | |
| v_float32x16 | cv::v_setzero_ () |
| template<> | |
| v_float64x8 | cv::v_setzero_ () |
| template<> | |
| v_uint64x8 | cv::v_setzero_ () |
| template<> | |
| v_int64x8 | cv::v_setzero_ () |
| v_float32x4 | cv::v_setzero_f32 () |
| v_float64x2 | cv::v_setzero_f64 () |
| v_int16x8 | cv::v_setzero_s16 () |
| v_int32x4 | cv::v_setzero_s32 () |
| v_int64x2 | cv::v_setzero_s64 () |
| v_int8x16 | cv::v_setzero_s8 () |
| v_uint16x8 | cv::v_setzero_u16 () |
| v_uint32x4 | cv::v_setzero_u32 () |
| v_uint64x2 | cv::v_setzero_u64 () |
| v_uint8x16 | cv::v_setzero_u8 () |
以特定值初始化 | |
创建元素被设为特定值的新向量 | |
| v_float32x8 | cv::v256_setall_f32 (float val) |
| v_float64x4 | cv::v256_setall_f64 (double val) |
| v_int16x16 | cv::v256_setall_s16 (short val) |
| v_int32x8 | cv::v256_setall_s32 (int val) |
| v_int64x4 | cv::v256_setall_s64 (int64 val) |
| v_int8x32 | cv::v256_setall_s8 (schar val) |
| v_uint16x16 | cv::v256_setall_u16 (ushort val) |
| v_uint32x8 | cv::v256_setall_u32 (unsigned val) |
| v_uint64x4 | cv::v256_setall_u64 (uint64 val) |
| v_uint8x32 | cv::v256_setall_u8 (uchar val) |
| v_float32x16 | cv::v512_setall_f32 (float val) |
| v_float64x8 | cv::v512_setall_f64 (double val) |
| v_int16x32 | cv::v512_setall_s16 (short val) |
| v_int32x16 | cv::v512_setall_s32 (int val) |
| v_int64x8 | cv::v512_setall_s64 (int64 val) |
| v_int8x64 | cv::v512_setall_s8 (schar val) |
| v_uint16x32 | cv::v512_setall_u16 (ushort val) |
| v_uint32x16 | cv::v512_setall_u32 (unsigned val) |
| v_uint64x8 | cv::v512_setall_u64 (uint64 val) |
| v_uint8x64 | cv::v512_setall_u8 (uchar val) |
| template<> | |
| v_float64x2 | cv::v_setall_ (double val) |
| template<> | |
| v_float64x4 | cv::v_setall_ (double val) |
| template<> | |
| v_float64x8 | cv::v_setall_ (double val) |
| template<> | |
| v_float32x4 | cv::v_setall_ (float val) |
| template<> | |
| v_float32x8 | cv::v_setall_ (float val) |
| template<> | |
| v_float32x16 | cv::v_setall_ (float val) |
| template<> | |
| v_int32x4 | cv::v_setall_ (int val) |
| template<> | |
| v_int32x8 | cv::v_setall_ (int val) |
| template<> | |
| v_int32x16 | cv::v_setall_ (int val) |
| template<> | |
| v_int64x2 | cv::v_setall_ (int64 val) |
| template<> | |
| v_int64x4 | cv::v_setall_ (int64 val) |
| template<> | |
| v_int64x8 | cv::v_setall_ (int64 val) |
| template<> | |
| v_int8x16 | cv::v_setall_ (schar val) |
| template<> | |
| v_int8x32 | cv::v_setall_ (schar val) |
| template<> | |
| v_int8x64 | cv::v_setall_ (schar val) |
| template<> | |
| v_int16x8 | cv::v_setall_ (short val) |
| template<> | |
| v_int16x16 | cv::v_setall_ (short val) |
| template<> | |
| v_int16x32 | cv::v_setall_ (short val) |
| template<> | |
| v_uint8x16 | cv::v_setall_ (uchar val) |
| template<> | |
| v_uint8x32 | cv::v_setall_ (uchar val) |
| template<> | |
| v_uint8x64 | cv::v_setall_ (uchar val) |
| template<> | |
| v_uint64x2 | cv::v_setall_ (uint64 val) |
| template<> | |
| v_uint64x4 | cv::v_setall_ (uint64 val) |
| template<> | |
| v_uint64x8 | cv::v_setall_ (uint64 val) |
| template<> | |
| v_uint32x4 | cv::v_setall_ (unsigned val) |
| template<> | |
| v_uint32x8 | cv::v_setall_ (unsigned val) |
| template<> | |
| v_uint32x16 | cv::v_setall_ (unsigned val) |
| template<> | |
| v_uint16x8 | cv::v_setall_ (ushort val) |
| template<> | |
| v_uint16x16 | cv::v_setall_ (ushort val) |
| template<> | |
| v_uint16x32 | cv::v_setall_ (ushort val) |
| v_float32x4 | cv::v_setall_f32 (float val) |
| v_float64x2 | cv::v_setall_f64 (double val) |
| v_int16x8 | cv::v_setall_s16 (short val) |
| v_int32x4 | cv::v_setall_s32 (int val) |
| v_int64x2 | cv::v_setall_s64 (int64 val) |
| v_int8x16 | cv::v_setall_s8 (schar val) |
| v_uint16x8 | cv::v_setall_u16 (ushort val) |
| v_uint32x4 | cv::v_setall_u32 (unsigned val) |
| v_uint64x2 | cv::v_setall_u64 (uint64 val) |
| v_uint8x16 | cv::v_setall_u8 (uchar val) |
类型重解释 | |
在不修改底层数据的情况下,将向量转换为不同的类型。 | |
| template<typename _Tp0 , int n0> | |
| v_reg< float, n0 *sizeof(_Tp0)/sizeof(float)> | cv::v_reinterpret_as_f32 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< double, n0 *sizeof(_Tp0)/sizeof(double)> | cv::v_reinterpret_as_f64 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< short, n0 *sizeof(_Tp0)/sizeof(short)> | cv::v_reinterpret_as_s16 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< int, n0 *sizeof(_Tp0)/sizeof(int)> | cv::v_reinterpret_as_s32 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< int64, n0 *sizeof(_Tp0)/sizeof(int64)> | cv::v_reinterpret_as_s64 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< schar, n0 *sizeof(_Tp0)/sizeof(schar)> | cv::v_reinterpret_as_s8 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< ushort, n0 *sizeof(_Tp0)/sizeof(ushort)> | cv::v_reinterpret_as_u16 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< unsigned, n0 *sizeof(_Tp0)/sizeof(unsigned)> | cv::v_reinterpret_as_u32 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< uint64, n0 *sizeof(_Tp0)/sizeof(uint64)> | cv::v_reinterpret_as_u64 (const v_reg< _Tp0, n0 > &a) |
| template<typename _Tp0 , int n0> | |
| v_reg< uchar, n0 *sizeof(_Tp0)/sizeof(uchar)> | cv::v_reinterpret_as_u8 (const v_reg< _Tp0, n0 > &a) |
左移 | |
左移位 | |
| template<int shift, int n> | |
| v_reg< int, n > | cv::v_shl (const v_reg< int, n > &a) |
| template<int shift, int n> | |
| v_reg< int64, n > | cv::v_shl (const v_reg< int64, n > &a) |
| template<int shift, int n> | |
| v_reg< short, n > | cv::v_shl (const v_reg< short, n > &a) |
| template<int shift, int n> | |
| v_reg< uint64, n > | cv::v_shl (const v_reg< uint64, n > &a) |
| template<int shift, int n> | |
| v_reg< unsigned, n > | cv::v_shl (const v_reg< unsigned, n > &a) |
| template<int shift, int n> | |
| v_reg< ushort, n > | cv::v_shl (const v_reg< ushort, n > &a) |
右移 | |
右移位 | |
| template<int shift, int n> | |
| v_reg< int, n > | cv::v_shr (const v_reg< int, n > &a) |
| template<int shift, int n> | |
| v_reg< int64, n > | cv::v_shr (const v_reg< int64, n > &a) |
| template<int shift, int n> | |
| v_reg< short, n > | cv::v_shr (const v_reg< short, n > &a) |
| template<int shift, int n> | |
| v_reg< uint64, n > | cv::v_shr (const v_reg< uint64, n > &a) |
| template<int shift, int n> | |
| v_reg< unsigned, n > | cv::v_shr (const v_reg< unsigned, n > &a) |
| template<int shift, int n> | |
| v_reg< ushort, n > | cv::v_shr (const v_reg< ushort, n > &a) |
舍入移位 | |
舍入右移位 | |
| template<int shift, int n> | |
| v_reg< int, n > | cv::v_rshr (const v_reg< int, n > &a) |
| template<int shift, int n> | |
| v_reg< int64, n > | cv::v_rshr (const v_reg< int64, n > &a) |
| template<int shift, int n> | |
| v_reg< short, n > | cv::v_rshr (const v_reg< short, n > &a) |
| template<int shift, int n> | |
| v_reg< uint64, n > | cv::v_rshr (const v_reg< uint64, n > &a) |
| template<int shift, int n> | |
| v_reg< unsigned, n > | cv::v_rshr (const v_reg< unsigned, n > &a) |
| template<int shift, int n> | |
| v_reg< ushort, n > | cv::v_rshr (const v_reg< ushort, n > &a) |
压缩 | |
将两个向量的值压缩为一个 返回的向量类型拥有的元素数量是输入向量类型的两倍。带有 u 后缀的变体还会转换为对应的无符号类型。
| |
| template<int n> | |
| v_reg< short, 2 *n > | cv::v_pack (const v_reg< int, n > &a, const v_reg< int, n > &b) |
| template<int n> | |
| v_reg< int, 2 *n > | cv::v_pack (const v_reg< int64, n > &a, const v_reg< int64, n > &b) |
| template<int n> | |
| v_reg< schar, 2 *n > | cv::v_pack (const v_reg< short, n > &a, const v_reg< short, n > &b) |
| template<int n> | |
| v_reg< unsigned, 2 *n > | cv::v_pack (const v_reg< uint64, n > &a, const v_reg< uint64, n > &b) |
| template<int n> | |
| v_reg< ushort, 2 *n > | cv::v_pack (const v_reg< unsigned, n > &a, const v_reg< unsigned, n > &b) |
| template<int n> | |
| v_reg< uchar, 2 *n > | cv::v_pack (const v_reg< ushort, n > &a, const v_reg< ushort, n > &b) |
| template<int n> | |
| v_reg< ushort, 2 *n > | cv::v_pack_u (const v_reg< int, n > &a, const v_reg< int, n > &b) |
| template<int n> | |
| v_reg< uchar, 2 *n > | cv::v_pack_u (const v_reg< short, n > &a, const v_reg< short, n > &b) |
带舍入移位的压缩 | |
将两个向量的值通过舍入移位压缩为一个 输入向量的值将向右舍入移位 n 位,转换为更窄的类型并返回到结果向量中。带有 u 后缀的变体转换为无符号类型。
| |
| template<int shift, int n> | |
| v_reg< short, 2 *n > | cv::v_rshr_pack (const v_reg< int, n > &a, const v_reg< int, n > &b) |
| template<int shift, int n> | |
| v_reg< int, 2 *n > | cv::v_rshr_pack (const v_reg< int64, n > &a, const v_reg< int64, n > &b) |
| template<int shift, int n> | |
| v_reg< schar, 2 *n > | cv::v_rshr_pack (const v_reg< short, n > &a, const v_reg< short, n > &b) |
| template<int shift, int n> | |
| v_reg< unsigned, 2 *n > | cv::v_rshr_pack (const v_reg< uint64, n > &a, const v_reg< uint64, n > &b) |
| template<int shift, int n> | |
| v_reg< ushort, 2 *n > | cv::v_rshr_pack (const v_reg< unsigned, n > &a, const v_reg< unsigned, n > &b) |
| template<int shift, int n> | |
| v_reg< uchar, 2 *n > | cv::v_rshr_pack (const v_reg< ushort, n > &a, const v_reg< ushort, n > &b) |
| template<int shift, int n> | |
| v_reg< ushort, 2 *n > | cv::v_rshr_pack_u (const v_reg< int, n > &a, const v_reg< int, n > &b) |
| template<int shift, int n> | |
| v_reg< uchar, 2 *n > | cv::v_rshr_pack_u (const v_reg< short, n > &a, const v_reg< short, n > &b) |
压缩并存储 | |
通过压缩将输入向量的值存储到内存中 值将被转换为更窄的类型并存储到内存中。带有 u 后缀的变体转换为对应的无符号类型。
| |
| template<int n> | |
| void | cv::v_pack_store (int *ptr, const v_reg< int64, n > &a) |
| template<int n> | |
| void | cv::v_pack_store (schar *ptr, const v_reg< short, n > &a) |
| template<int n> | |
| void | cv::v_pack_store (short *ptr, const v_reg< int, n > &a) |
| template<int n> | |
| void | cv::v_pack_store (uchar *ptr, const v_reg< ushort, n > &a) |
| template<int n> | |
| void | cv::v_pack_store (unsigned *ptr, const v_reg< uint64, n > &a) |
| template<int n> | |
| void | cv::v_pack_store (ushort *ptr, const v_reg< unsigned, n > &a) |
| template<int n> | |
| void | cv::v_pack_u_store (uchar *ptr, const v_reg< short, n > &a) |
| template<int n> | |
| void | cv::v_pack_u_store (ushort *ptr, const v_reg< int, n > &a) |
带舍入移位的压缩并存储 | |
通过压缩将输入向量的值存储到内存中 值将通过舍入向右移位 n 位,转换为更窄的类型并存储到内存中。带有 u 后缀的变体转换为无符号类型。
| |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_store (int *ptr, const v_reg< int64, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_store (schar *ptr, const v_reg< short, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_store (short *ptr, const v_reg< int, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_store (uchar *ptr, const v_reg< ushort, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_store (unsigned *ptr, const v_reg< uint64, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_store (ushort *ptr, const v_reg< unsigned, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_u_store (uchar *ptr, const v_reg< short, n > &a) |
| template<int shift, int n> | |
| void | cv::v_rshr_pack_u_store (ushort *ptr, const v_reg< int, n > &a) |
压缩布尔值 | |
将多个向量的布尔值压缩为一个无符号 8 位整数向量
| |
| template<int n> | |
| v_reg< uchar, 8 *n > | cv::v_pack_b (const v_reg< uint64, n > &a, const v_reg< uint64, n > &b, const v_reg< uint64, n > &c, const v_reg< uint64, n > &d, const v_reg< uint64, n > &e, const v_reg< uint64, n > &f, const v_reg< uint64, n > &g, const v_reg< uint64, n > &h) |
| template<int n> | |
| v_reg< uchar, 4 *n > | cv::v_pack_b (const v_reg< unsigned, n > &a, const v_reg< unsigned, n > &b, const v_reg< unsigned, n > &c, const v_reg< unsigned, n > &d) |
| template<int n> | |
| v_reg< uchar, 2 *n > | cv::v_pack_b (const v_reg< ushort, n > &a, const v_reg< ushort, n > &b) |
| ! 用于 16 位布尔值 | |
变量 | |
| static const unsigned char | cv::popCountTable [] |