Creates CvMatND header only
| 273 | |
| 274 | // Creates CvMatND header only |
| 275 | CV_IMPL CvMatND* |
| 276 | cvCreateMatNDHeader( 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 |
no test coverage detected