![]() |
OpenCV 4.12.0
开源计算机视觉
|
主题 | |
| 私有实现助手 | |
"通用内联函数" 是一组类型和函数,旨在简化不同平台上代码的向量化。目前支持不同架构上的多种SIMD扩展。针对包括x86 (SSE/SSE2/SSE4.2)、ARM (NEON)、PowerPC (VSX)、MIPS (MSA) 在内的多种架构,实现了对128位各种类型寄存器的支持。x86架构支持256位长寄存器 (AVX2),x86架构还支持512位长寄存器 (AVX512)。如果在编译时没有可用的SIMD扩展,将选择内联函数的C++回退实现,代码仍将按预期工作,尽管速度可能会较慢。
有几种类型表示打包值的向量寄存器,每种类型都作为基于一个SIMD寄存器的结构体实现。
所列类型的确切位长度(和值数量)是在编译时推导的,取决于在库编译期间选择的架构SIMD能力。所有类型都包含 nlanes 枚举,用于检查该类型的确切值数量。
如果类型的确切位长度很重要,则可以使用特定的固定长度寄存器类型。
有几种类型表示128位寄存器。
有几种类型表示256位寄存器。
有几种类型表示512位寄存器。
这些操作允许显式设置寄存器内容,或从某个内存块加载,以及将寄存器内容保存到内存块。
有可变大小的寄存器加载操作,它们根据所选平台功能提供最大可用大小的结果。
此外,还有固定大小的寄存器加载/存储操作。
对于128位寄存器
对于256位寄存器(请检查CV_SIMD256预处理器定义)
对于512位寄存器(请检查CV_SIMD512预处理器定义)
存储到内存的操作在不同的平台功能上是相似的:v_store, v_store_aligned, v_store_high, v_store_low
这些操作允许重排序或重组一个或多个向量中的元素。
元素级二元和一元操作。
这些操作大多数只返回一个值。
不同的类型转换和类型转换
在这些操作中,向量代表矩阵的行/列:v_dotprod, v_dotprod_fast, v_dotprod_expand, v_dotprod_expand_fast, v_matmul, v_transpose4x4
大多数操作仅针对可用类型的子集实现,下表显示了不同操作对这些类型的适用性。
常规整数
| 操作\类型 | uint 8 | int 8 | uint 16 | int 16 | uint 32 | int 32 |
|---|---|---|---|---|---|---|
| load, store | x | x | x | x | x | x |
| interleave | x | x | x | x | x | x |
| expand | x | x | x | x | x | x |
| expand_low | x | x | x | x | x | x |
| expand_high | x | x | x | x | x | x |
| expand_q | x | x | ||||
| add, sub | x | x | x | x | x | x |
| add_wrap, sub_wrap | x | x | x | x | ||
| mul_wrap | x | x | x | x | ||
| mul | x | x | x | x | x | x |
| mul_expand | x | x | x | x | x | |
| compare | x | x | x | x | x | x |
| 移位 (shift) | x | x | x | x | ||
| dotprod | x | x | ||||
| dotprod_fast | x | x | ||||
| dotprod_expand | x | x | x | x | x | |
| dotprod_expand_fast | x | x | x | x | x | |
| logical | x | x | x | x | x | x |
| min, max | x | x | x | x | x | x |
| absdiff | x | x | x | x | x | x |
| absdiffs | x | x | ||||
| reduce | x | x | x | x | x | x |
| mask | x | x | x | x | x | x |
| pack | x | x | x | x | x | x |
| pack_u | x | x | ||||
| pack_b | x | |||||
| unpack | x | x | x | x | x | x |
| extract | x | x | x | x | x | x |
| rotate (lanes) | x | x | x | x | x | x |
| cvt_flt32 | x | |||||
| cvt_flt64 | x | |||||
| transpose4x4 | x | x | ||||
| reverse(反向) | x | x | x | x | x | x |
| extract_n | x | x | x | x | x | x |
| broadcast_element | x | x |
大整数
| 操作\类型 | uint 64 | int 64 |
|---|---|---|
| load, store | x | x |
| add, sub | x | x |
| 移位 (shift) | x | x |
| logical | x | x |
| reverse(反向) | x | x |
| extract | x | x |
| rotate (lanes) | x | x |
| cvt_flt64 | x | |
| extract_n | x | x |
浮点数
| 操作\类型 | float 32 | float 64 |
|---|---|---|
| load, store | x | x |
| interleave | x | |
| add, sub | x | x |
| mul | x | x |
| div | x | x |
| compare | x | x |
| min, max | x | x |
| absdiff | x | x |
| reduce | x | |
| mask | x | x |
| unpack | x | x |
| cvt_flt32 | x | |
| cvt_flt64 | x | |
| sqrt, abs | x | x |
| float math | x | x |
| transpose4x4 | x | |
| extract | x | x |
| rotate (lanes) | x | x |
| reverse(反向) | x | x |
| extract_n | x | x |
| broadcast_element | x | |
| exp | x | x |
| log | x | x |
| sin, cos | x | x |
类 | |
| 结构体 | cv::v_reg< _Tp, n > |
宏 | |
| #define | OPENCV_HAL_MATH_HAVE_EXP 1 |
类型定义 | |
| typedef v_float32x16 | simd512::v_float32 |
| 最大可用向量寄存器容量 32位浮点值(单精度) | |
| typedef v_reg< float, 16 > | cv::v_float32x16 |
| 十六个32位浮点值(单精度) | |
| typedef v_reg< float, 4 > | cv::v_float32x4 |
| 四个32位浮点值(单精度) | |
| typedef v_reg< float, 8 > | cv::v_float32x8 |
| 八个32位浮点值(单精度) | |
| typedef v_float64x8 | simd512::v_float64 |
| 最大可用向量寄存器容量 64位浮点值(双精度) | |
| typedef v_reg< double, 2 > | cv::v_float64x2 |
| 两个64位浮点值(双精度) | |
| typedef v_reg< double, 4 > | cv::v_float64x4 |
| 四个64位浮点值(双精度) | |
| typedef v_reg< double, 8 > | cv::v_float64x8 |
| 八个64位浮点值(双精度) | |
| typedef v_int16x32 | simd512::v_int16 |
| 最大可用向量寄存器容量 16位有符号整数值。 | |
| typedef v_reg< short, 16 > | cv::v_int16x16 |
| 十六个16位有符号整数值。 | |
| typedef v_reg< short, 32 > | cv::v_int16x32 |
| 三十二个16位有符号整数值。 | |
| typedef v_reg< short, 8 > | cv::v_int16x8 |
| 八个16位有符号整数值。 | |
| typedef v_int32x16 | simd512::v_int32 |
| 最大可用向量寄存器容量 32位有符号整数值。 | |
| typedef v_reg< int, 16 > | cv::v_int32x16 |
| 十六个32位有符号整数值。 | |
| typedef v_reg< int, 4 > | cv::v_int32x4 |
| 四个32位有符号整数值。 | |
| typedef v_reg< int, 8 > | cv::v_int32x8 |
| 八个32位有符号整数值。 | |
| typedef v_int64x8 | simd512::v_int64 |
| 最大可用向量寄存器容量 64位有符号整数值。 | |
| typedef v_reg< int64, 2 > | cv::v_int64x2 |
| 两个64位有符号整数值。 | |
| typedef v_reg< int64, 4 > | cv::v_int64x4 |
| 四个64位有符号整数值。 | |
| typedef v_reg< int64, 8 > | cv::v_int64x8 |
| 八个64位有符号整数值。 | |
| typedef v_int8x64 | simd512::v_int8 |
| 最大可用向量寄存器容量 8位有符号整数值。 | |
| typedef v_reg< schar, 16 > | cv::v_int8x16 |
| 十六个8位有符号整数值。 | |
| typedef v_reg< schar, 32 > | cv::v_int8x32 |
| 三十二个8位有符号整数值。 | |
| typedef v_reg< schar, 64 > | cv::v_int8x64 |
| 六十四个8位有符号整数值。 | |
| typedef v_uint16x32 | simd512::v_uint16 |
| 最大可用向量寄存器容量 16位无符号整数值。 | |
| typedef v_reg< ushort, 16 > | cv::v_uint16x16 |
| 十六个16位无符号整数值。 | |
| typedef v_reg< ushort, 32 > | cv::v_uint16x32 |
| 三十二个16位无符号整数值。 | |
| typedef v_reg< ushort, 8 > | cv::v_uint16x8 |
| 八个16位无符号整数值。 | |
| typedef v_uint32x16 | simd512::v_uint32 |
| 最大可用向量寄存器容量 32位无符号整数值。 | |
| typedef v_reg< unsigned, 16 > | cv::v_uint32x16 |
| 十六个32位无符号整数值。 | |
| typedef v_reg< unsigned, 4 > | cv::v_uint32x4 |
| 四个32位无符号整数值。 | |
| typedef v_reg< unsigned, 8 > | cv::v_uint32x8 |
| 八个32位无符号整数值。 | |
| typedef v_uint64x8 | simd512::v_uint64 |
| 最大可用向量寄存器容量 64位无符号整数值。 | |
| typedef v_reg< uint64, 2 > | cv::v_uint64x2 |
| 两个64位无符号整数值。 | |
| typedef v_reg< uint64, 4 > | cv::v_uint64x4 |
| 四个64位无符号整数值。 | |
| typedef v_reg< uint64, 8 > | cv::v_uint64x8 |
| 八个64位无符号整数值。 | |
| typedef v_uint8x64 | simd512::v_uint8 |
| 最大可用向量寄存器容量 8位无符号整数值。 | |
| typedef v_reg< uchar, 16 > | cv::v_uint8x16 |
| 十六个8位无符号整数值。 | |
| typedef v_reg< uchar, 32 > | cv::v_uint8x32 |
| 三十二个8位无符号整数值。 | |
| typedef v_reg< uchar, 64 > | cv::v_uint8x64 |
| 六十四个8位无符号整数值。 | |
枚举 | |
| 枚举 | { 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) |
| 从内存加载寄存器内容并双重扩展。 | |
| 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) |
| 从内存加载寄存器内容并四重扩展。 | |
| 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) |
| 从内存加载寄存器内容并双重扩展。 | |
| 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) |
| 从内存加载寄存器内容并四重扩展。 | |
| 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) |
| 按位与。 | |
| 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) |
| 将下半部分转换为浮点数。 | |
| template<int n> | |
| v_reg< float, n *2 > | cv::v_cvt_f32 (const v_reg< double, n > &a, const v_reg< double, n > &b) |
| 转换为浮点数。 | |
| template<int n> | |
| v_reg< float, n > | cv::v_cvt_f32 (const v_reg< int, n > &a) |
| 转换为浮点数。 | |
| template<int n> | |
| v_reg< double,(n/2)> | cv::v_cvt_f64 (const v_reg< float, n > &a) |
| 将下半部分转换为双精度浮点数。 | |
| template<int n> | |
| v_reg< double, n/2 > | cv::v_cvt_f64 (const v_reg< int, n > &a) |
| 将下半部分转换为双精度浮点数。 | |
| template<int n> | |
| v_reg< double, n > | cv::v_cvt_f64 (const v_reg< int64, n > &a) |
| 转换为双精度浮点数。 | |
| template<int n> | |
| v_reg< double,(n/2)> | cv::v_cvt_f64_high (const v_reg< float, n > &a) |
| 将向量高位部分转换为双精度浮点数。 | |
| template<int n> | |
| v_reg< double,(n/2)> | cv::v_cvt_f64_high (const v_reg< int, n > &a) |
| 将向量高位部分转换为双精度浮点数。 | |
| 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) |
| 误差函数。 | |
| 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) |
| 乘加运算。 | |
| 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) |
| 从内存加载寄存器内容并双重扩展。 | |
| 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) |
| 从内存加载寄存器内容并四重扩展。 | |
| 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) |
| 幅值。 | |
| 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) |
| 按位非。 | |
| 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) |
| 按位或。 | |
| 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) |
| 值的绝对差之和。 | |
| 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) |
| 逐元素选择(混合操作) | |
| 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) |
| 按位异或。 | |
| 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) |
| 交错两个向量。 | |
变量 | |
| static const unsigned char | cv::popCountTable [] |
重新解释 | |
将向量转换为不同类型而不修改底层数据。 | |
| 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<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< short, n0 *sizeof(_Tp0)/sizeof(short)> | cv::v_reinterpret_as_s16 (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< int, n0 *sizeof(_Tp0)/sizeof(int)> | cv::v_reinterpret_as_s32 (const v_reg< _Tp0, n0 > &a) |
| 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< uint64, n0 *sizeof(_Tp0)/sizeof(uint64)> | cv::v_reinterpret_as_u64 (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<int shift, int n> | |
| v_reg< ushort, n > | cv::v_shl (const v_reg< ushort, 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< unsigned, n > | cv::v_shl (const v_reg< unsigned, n > &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< uint64, n > | cv::v_shl (const v_reg< uint64, 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< ushort, n > | cv::v_shr (const v_reg< ushort, 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< unsigned, n > | cv::v_shr (const v_reg< unsigned, 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< uint64, n > | cv::v_shr (const v_reg< uint64, 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< ushort, n > | cv::v_rshr (const v_reg< ushort, 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< unsigned, n > | cv::v_rshr (const v_reg< unsigned, 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< uint64, n > | cv::v_rshr (const v_reg< uint64, n > &a) |
| template<int shift, int n> | |
| v_reg< int64, n > | cv::v_rshr (const v_reg< int64, n > &a) |
打包 | |
将两个向量的值打包成一个 返回的向量类型具有两倍于输入向量元素的数量。带有 *u* 后缀的变体也会转换为相应的无符号类型。
| |
| 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< schar, 2 *n > | cv::v_pack (const v_reg< short, n > &a, const v_reg< short, 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< short, 2 *n > | cv::v_pack (const v_reg< int, n > &a, const v_reg< int, 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< int, 2 *n > | cv::v_pack (const v_reg< int64, n > &a, const v_reg< int64, 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) |
| template<int n> | |
| v_reg< ushort, 2 *n > | cv::v_pack_u (const v_reg< int, n > &a, const v_reg< int, n > &b) |
带舍入移位的打包 | |
将两个向量的值打包成一个,并带舍入移位 输入向量中的值将右移 *n* 位并进行舍入,然后转换为较窄类型并在结果向量中返回。带有 *u* 后缀的变体转换为无符号类型。
| |
| 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< 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< 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< 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< 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< 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< uchar, 2 *n > | cv::v_rshr_pack_u (const v_reg< short, n > &a, const v_reg< short, 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) |
打包并存储 | |
将输入向量的值打包并存储到内存中 值将被存储到内存中,并转换为较窄类型。带有 *u* 后缀的变体转换为相应的无符号类型。
| |
| template<int n> | |
| void | cv::v_pack_store (uchar *ptr, const v_reg< ushort, 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 (ushort *ptr, const v_reg< unsigned, 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 (unsigned *ptr, const v_reg< uint64, n > &a) |
| template<int n> | |
| void | cv::v_pack_store (int *ptr, const v_reg< int64, 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 (uchar *ptr, const v_reg< ushort, 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 (ushort *ptr, const v_reg< unsigned, 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 (unsigned *ptr, const v_reg< uint64, n > &a) |
| 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_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, 2 *n > | cv::v_pack_b (const v_reg< ushort, n > &a, const v_reg< ushort, n > &b) |
| !适用于 16 位布尔值 | |
| 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, 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) |
| #define OPENCV_HAL_MATH_HAVE_EXP 1 |
#include <opencv2/core/hal/intrin_cpp.hpp>
| typedef v_float32x16 simd512::v_float32 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 32位浮点值(单精度)
| typedef v_reg<float, 16> cv::v_float32x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个32位浮点值(单精度)
| typedef v_reg<float, 4> cv::v_float32x4 |
#include <opencv2/core/hal/intrin_cpp.hpp>
四个32位浮点值(单精度)
| typedef v_reg<float, 8> cv::v_float32x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个32位浮点值(单精度)
| typedef v_float64x8 simd512::v_float64 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 64位浮点值(双精度)
| typedef v_reg<double, 2> cv::v_float64x2 |
#include <opencv2/core/hal/intrin_cpp.hpp>
两个64位浮点值(双精度)
| typedef v_reg<double, 4> cv::v_float64x4 |
#include <opencv2/core/hal/intrin_cpp.hpp>
四个64位浮点值(双精度)
| typedef v_reg<double, 8> cv::v_float64x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个64位浮点值(双精度)
| typedef v_int16x32 simd512::v_int16 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 16位有符号整数值。
| typedef v_reg<short, 16> cv::v_int16x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个16位有符号整数值。
| typedef v_reg<short, 32> cv::v_int16x32 |
#include <opencv2/core/hal/intrin_cpp.hpp>
三十二个16位有符号整数值。
| typedef v_reg<short, 8> cv::v_int16x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个16位有符号整数值。
| typedef v_int32x16 simd512::v_int32 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 32位有符号整数值。
| typedef v_reg<int, 16> cv::v_int32x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个32位有符号整数值。
| typedef v_reg<int, 4> cv::v_int32x4 |
#include <opencv2/core/hal/intrin_cpp.hpp>
四个32位有符号整数值。
| typedef v_reg<int, 8> cv::v_int32x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个32位有符号整数值。
| typedef v_int64x8 simd512::v_int64 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 64位有符号整数值。
| typedef v_reg<int64, 2> cv::v_int64x2 |
#include <opencv2/core/hal/intrin_cpp.hpp>
两个64位有符号整数值。
| typedef v_reg<int64, 4> cv::v_int64x4 |
#include <opencv2/core/hal/intrin_cpp.hpp>
四个64位有符号整数值。
| typedef v_reg<int64, 8> cv::v_int64x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个64位有符号整数值。
| typedef v_int8x64 simd512::v_int8 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 8位有符号整数值。
| typedef v_reg<schar, 16> cv::v_int8x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个8位有符号整数值。
| typedef v_reg<schar, 32> cv::v_int8x32 |
#include <opencv2/core/hal/intrin_cpp.hpp>
三十二个8位有符号整数值。
| typedef v_reg<schar, 64> cv::v_int8x64 |
#include <opencv2/core/hal/intrin_cpp.hpp>
六十四个8位有符号整数值。
| typedef v_uint16x32 simd512::v_uint16 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 16位无符号整数值。
| typedef v_reg<ushort, 16> cv::v_uint16x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个16位无符号整数值。
| typedef v_reg<ushort, 32> cv::v_uint16x32 |
#include <opencv2/core/hal/intrin_cpp.hpp>
三十二个16位无符号整数值。
| typedef v_reg<ushort, 8> cv::v_uint16x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个16位无符号整数值。
| typedef v_uint32x16 simd512::v_uint32 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 32位无符号整数值。
| typedef v_reg<unsigned, 16> cv::v_uint32x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个32位无符号整数值。
| typedef v_reg<unsigned, 4> cv::v_uint32x4 |
#include <opencv2/core/hal/intrin_cpp.hpp>
四个32位无符号整数值。
| typedef v_reg<unsigned, 8> cv::v_uint32x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个32位无符号整数值。
| typedef v_uint64x8 simd512::v_uint64 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 64位无符号整数值。
| typedef v_reg<uint64, 2> cv::v_uint64x2 |
#include <opencv2/core/hal/intrin_cpp.hpp>
两个64位无符号整数值。
| typedef v_reg<uint64, 4> cv::v_uint64x4 |
#include <opencv2/core/hal/intrin_cpp.hpp>
四个64位无符号整数值。
| typedef v_reg<uint64, 8> cv::v_uint64x8 |
#include <opencv2/core/hal/intrin_cpp.hpp>
八个64位无符号整数值。
| typedef v_uint8x64 simd512::v_uint8 |
#include <opencv2/core/hal/intrin.hpp>
最大可用向量寄存器容量 8位无符号整数值。
| typedef v_reg<uchar, 16> cv::v_uint8x16 |
#include <opencv2/core/hal/intrin_cpp.hpp>
十六个8位无符号整数值。
| typedef v_reg<uchar, 32> cv::v_uint8x32 |
#include <opencv2/core/hal/intrin_cpp.hpp>
三十二个8位无符号整数值。
| typedef v_reg<uchar, 64> cv::v_uint8x64 |
#include <opencv2/core/hal/intrin_cpp.hpp>
六十四个8位无符号整数值。
| 匿名枚举 |
#include <opencv2/core/hal/intrin_cpp.hpp>
| 枚举器 | |
|---|---|
| simd128_width | |
| simd256_width | |
| simd512_width | |
| simdmax_width | |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载256位长度寄存器内容。
| ptr | 指向内存块的指针 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容(对齐)
类似于 cv::v256_load,但源内存块应进行对齐(SIMD256 情况下为 32 字节对齐,SIMD512 情况下为 64 字节对齐,依此类推)
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容并双重扩展。
与 cv::v256_load 相同,但结果包类型将比内存类型宽 2 倍。
适用于 8 位、16 位、32 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容并四重扩展。
与 cv::v256_load_expand 相同,但结果类型是源类型的 4 倍宽。
适用于 8 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从两个内存块加载寄存器内容。
| loptr | 包含前半部分数据 (0..n/2) 的内存块 |
| hiptr | 包含后半部分数据 (n/2..n) 的内存块 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
加载128位数据到低位部分(高位部分未定义)。
| ptr | 包含前半部分数据 (0..n/2) 的内存块 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载512位长度寄存器内容。
| ptr | 指向内存块的指针 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容(对齐)
类似于 cv::v512_load,但源内存块应进行对齐(SIMD512 情况下为 64 字节对齐,依此类推)
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容并双重扩展。
与 cv::v512_load 相同,但结果包类型将比内存类型宽 2 倍。
适用于 8 位、16 位、32 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容并四重扩展。
与 cv::v512_load_expand 相同,但结果类型是源类型的 4 倍宽。
适用于 8 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从两个内存块加载寄存器内容。
| loptr | 包含前半部分数据 (0..n/2) 的内存块 |
| hiptr | 包含后半部分数据 (n/2..n) 的内存块 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
加载256位数据到低位部分(高位部分未定义)。
| ptr | 包含前半部分数据 (0..n/2) 的内存块 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
绝对差。
返回 \( |a - b| \) 并转换为相应的无符号类型。示例:
适用于 8 位、16 位、32 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
饱和绝对差。
返回 \( saturate(|a - b|) \) 。适用于8位、16位有符号整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
广播向量的第i个元素。
方案
限制:0 <= i < nlanes 支持的类型:32 位整数和浮点数 (s32/u32/f32)
#include <opencv2/core/hal/intrin_cpp.hpp>
向上取整元素。
对每个值进行向上取整。输入类型为浮点向量 ==> 输出类型为整数向量。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从两个向量的最后元素组合向量。
方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从两个向量的第一个元素组合向量。
方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
元素的点积。
将两个寄存器中的值相乘并对相邻结果对求和。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
元素的点积。
与 cv::v_dotprod 相同,但将第三个元素添加到相邻对的和中。方案:
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
元素的点积并扩展。
将两个寄存器中的值相乘并展开相邻结果对的和。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
元素的点积。
与 cv::v_dotprod_expand 相同,但将第三个元素添加到相邻对的和中。方案:
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
快速元素的点积并扩展。
将两个寄存器中的值相乘并展开相邻结果对的和。
与 cv::v_dotprod_expand 相同,但在某些平台上它可能会在结果对之间执行无序求和,如果只关心所有通道的总和,并且它在受影响的平台上能提供更好的性能,则可以使用此内在函数。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
快速元素的点积。
与 cv::v_dotprod_expand_fast 相同,但会在相邻对的和中添加第三个元素。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
快速元素的点积。
与 cv::v_dotprod 相同,但在某些平台上它可能会在结果对之间执行无序求和,如果只关心所有通道的总和,并且它在受影响的平台上能提供更好的性能,则可以使用此内在函数。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
快速元素的点积。
与 cv::v_dotprod_fast 相同,但会在相邻对的和中添加第三个元素。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
相等比较。
#include <opencv2/core/hal/intrin_cpp.hpp>
元素的指数 \( e^x \)。
仅适用于浮点类型。核心实现步骤
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将值扩展到更宽的打包类型。
将寄存器内容复制到两个具有 2 倍宽封装类型的寄存器。方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将更高值扩展到更宽的打包类型。
与 cv::v_expand_low 相同,但扩展向量的更高一半。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将更低值扩展到更宽的打包类型。
与 cv::v_expand 相同,但返回向量的较低一半。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
向量提取。
方案
限制:0 <= shift < nlanes
用法
适用于所有类型。
#include <opencv2/core/hal/intrin_cpp.hpp>
向量提取。
方案:返回 v 的第 s 个元素。限制:0 <= s < nlanes
用法
适用于所有类型。
#include <opencv2/core/hal/intrin_cpp.hpp>
向下取整元素。
对每个值进行向下取整。输入类型为浮点向量 ==> 输出类型为整数向量。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容。
| ptr | 指向内存块的指针 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容(对齐)
类似于 cv::v_load,但源内存块应进行对齐(SIMD128 的情况为 16 字节对齐,SIMD256 为 32 字节对齐等)
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
加载和解交错(2通道)
从内存中加载数据并解交错存储到 2 个寄存器。方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
加载和解交错(3通道)
从内存中加载数据并解交错存储到 3 个寄存器。方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
加载和解交错(4通道)
从内存中加载数据并解交错存储到 4 个寄存器。方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容并双重扩展。
与 cv::v_load 相同,但结果封装类型将是内存类型的 2 倍宽。
适用于 8 位、16 位、32 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从内存加载寄存器内容并四重扩展。
与 cv::v_load_expand 相同,但结果类型是源类型的 4 倍宽。
适用于 8 位整数源类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
从两个内存块加载寄存器内容。
| loptr | 包含前半部分数据 (0..n/2) 的内存块 |
| hiptr | 包含后半部分数据 (n/2..n) 的内存块 |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
加载64位数据到低位部分(高位部分未定义)。
| ptr | 包含前半部分数据 (0..n/2) 的内存块 |
#include <opencv2/core/hal/intrin_cpp.hpp>
元素的自然对数 \( \log(x) \)。
仅适用于浮点类型。核心实现步骤
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
矩阵乘法。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
矩阵乘加。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
为每对选择最大值。
方案
适用于除 64 位整数之外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
为每对选择最小值。
方案
适用于除 64 位整数之外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
乘法并扩展。
将两个寄存器中的值相乘,并将结果存储到两个具有更宽封装类型的寄存器中。方案
示例
仅适用于 16 位和无符号 32 位源类型 (v_int16x8, v_uint16x8, v_uint32x4)。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
乘法并提取高位部分。
将两个寄存器中的值相乘并存储结果的高位部分。仅适用于 16 位源类型 (v_int16x8, v_uint16x8)。返回 \( a*b >> 16 \)
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
不相等比较。
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
这是一个重载的成员函数,为方便起见而提供。它与上述函数的区别仅在于其接受的参数。对于 64 位布尔值
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
这是一个重载的成员函数,为方便起见而提供。它与上述函数的区别仅在于其接受的参数。对于 32 位布尔值
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
!适用于 16 位布尔值
方案
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
计算向量通道中的1位数量,并以相应的无符号类型返回结果。
方案
适用于所有整数类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将两个向量从另外两个向量的低部和高部组合起来。
#include <opencv2/core/hal/intrin_cpp.hpp>
查找一个最大值。
方案
适用于除 64 位整数和 64 位浮点类型之外的所有类型。
#include <opencv2/core/hal/intrin_cpp.hpp>
查找一个最小值。
方案
适用于除 64 位整数和 64 位浮点类型之外的所有类型。
|
inline |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
求和每个输入向量的所有元素,返回和的向量。
方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
向量反序。
反转向量的顺序。方案
适用于所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
四舍五入元素。
对每个值进行四舍五入。输入类型为浮点向量 ==> 输出类型为整数向量。
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
获取第一个负通道索引。
返回值为第一个负通道的索引(对于所有正数值的输入则未定义)。示例
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
逐元素选择(混合操作)
返回值将通过以下方案组合值 a 和 b 构建:result[i] = mask[i] ? a[i] : b[i];
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
#include <opencv2/core/hal/intrin_cpp.hpp>
获取负值掩码。
返回值为一个位掩码,其位在对应负打包值索引的位置设置为 1。示例
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
同时计算元素的正弦 \( sin(x) \) 和余弦 \( cos(x) \) 。
仅适用于浮点类型。核心实现步骤
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将数据存储到内存。
将寄存器内容存储到内存。方案
指针可以不对齐。
|
inline |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将数据存储到内存(对齐)
将寄存器内容存储到内存。方案
指针应按 16 字节边界对齐。
|
inline |
|
inline |
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将数据存储到内存(高位半部)
将寄存器内容的高半部分存储到内存。方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
交错并存储(4通道)
交错并存储来自 4 个寄存器的数据到内存。方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
交错并存储(3通道)
交错并存储来自 3 个寄存器的数据到内存。方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
交错并存储(2通道)
交错并存储来自 2 个寄存器的数据到内存。方案
适用于除64位以外的所有类型。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
将数据存储到内存(低位半部)
将寄存器内容的低半部分存储到内存。方案
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
转置4x4矩阵。
方案
#include <opencv2/core/hal/intrin_cpp.hpp>
这是为方便而提供的重载成员函数。它与上述函数的唯一区别在于其接受的参数。
|
inline |
#include <opencv2/core/hal/intrin_cpp.hpp>
交错两个向量。
方案
适用于除64位以外的所有类型。
|
static |
#include <opencv2/core/hal/intrin_cpp.hpp>