DUtilsCV::Types Class Reference
Functions to visualize and convert between OpenCV types.
More...
#include <Types.h>
List of all members.
Static Public Member Functions |
template<class T > |
static void | vectorize (const cv::Mat &V, T *r) |
static std::string | type (const cv::Mat &m) |
Static Protected Member Functions |
template<class TM , class T > |
static void | _vectorize (const cv::Mat &V, T *r) |
Detailed Description
Functions to visualize and convert between OpenCV types.
Member Function Documentation
template<class TM , class T >
void DUtilsCV::Types::_vectorize |
( |
const cv::Mat & |
V, |
|
|
T * |
r | |
|
) |
| | [inline, static, protected] |
Copies a mat to an array
- Parameters:
-
| V | col/row vector or 2D matrix of type TM. |
| r | array where the data, casted to T and in row-major order, will be copied to |
std::string Types::type |
( |
const cv::Mat & |
m |
) |
[static] |
Returns the data type of the matrix in a readable string
- Parameters:
-
template<class T >
void DUtilsCV::Types::vectorize |
( |
const cv::Mat & |
V, |
|
|
T * |
r | |
|
) |
| | [inline, static] |
Copies a mat to an array
- Parameters:
-
| V | col/row vector or 2D matrix. |
| r | array where the data, casted to T and in row-major order, will be copied to |
The documentation for this class was generated from the following files: