Lines Matching refs:dims

277 cvInitMatNDHeader( CvMatND* mat, int dims, const int* sizes,  in cvInitMatNDHeader()  argument
299 if( dims <= 0 || dims > CV_MAX_DIM ) in cvInitMatNDHeader()
303 for( i = dims - 1; i >= 0; i-- ) in cvInitMatNDHeader()
315 mat->dims = dims; in cvInitMatNDHeader()
335 cvCreateMatND( int dims, const int* sizes, int type ) in cvCreateMatND() argument
343 CV_CALL( arr = cvCreateMatNDHeader( dims, sizes, type )); in cvCreateMatND()
357 cvCreateMatNDHeader( int dims, const int* sizes, int type ) in cvCreateMatNDHeader() argument
365 if( dims <= 0 || dims > CV_MAX_DIM ) in cvCreateMatNDHeader()
371 CV_CALL( cvInitMatNDHeader( arr, dims, sizes, type, 0 )); in cvCreateMatNDHeader()
397 sizes = (int*)alloca( src->dims*sizeof(sizes[0]) ); in cvCloneMatND()
399 for( i = 0; i < src->dims; i++ ) in cvCloneMatND()
402 CV_CALL( dst = cvCreateMatNDHeader( src->dims, sizes, src->type )); in cvCloneMatND()
455 matnd->dims = 2; in cvGetMatND()
483 int dims = -1; in cvInitNArrayIterator() local
528 if( hdr->dims != hdr0->dims ) in cvInitNArrayIterator()
561 for( j = 0; j < hdr->dims; j++ ) in cvInitNArrayIterator()
571 for( j = hdr->dims - 1; j > dim0; j-- ) in cvInitNArrayIterator()
589 for( j = hdr0->dims - 1; j > dim0; j-- ) in cvInitNArrayIterator()
592 dims = dim0 + 1; in cvInitNArrayIterator()
593 iterator->dims = dims; in cvInitNArrayIterator()
597 for( i = 0; i < dims; i++ ) in cvInitNArrayIterator()
602 return dims; in cvInitNArrayIterator()
610 int i, dims, size = 0; in cvNextNArraySlice() local
612 for( dims = iterator->dims; dims > 0; dims-- ) in cvNextNArraySlice()
615 iterator->ptr[i] += iterator->hdr[i]->dim[dims-1].step; in cvNextNArraySlice()
617 if( --iterator->stack[dims-1] > 0 ) in cvNextNArraySlice()
620 size = iterator->hdr[0]->dim[dims-1].size; in cvNextNArraySlice()
623 iterator->ptr[i] -= (size_t)size*iterator->hdr[i]->dim[dims-1].step; in cvNextNArraySlice()
625 iterator->stack[dims-1] = size; in cvNextNArraySlice()
628 return dims > 0; in cvNextNArraySlice()
639 cvCreateSparseMat( int dims, const int* sizes, int type ) in cvCreateSparseMat() argument
656 if( dims <= 0 || dims > CV_MAX_DIM_HEAP ) in cvCreateSparseMat()
662 for( i = 0; i < dims; i++ ) in cvCreateSparseMat()
668 CV_CALL( arr = (CvSparseMat*)cvAlloc(sizeof(*arr)+MAX(0,dims-CV_MAX_DIM)*sizeof(arr->size[0]))); in cvCreateSparseMat()
671 arr->dims = dims; in cvCreateSparseMat()
674 memcpy( arr->size, sizes, dims*sizeof(sizes[0])); in cvCreateSparseMat()
678 size = (int)cvAlign(arr->idxoffset + dims*sizeof(int), sizeof(CvSetElem)); in cvCreateSparseMat()
740 CV_CALL( dst = cvCreateSparseMat( src->dims, src->size, src->type )); in cvCloneSparseMat()
805 for( i = 0; i < mat->dims; i++ ) in icvGetNodePtr()
827 for( i = 0; i < mat->dims; i++ ) in icvGetNodePtr()
830 if( i == mat->dims ) in icvGetNodePtr()
873 CV_MEMCPY_INT( CV_NODE_IDX(mat,node), idx, mat->dims ); in icvGetNodePtr()
902 for( i = 0; i < mat->dims; i++ ) in icvDeleteNode()
924 for( i = 0; i < mat->dims; i++ ) in icvDeleteNode()
927 if( i == mat->dims ) in icvDeleteNode()
1020 for( i = mat->dims - 1; i >= 0; i-- ) in cvCreateData()
1124 for( i = mat->dims - 1; i >= 0; i-- ) in cvSetData()
1235 if( mat->dims > 2 ) in cvGetRawData()
1236 for( i = 1; i < mat->dims; i++ ) in cvGetRawData()
1291 int dims = -1; in cvGetDims() local
1300 dims = 2; in cvGetDims()
1310 dims = 2; in cvGetDims()
1321 dims = mat->dims; in cvGetDims()
1326 for( i = 0; i < dims; i++ ) in cvGetDims()
1333 dims = mat->dims; in cvGetDims()
1336 memcpy( sizes, mat->size, dims*sizeof(sizes[0])); in cvGetDims()
1345 return dims; in cvGetDims()
1394 if( (unsigned)index >= (unsigned)mat->dims ) in cvGetDimSize()
1403 if( (unsigned)index >= (unsigned)mat->dims ) in cvGetDimSize()
1951 for( j = 1; j < mat->dims; j++ ) in cvPtr1D()
1965 for( j = mat->dims - 1; j >= 0; j-- ) in cvPtr1D()
1980 if( m->dims == 1 ) in cvPtr1D()
1984 int i, n = m->dims; in cvPtr1D()
2084 if( mat->dims != 2 || in cvPtr2D()
2123 if( mat->dims != 3 || in cvPtr3D()
2173 for( i = 0; i < mat->dims; i++ ) in cvPtrND()
2222 else if( !CV_IS_SPARSE_MAT( arr ) || ((CvSparseMat*)arr)->dims > 1 ) in cvGet1D()
2358 else if( !CV_IS_SPARSE_MAT( arr ) || ((CvSparseMat*)arr)->dims > 1 ) in cvGetReal1D()
2516 else if( !CV_IS_SPARSE_MAT( arr ) || ((CvSparseMat*)arr)->dims > 1 ) in cvSet1D()
2632 else if( !CV_IS_SPARSE_MAT( arr ) || ((CvSparseMat*)arr)->dims > 1 ) in cvSetReal1D()
2862 if( matnd->dims > 2 ) in cvGetMat()
2863 for( i = 1; i < matnd->dims; i++ ) in cvGetMat()
2866 size2 = matnd->dims == 1 ? 1 : matnd->dim[1].size; in cvGetMat()
2904 int dims, coi = 0; in cvReshapeMatND() local
2912 CV_CALL( dims = cvGetDims( arr )); in cvReshapeMatND()
2917 new_dims = dims; in cvReshapeMatND()
3011 int last_dim_size = mat->dim[mat->dims-1].size*CV_MAT_CN(mat->type); in cvReshapeMatND()
3025 header->dim[header->dims-1].size = new_size; in cvReshapeMatND()
3051 for( i = 1; i < dims; i++ ) in cvReshapeMatND()
3073 header->dims = new_dims; in cvReshapeMatND()