/external/opencv3/modules/python/src2/ |
D | cv2.cpp | 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() [all …]
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | mat.hpp | 785 Mat(int ndims, const int* sizes, int type); 796 Mat(int ndims, const int* sizes, int type, const Scalar& s); 852 Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0); 1222 static MatExpr zeros(int ndims, const int* sz, int type); 1251 static MatExpr ones(int ndims, const int* sz, int type); 1319 void create(int ndims, const int* sizes, int type); 2133 UMat(int ndims, const int* sizes, int type, UMatUsageFlags usageFlags = USAGE_DEFAULT); 2134 …UMat(int ndims, const int* sizes, int type, const Scalar& s, UMatUsageFlags usageFlags = USAGE_DEF… 2215 static UMat zeros(int ndims, const int* sz, int type); 2218 static UMat ones(int ndims, const int* sz, int type); [all …]
|
/external/opencv3/modules/core/test/ |
D | test_arithm.cpp | 1289 int i, ndims = (int)minidx.size(); in saveOutput() local 1290 dst.create(1, ndims*2 + 2, CV_64FC1); in saveOutput() 1292 for( i = 0; i < ndims; i++ ) in saveOutput() 1295 dst.at<double>(0,i+ndims) = maxidx[i]; in saveOutput() 1297 dst.at<double>(0,ndims*2) = minval; in saveOutput() 1298 dst.at<double>(0,ndims*2+1) = maxval; in saveOutput() 1302 int ndims = src[0].dims; in op() local 1303 vector<int> minidx(ndims), maxidx(ndims); in op() 1310 int ndims=src[0].dims; in refop() local 1311 vector<int> minidx(ndims), maxidx(ndims); in refop()
|
/external/opencv3/modules/core/src/ |
D | matop.cpp | 203 …static void makeExpr(MatExpr& res, int method, int ndims, const int* sizes, int type, double alpha… 1590 inline void MatOp_Initializer::makeExpr(MatExpr& res, int method, int ndims, const int* sizes, int … in makeExpr() argument 1592 …res = MatExpr(getGlobalMatOpInitializer(), method, Mat(ndims, sizes, type, (void*)0), Mat(), Mat()… in makeExpr() 1639 MatExpr Mat::zeros(int ndims, const int* sizes, int type) in zeros() argument 1642 MatOp_Initializer::makeExpr(e, '0', ndims, sizes, type); in zeros() 1660 MatExpr Mat::ones(int ndims, const int* sizes, int type) in ones() argument 1663 MatOp_Initializer::makeExpr(e, '1', ndims, sizes, type); in ones()
|
D | umatrix.cpp | 929 UMat UMat::zeros(int ndims, const int* sz, int type) in zeros() argument 931 return UMat(ndims, sz, type, Scalar::all(0)); in zeros() 944 UMat UMat::ones(int ndims, const int* sz, int type) in ones() argument 946 return UMat(ndims, sz, type, Scalar(1)); in ones()
|
D | matrix.cpp | 4819 int ndims = dims(); in copyTo() local 4820 m.create( ndims, hdr->size, type() ); in copyTo() 4829 copyElem( from.ptr, (ndims > 1 ? m.ptr(n->idx) : m.ptr(n->idx[0])), esz); in copyTo()
|