luoyc a9c35a4807 opencv source code commit | пре 1 година | |
---|---|---|
.. | ||
c_hal | пре 1 година | |
slow_hal | пре 1 година | |
README.md | пре 1 година |
Samples in this folder are intended to demonstrate functionality replacement mechanism in the OpenCV library.
The c_hal is the example of pure C replacement library with all functions returning error. It can be used to verify error handling in the function switching code.
The slow_hal contains naive C++ implementations of the element-wise logical array operations (and, or, xor, not) making them twice slower than the default.
<home-dir>/my-hal-build
)cmake <opencv-src>/samples/hal/slow_hal
After build you will find static library in the build folder: libslow_hal.a
<home-dir>/my-opencv-build
)Go to the created folder and run cmake:
cmake \
-DOpenCV_HAL_DIR="<home-dir>/my-hal-build/" \
<opencv-src>
Run make (or make opencv_perf_core
to build the demonstration test executable only)
After build you can run the tests and verify that some functions works slower:
./bin/opencv_perf_core --gtest_filter=*bitwise_and*