Simd库开源程序使用 SIMD 的 C++ 图像处理和机器学习库:SSE、AVX、AVX-512、适用于 x86/x64 的 AMX、适用于 ARM 的 NEON

一、软件介绍

文末提供程序和源码下载

       ​​​​​​Simd 库是一个免费的开源图像处理和机器学习库,专为 C 和 C++ 程序员设计。它为图像处理提供了许多有用的高性能算法,例如:像素格式转换、图像缩放和过滤、从图像中提取统计信息、运动检测、对象检测和分类、神经网络。使用不同的 SIMD CPU 扩展对算法进行了优化。特别是,该库支持以下 CPU 扩展:用于 x86/x64 的 SSE、AVX、AVX-512 和 AMX,以及用于 ARM 的 NEON。Simd 库具有 C API,还包含有用的 C++ 类和函数,以方便访问 C API。该库支持动态和静态链接、32 位和 64 位 Windows 和 Linux、MSVS、G++ 和 Clang 编译器、MSVS 项目和 CMake 构建系统。

二、Library 文件夹的结构

Simd 库具有 next 文件夹的结构:

  • simd/src/Simd/ - contains source codes of the library.
    simd/src/Simd/ - 包含库的源代码。
  • simd/src/Test/ - contains test framework of the library.
    simd/src/Test/ - 包含库的测试框架。
  • simd/src/Use/ - contains the use examples of the library.
    simd/src/Use/ - 包含库的使用示例。
  • simd/py/SimdPy/ - contains Python wrapper of the library.
    simd/py/SimdPy/ - 包含库的 Python 包装器。
  • simd/prj/vs2015/ - contains project files of Microsoft Visual Studio 2015.
    simd/prj/vs2015/ - 包含 Microsoft Visual Studio 2015 的项目文件。
  • simd/prj/vs2017/ - contains project files of Microsoft Visual Studio 2017.
    simd/prj/vs2017/ - 包含 Microsoft Visual Studio 2017 的项目文件。
  • simd/prj/vs2019/ - contains project files of Microsoft Visual Studio 2019.
    simd/prj/vs2019/ - 包含 Microsoft Visual Studio 2019 的项目文件。
  • simd/prj/vs2022/ - contains project files of Microsoft Visual Studio 2022.
    simd/prj/vs2022/ - 包含 Microsoft Visual Studio 2022 的项目文件。
  • simd/prj/cmd/ - contains additional scripts needed for building of the library in Windows.
    simd/prj/cmd/ - 包含在 Windows 中构建库所需的其他脚本。
  • simd/prj/cmake/ - contains files of CMake build systems.
    simd/prj/cmake/ - 包含 CMake 构建系统的文件。
  • simd/prj/sh/ - contains additional scripts needed for building of the library in Linux.
    simd/prj/sh/ - 包含在 Linux 中构建库所需的其他脚本。
  • simd/prj/txt/ - contains text files needed for building of the library.
    simd/prj/txt/ - 包含构建库所需的文本文件。
  • simd/data/cascade/ - contains OpenCV cascades (HAAR and LBP).
    simd/data/cascade/ - 包含 OpenCV 级联(HAAR 和 LBP)。
  • simd/data/image/ - contains image samples.
    simd/data/image/ - 包含图像样本。
  • simd/data/network/ - contains examples of trained networks.
    simd/data/network/ - 包含经过训练的网络示例。
  • simd/docs/ - contains documentation of the library.
    simd/docs/ - 包含库的文档。

三、构建适用于 Windows 的库

o build the library and test application for Windows 32/64 you need to use Microsoft Visual Studio 2022 (or 2015/2017/2019). The project files are in the directory:
要为 Windows 32/64 构建库和测试应用程序,您需要使用 Microsoft Visual Studio 2022(或 2015/2017/2019)。项目文件位于以下目录中:

simd/prj/vs2022/

By default the library is built as a DLL (Dynamic Linked Library). You also may build it as a static library. To do this you must change appropriate property (Configuration Type) of Simd project and also uncomment #define SIMD_STATIC in file:
默认情况下,该库构建为 DLL(动态链接库)。您也可以将其构建为静态库。为此,您必须更改 Simd 项目的相应属性(配置类型),并取消注释文件中 #define SIMD_STATIC

simd/src/Simd/SimdConfig.h

Also in order to build the library you can use CMake and MinGW:
此外,为了构建库,您可以使用 CMake 和 MinGW:

<span style="background-color:var(--bgColor-muted, var(--color-canvas-subtle))"><span style="color:#1f2328"><span style="color:var(--fgColor-default, var(--color-fg-default))"><span style="background-color:var(--bgColor-muted, var(--color-canvas-subtle))"><code>mkdir build
cd build
cmake ..\prj\cmake -DSIMD_TOOLCHAIN="your_to
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值