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