Class: OpenCV::CvMat
- Inherits:
-
Object
- Object
- OpenCV::CvMat
- Defined in:
- ext/opencv/cvmat.cpp
Overview
CvMat is basic 2D matrix class in OpenCV.
C structure is here.
typedef struct CvMat {
int type;
int step;
int *refcount;
union
{
uchar *ptr;
short *s;
int *i;
float *fl;
double *db;
} data;
#ifdef __cplusplus
union
{
int rows;
int height;
};
union
{
int cols;
int width;
};
#else
int rows; // number of row
int cols; // number of columns
} CvMat;