MCPcopy Create free account
hub / github.com/creatale/node-dv / cvCreateMatNDHeader

Function cvCreateMatNDHeader

deps/opencv/modules/core/src/array.cpp:275–287  ·  view source on GitHub ↗

Creates CvMatND header only

Source from the content-addressed store, hash-verified

273
274// Creates CvMatND header only
275CV_IMPL CvMatND*
276cvCreateMatNDHeader( int dims, const int* sizes, int type )
277{
278 if( dims <= 0 || dims > CV_MAX_DIM )
279 CV_Error( CV_StsOutOfRange,
280 "non-positive or too large number of dimensions" );
281
282 CvMatND* arr = (CvMatND*)cvAlloc( sizeof(*arr) );
283
284 cvInitMatNDHeader( arr, dims, sizes, type, 0 );
285 arr->hdr_refcount = 1;
286 return arr;
287}
288
289
290// Creates a copy of nD array

Callers 3

icvReadMatNDFunction · 0.85
cvCreateMatNDFunction · 0.85
cvCloneMatNDFunction · 0.85

Calls 2

cvAllocFunction · 0.85
cvInitMatNDHeaderFunction · 0.85

Tested by

no test coverage detected