This section describes conversion between OpenCV and Intel® IPP Asynchronous C/C++ library. More...
Functions | |
void | cv::hpp::copyHppToMat (hppiMatrix *src, Mat &dst, hppAccel accel, int cn) |
Convert hppiMatrix to Mat. More... | |
hppiMatrix * | cv::hpp::getHpp (const Mat &src, hppAccel accel) |
Create hppiMatrix from Mat. More... | |
Mat | cv::hpp::getMat (hppiMatrix *src, hppAccel accel, int cn) |
Create Mat from hppiMatrix. More... | |
int | cv::hpp::toCvType (const int hppType) |
convert hppDataType to OpenCV data type More... | |
int | cv::hpp::toHppType (const int cvType) |
convert OpenCV data type to hppDataType More... | |
This section describes conversion between OpenCV and Intel® IPP Asynchronous C/C++ library.
Getting Started Guide help you to install the library, configure header and library build paths.
|
inline |
#include <core/include/opencv2/core/ippasync.hpp>
Convert hppiMatrix to Mat.
This function allocates and initializes new matrix (if needed) that has the same size and type as input matrix. Supports CV_8U, CV_16U, CV_16S, CV_32S, CV_32F, CV_64F.
src | input hppiMatrix. |
dst | output matrix. |
accel | accelerator instance (see hpp::getHpp for the list of acceleration framework types). |
cn | number of channels. |
References cv::Mat::create(), CV_Assert, CV_MAKETYPE, cv::Mat::data, cv::Mat::release(), cv::Mat::step, and cv::hpp::toCvType().
Referenced by cv::hpp::getMat().
|
inline |
#include <core/include/opencv2/core/ippasync.hpp>
Create hppiMatrix from Mat.
This function allocates and initializes the hppiMatrix that has the same size and type as input matrix, returns the hppiMatrix*.
If you want to use zero-copy for GPU you should to have 4KB aligned matrix data. See details hppiCreateSharedMatrix.
Supports CV_8U, CV_16U, CV_16S, CV_32S, CV_32F, CV_64F.
src | input matrix. |
accel | accelerator instance. Supports type:
|
References cv::Mat::channels(), cv::Mat::cols, CV_Assert, cv::Mat::data, cv::Mat::rows, cv::Mat::step, cv::hpp::toHppType(), and cv::Mat::type().
|
inline |
#include <core/include/opencv2/core/ippasync.hpp>
Create Mat from hppiMatrix.
This function allocates and initializes the Mat that has the same size and type as input matrix. Supports CV_8U, CV_16U, CV_16S, CV_32S, CV_32F, CV_64F.
src | input hppiMatrix. |
accel | accelerator instance (see hpp::getHpp for the list of acceleration framework types). |
cn | number of channels. |
References cv::hpp::copyHppToMat().
|
inline |
|
inline |
#include <core/include/opencv2/core/ippasync.hpp>
convert OpenCV data type to hppDataType
References CV_16S, CV_16U, CV_32F, CV_32S, CV_64F, CV_8U, CV_Assert, and CV_MAT_DEPTH.
Referenced by cv::hpp::getHpp().