Using SIMD instructions in image processing using OpenCV
I've explained the build and installation steps in this gist: Build OpenCV 4 in Ubuntu
The recommended method for configuring OpenCV-based projects is using CMake.
sudo apt install cmake
If you are on Windows, download and execute CMake installer:
The basic project configurations are written in
CMakeLists.txt
file which will be recognized by CMake tool. All source code of this project is in src
directory.
In order to generate the Makefile and other files used to
build this project in a directory called build
run these commands:
cmake -S src -B build
cmake --build build --config Release
Supposed that you are in build
directory:
./sobel_simd_opencv
- Intel® Intrinsics Guide
- Sobel operator
- Set the OpenCV environment variable and add it to the systems path (in Windows)
- How do I check OS with a preprocessor directive?
- Header files for x86 SIMD intrinsics
- Measure execution time in C (on Windows)
- Acquiring high-resolution time stamps
- clock_gettime: identifier not found in Visual Studio in Windows 10
- CMAKE_BUILD_TYPE is not being used in CMakeLists.txt
- Why aren't binaries placed in CMAKE_CURRENT_BINARY_DIR?
- SSE2 option in Visual C++ (x64)