Lines Matching refs:matnd
417 cvGetMatND( const CvArr* arr, CvMatND* matnd, int* coi ) in cvGetMatND() argument
428 if( !matnd || !arr ) in cvGetMatND()
451 matnd->data.ptr = mat->data.ptr; in cvGetMatND()
452 matnd->refcount = 0; in cvGetMatND()
453 matnd->hdr_refcount = 0; in cvGetMatND()
454 matnd->type = mat->type; in cvGetMatND()
455 matnd->dims = 2; in cvGetMatND()
456 matnd->dim[0].size = mat->rows; in cvGetMatND()
457 matnd->dim[0].step = mat->step; in cvGetMatND()
458 matnd->dim[1].size = mat->cols; in cvGetMatND()
459 matnd->dim[1].step = CV_ELEM_SIZE(mat->type); in cvGetMatND()
460 result = matnd; in cvGetMatND()
2852 CvMatND* matnd = (CvMatND*)src; in cvGetMat() local
2854 int size1 = matnd->dim[0].size, size2 = 1; in cvGetMat()
2859 if( !CV_IS_MAT_CONT( matnd->type )) in cvGetMat()
2862 if( matnd->dims > 2 ) in cvGetMat()
2863 for( i = 1; i < matnd->dims; i++ ) in cvGetMat()
2864 size2 *= matnd->dim[i].size; in cvGetMat()
2866 size2 = matnd->dims == 1 ? 1 : matnd->dim[1].size; in cvGetMat()
2870 mat->data.ptr = matnd->data.ptr; in cvGetMat()
2873 mat->type = CV_MAT_TYPE(matnd->type) | CV_MAT_MAGIC_VAL | CV_MAT_CONT_FLAG; in cvGetMat()
2874 mat->step = size2*CV_ELEM_SIZE(matnd->type); in cvGetMat()