Lines Matching refs:left
399 cvReleaseMat( &state->left );
441 static void icvInitGraySubpix( const CvMat* left, const CvMat* right,
444 int k, x, y, rows = left->rows, cols = left->cols;
448 const CvMat* src = k == 0 ? left : right;
489 int x, y, x1, d, i, j, rows = state->left->rows, cols = state->left->cols, n = 0;
496 const uchar* lptr = state->left->data.ptr + state->left->step*y;
528 int x, y, rows = state->left->rows, cols = state->left->cols;
534 const uchar* left = state->left->data.ptr;
538 int step = state->left->step;
541 assert( state->left->step == state->right->step &&
547 for( y = 0; y < rows; y++, left += step, right += step, dleft += dstep, dright += dstep )
561 E += dtab[icvDataCostFuncGraySubpix( left + x*3, right + x1*3 )];
567 E += icvSmoothnessCostFunc(d, d1, maxR, stabR, stabI[left[x*3] - left[x*3+3]] );
572 E += icvSmoothnessCostFunc(d, d1, maxR, stabR, stabI[left[x*3] - left[x*3+step]] );
666 int k, a, d, d1, x, y, x1, y1, rows = state->left->rows, cols = state->left->cols;
674 const uchar* left0 = state->left->data.ptr;
680 int step = state->left->step;
687 assert( state->left->step == state->right->step &&
699 const uchar* left = left0 + step*y;
705 const uchar* lr[] = { left, right };
731 // (left + x, right + x + d)
742 dtab[icvDataCostFuncGraySubpix( left + x*3, right + x1*3 )],
749 // (left + x, right + x + alpha)
758 Eaa = dtab[icvDataCostFuncGraySubpix( left + x*3, right + x1*3 )];
852 CvMat lstub, *left = cvGetMat( _left, &lstub );
864 CV_ASSERT( CV_ARE_SIZES_EQ(left, right) && CV_ARE_TYPES_EQ(left, right) &&
865 CV_MAT_TYPE(left->type) == CV_8UC1 );
867 (CV_ARE_SIZES_EQ(dispLeft, left) && CV_MAT_CN(dispLeft->type) == 1) );
869 (CV_ARE_SIZES_EQ(dispRight, left) && CV_MAT_CN(dispRight->type) == 1) );
871 size = cvGetSize(left);
872 if( !state->left || state->left->width != size.width || state->left->height != size.height )
877 cvReleaseMat( &state->left );
884 state->left = cvCreateMat( size.height, size.width, CV_8UC3 );
914 icvInitGraySubpix( left, right, state->left, state->right );