Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
Intel IPP Asynchronous C/C++ Converters
[Core functionality]
This section describes conversion between OpenCV and [Intel® IPP Asynchronous C/C++](http://software.intel.com/en-us/intel-ipp-preview) library. More...
Functions | |
int | toHppType (const int cvType) |
convert OpenCV data type to hppDataType | |
int | toCvType (const int hppType) |
convert hppDataType to OpenCV data type | |
void | copyHppToMat (hppiMatrix *src, Mat &dst, hppAccel accel, int cn) |
Convert hppiMatrix to Mat. | |
Mat | getMat (hppiMatrix *src, hppAccel accel, int cn) |
Create Mat from hppiMatrix. | |
hppiMatrix * | getHpp (const Mat &src, hppAccel accel) |
Create hppiMatrix from Mat. |
Detailed Description
This section describes conversion between OpenCV and [Intel® IPP Asynchronous C/C++](http://software.intel.com/en-us/intel-ipp-preview) library.
[Getting Started Guide](http://registrationcenter.intel.com/irc_nas/3727/ipp_async_get_started.htm) help you to install the library, configure header and library build paths.
Function Documentation
void cv::hpp::copyHppToMat | ( | hppiMatrix * | src, |
Mat & | dst, | ||
hppAccel | accel, | ||
int | cn | ||
) |
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.
- Parameters:
-
src input hppiMatrix. dst output matrix. accel accelerator instance (see hpp::getHpp for the list of acceleration framework types). cn number of channels.
Definition at line 104 of file ippasync.hpp.
hppiMatrix* cv::hpp::getHpp | ( | const Mat & | src, |
hppAccel | accel | ||
) |
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](http://software.intel.com/ru-ru/node/501697).
Supports CV_8U, CV_16U, CV_16S, CV_32S, CV_32F, CV_64F.
- Note:
- The hppiMatrix pointer to the image buffer in system memory refers to the src.data. Control the lifetime of the matrix and don't change its data, if there is no special need.
- Parameters:
-
src input matrix. accel accelerator instance. Supports type: - **HPP_ACCEL_TYPE_CPU** - accelerated by optimized CPU instructions.
- **HPP_ACCEL_TYPE_GPU** - accelerated by GPU programmable units or fixed-function accelerators.
- **HPP_ACCEL_TYPE_ANY** - any acceleration or no acceleration available.
- See also:
- howToUseIPPAconversion, hpp::getMat
Definition at line 168 of file ippasync.hpp.
Mat cv::hpp::getMat | ( | hppiMatrix * | src, |
hppAccel | accel, | ||
int | cn | ||
) |
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.
- Parameters:
-
src input hppiMatrix. accel accelerator instance (see hpp::getHpp for the list of acceleration framework types). cn number of channels.
- See also:
- howToUseIPPAconversion, hpp::copyHppToMat, hpp::getHpp.
Definition at line 141 of file ippasync.hpp.
int cv::hpp::toCvType | ( | const int | hppType ) |
convert hppDataType to OpenCV data type
Definition at line 83 of file ippasync.hpp.
int cv::hpp::toHppType | ( | const int | cvType ) |
convert OpenCV data type to hppDataType
Definition at line 69 of file ippasync.hpp.
Generated on Tue Jul 12 2022 15:17:34 by 1.7.2