Hello, I want to use smid library at c++ project with opencv 3.2 How to convert Mat for simd image buffer? Help me plz.
You seem to have CSS turned off. Please don't fill out this field.
Anonymous
It is simple. You just have to define macro SIMD_OPENCV_ENABLE before including of Simd headers:
#include <opencv2/core/core.hpp> #define SIMD_OPENCV_ENABLE #include "Simd/SimdLib.hpp" typedef Simd::Point<ptrdiff_t> Point; typedef Simd::Rectangle<ptrdiff_t> Rect; typedef Simd::View<Simd::Allocator> View; void test() { cv::Mat cvImage; View simdImage; cvImage = simdImage; simdImage = cvImage; cv::Size cvSize; cv::Point cvPoint; Point simdPoint; simdPoint = cvPoint; simdPoint = cvSize; cvSize = simdPoint; cvPoint = simdPoint; cv::Rect cvRect; Rect simdRect; simdRect = cvRect; cvRect = simdRect; }
Dear Ihar,
Thank you very much for your support.
View and moderate all "English Common Forum" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello, I want to use smid library at c++ project with opencv 3.2
How to convert Mat for simd image buffer?
Help me plz.
It is simple. You just have to define macro SIMD_OPENCV_ENABLE before including of Simd headers:
View and moderate all "English Common Forum" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Dear Ihar,
Thank you very much for your support.