Home | History | Annotate | Download | only in src

Lines Matching defs:shift

1607     CvMat shiftstub, *shift = (CvMat*)shiftvec;
1722 if( shift )
1724 if( !CV_IS_MAT( shift ))
1725 CV_CALL( shift = cvGetMat( shift, &shiftstub, &coi ));
1727 if( CV_MAT_CN( shift->type ) * shift->cols * shift->rows == dst_cn &&
1728 (shift->rows == 1 || shift->cols == 1) )
1730 if( CV_MAT_DEPTH( shift->type ) == CV_64F )
1732 int step = shift->step ? shift->step/sizeof(double) : 1;
1734 buffer[i*(cn+1) + cn] += shift->data.db[i*step];
1736 else if( CV_MAT_DEPTH( shift->type ) == CV_32F )
1738 int step = shift->step ? shift->step/sizeof(float) : 1;
1740 buffer[i*(cn+1) + cn] += shift->data.fl[i*step];
1743 CV_ERROR( CV_StsUnsupportedFormat, "Shift vector must be 32f or 64f" );
1748 "Shift (if present) must be 1 dimensional vector with the number "