Lines Matching refs:ndims
298 int ndims = PyArray_NDIM(oarr); in pyopencv_to() local
299 if(ndims >= CV_MAX_DIM) in pyopencv_to()
301 failmsg("%s dimensionality (=%d) is too high", info.name, ndims); in pyopencv_to()
310 bool ismultichannel = ndims == 3 && _sizes[2] <= CV_CN_MAX; in pyopencv_to()
312 for( int i = ndims-1; i >= 0 && !needcopy; i-- ) in pyopencv_to()
318 if( (i == ndims-1 && (size_t)_strides[i] != elemsize) || in pyopencv_to()
319 (i < ndims-1 && _strides[i] < _strides[i+1]) ) in pyopencv_to()
346 for(int i = 0; i < ndims; i++) in pyopencv_to()
353 if( ndims == 0) { in pyopencv_to()
354 size[ndims] = 1; in pyopencv_to()
355 step[ndims] = elemsize; in pyopencv_to()
356 ndims++; in pyopencv_to()
361 ndims--; in pyopencv_to()
365 if( ndims > 2 && !allowND ) in pyopencv_to()
371 m = Mat(ndims, size, type, PyArray_DATA(oarr), step); in pyopencv_to()
372 m.u = g_numpyAllocator.allocate(o, ndims, size, type, step); in pyopencv_to()