/external/opencv3/modules/core/src/ |
D | cuda_host_mem.cpp | 243 HostMem cv::cuda::HostMem::reshape(int new_cn, int new_rows) const in reshape() argument 248 if (new_cn == 0) in reshape() 249 new_cn = cn; in reshape() 253 if ((new_cn > total_width || total_width % new_cn != 0) && new_rows == 0) in reshape() 254 new_rows = rows * total_width / new_cn; in reshape() 275 int new_width = total_width / new_cn; in reshape() 277 if (new_width * new_cn != total_width) in reshape() 281 hdr.flags = (hdr.flags & ~CV_MAT_CN_MASK) | ((new_cn - 1) << CV_CN_SHIFT); in reshape()
|
D | cuda_gpu_mat.cpp | 161 GpuMat cv::cuda::GpuMat::reshape(int new_cn, int new_rows) const in reshape() argument 166 if (new_cn == 0) in reshape() 167 new_cn = cn; in reshape() 171 if ((new_cn > total_width || total_width % new_cn != 0) && new_rows == 0) in reshape() 172 new_rows = rows * total_width / new_cn; in reshape() 193 int new_width = total_width / new_cn; in reshape() 195 if (new_width * new_cn != total_width) in reshape() 199 hdr.flags = (hdr.flags & ~CV_MAT_CN_MASK) | ((new_cn - 1) << CV_CN_SHIFT); in reshape()
|
D | umatrix.cpp | 479 UMat UMat::reshape(int new_cn, int new_rows) const in reshape() argument 484 if( dims > 2 && new_rows == 0 && new_cn != 0 && size[dims-1]*cn % new_cn == 0 ) in reshape() 486 hdr.flags = (hdr.flags & ~CV_MAT_CN_MASK) | ((new_cn-1) << CV_CN_SHIFT); in reshape() 488 hdr.size[dims-1] = hdr.size[dims-1]*cn / new_cn; in reshape() 494 if( new_cn == 0 ) in reshape() 495 new_cn = cn; in reshape() 499 if( (new_cn > total_width || total_width % new_cn != 0) && new_rows == 0 ) in reshape() 500 new_rows = rows * total_width / new_cn; in reshape() 522 int new_width = total_width / new_cn; in reshape() 524 if( new_width * new_cn != total_width ) in reshape() [all …]
|
D | array.cpp | 2506 int new_cn, int new_dims, int* new_sizes ) in cvReshapeMatND() argument 2514 if( new_cn == 0 && new_dims == 0 ) in cvReshapeMatND() 2559 if( new_cn == 0 ) in cvReshapeMatND() 2560 new_cn = cn; in cvReshapeMatND() 2565 new_rows = total_width*mat->rows/new_cn; in cvReshapeMatND() 2569 if( new_cn > total_width ) in cvReshapeMatND() 2570 new_rows = mat->rows * total_width / new_cn; in cvReshapeMatND() 2589 header.cols = total_width / new_cn; in cvReshapeMatND() 2591 if( header.cols * new_cn != total_width || in cvReshapeMatND() 2596 header.type = (mat->type & ~CV_MAT_TYPE_MASK) | CV_MAKETYPE(mat->type, new_cn); in cvReshapeMatND() [all …]
|
D | matrix.cpp | 956 Mat Mat::reshape(int new_cn, int new_rows) const in reshape() argument 961 if( dims > 2 && new_rows == 0 && new_cn != 0 && size[dims-1]*cn % new_cn == 0 ) in reshape() 963 hdr.flags = (hdr.flags & ~CV_MAT_CN_MASK) | ((new_cn-1) << CV_CN_SHIFT); in reshape() 965 hdr.size[dims-1] = hdr.size[dims-1]*cn / new_cn; in reshape() 971 if( new_cn == 0 ) in reshape() 972 new_cn = cn; in reshape() 976 if( (new_cn > total_width || total_width % new_cn != 0) && new_rows == 0 ) in reshape() 977 new_rows = rows * total_width / new_cn; in reshape() 999 int new_width = total_width / new_cn; in reshape() 1001 if( new_width * new_cn != total_width ) in reshape() [all …]
|
/external/opencv/cxcore/src/ |
D | cxarray.cpp | 2897 int new_cn, int new_dims, int* new_sizes ) in cvReshapeMatND() argument 2909 if( new_cn == 0 && new_dims == 0 ) in cvReshapeMatND() 2953 if( new_cn == 0 ) in cvReshapeMatND() 2954 new_cn = cn; in cvReshapeMatND() 2959 new_rows = total_width*mat->rows/new_cn; in cvReshapeMatND() 2963 if( new_cn > total_width ) in cvReshapeMatND() 2964 new_rows = mat->rows * total_width / new_cn; in cvReshapeMatND() 2983 header->cols = total_width / new_cn; in cvReshapeMatND() 2985 if( header->cols * new_cn != total_width || in cvReshapeMatND() 2990 header->type = CV_MAKETYPE( mat->type & ~CV_MAT_CN_MASK, new_cn ); in cvReshapeMatND() [all …]
|
/external/opencv3/modules/core/test/ |
D | test_umat.cpp | 99 int new_cn = randomInt(1,4); in TEST_P() local 100 ua.create(dims, sz, CV_MAKE_TYPE(new_depth, new_cn)); in TEST_P() 107 ASSERT_EQ(ua.type(), CV_MAKE_TYPE(new_depth, new_cn) ); in TEST_P() 109 ua.create(new_size, CV_MAKE_TYPE(new_depth, new_cn) ); in TEST_P() 111 ASSERT_EQ(ua.type(), CV_MAKE_TYPE(new_depth, new_cn) ); in TEST_P()
|
/external/opencv/cxcore/include/ |
D | cxcore.h | 405 int new_cn, int new_dims, int* new_sizes ); 407 #define cvReshapeND( arr, header, new_cn, new_dims, new_sizes ) \ argument 409 (new_cn), (new_dims), (new_sizes)) 412 int new_cn, int new_rows CV_DEFAULT(0) );
|
/external/opencv3/modules/core/include/opencv2/core/ |
D | core_c.h | 834 int new_cn, int new_dims, int* new_sizes ); 836 #define cvReshapeND( arr, header, new_cn, new_dims, new_sizes ) \ argument 838 (new_cn), (new_dims), (new_sizes)) 868 int new_cn, int new_rows CV_DEFAULT(0) );
|