redist/minimal_opencv.h
static inline CvMat cvMat(int rows, int cols, int type, void *data) {
	CvMat m;

	assert((unsigned)CV_MAT_DEPTH(type) <= CV_64F);
	type = CV_MAT_TYPE(type);
	m.type = CV_MAT_MAGIC_VAL | CV_MAT_CONT_FLAG | type;
	m.cols = cols;
	m.rows = rows;
	m.step = m.cols * CV_ELEM_SIZE(type);
	m.data.ptr = (uchar *)data;
	m.refcount = 0;
	m.hdr_refcount = 0;

	return m;
}
/** Inline constructor. No data is allocated internally!!!
 * (Use together with cvCreateData, or use cvCreateMat instead to
 * get a matrix with allocated data):
 */
Inline constructor. No data is allocated internally
(Use together with cvCreateData, or use cvCreateMat instead to
get a matrix with allocated data).
Inline constructor . No data is allocated internally ( Use together with cvCreateData or use cvCreateMat instead to get a matrix with allocated data ) .
static inline CvMat cvMat(int rows, int cols, int type, void *data) {
	CvMat m;
	assert((unsigned)CV_MAT_DEPTH(type) <= CV_64F);
	type = CV_MAT_TYPE(type);
	m.type = CV_MAT_MAGIC_VAL | CV_MAT_CONT_FLAG | type;
	m.cols = cols;
	m.rows = rows;
	m.step = m.cols * CV_ELEM_SIZE(type);
	m.data.ptr = (uchar *)data;
	m.refcount = 0;
	m.hdr_refcount = 0;
	return m;
}
static inline CvMat cvMat ( int rows , int cols , int type , void * data ) { CvMat m ; assert ( ( unsigned ) CV_MAT_DEPTH ( type ) <= CV_64F ) ; type = CV_MAT_TYPE ( type ) ; m . type = CV_MAT_MAGIC_VAL | CV_MAT_CONT_FLAG | type ; m . cols = cols ; m . rows = rows ; m . step = m . cols * CV_ELEM_SIZE ( type ) ; m . data . ptr = ( uchar * ) data ; m . refcount = 0 ; m . hdr_refcount = 0 ; return m ; }
Inline constructor.
Inline constructor .