Lines Matching refs:imageWidth
107 int imageWidth = imgSize.width; in icvCalcOpticalFlowHS_8u32fR() local
167 VelBufX[k] = (float *) cvAlloc( imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
171 VelBufY[k] = (float *) cvAlloc( imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
177 BufferSize = imageHeight * imageWidth; in icvCalcOpticalFlowHS_8u32fR()
209 for( j = 1; j < imageWidth - 1; j++ ) in icvCalcOpticalFlowHS_8u32fR()
222 MemY[0][imageWidth - 1] = in icvCalcOpticalFlowHS_8u32fR()
223 MemY[1][imageWidth - 1] = CONV( imgA[imageWidth - 2], in icvCalcOpticalFlowHS_8u32fR()
224 imgA[imageWidth - 1], imgA[imageWidth - 1] ); in icvCalcOpticalFlowHS_8u32fR()
270 for( j = 1; j < imageWidth - 1; j++ ) in icvCalcOpticalFlowHS_8u32fR()
293 ConvX = CONV( imgA[Line1 + imageWidth - 1], imgA[Line2 + imageWidth - 1], in icvCalcOpticalFlowHS_8u32fR()
294 imgA[Line3 + imageWidth - 1] ); in icvCalcOpticalFlowHS_8u32fR()
296 ConvY = CONV( imgA[Line3 + imageWidth - 2], imgA[Line3 + imageWidth - 1], in icvCalcOpticalFlowHS_8u32fR()
297 imgA[Line3 + imageWidth - 1] ); in icvCalcOpticalFlowHS_8u32fR()
300 GradY = (ConvY - MemY[memYline][imageWidth - 1]) * 0.125f; in icvCalcOpticalFlowHS_8u32fR()
301 GradX = (ConvX - MemX[(imageWidth - 2) & 1][ConvLine]) * 0.125f; in icvCalcOpticalFlowHS_8u32fR()
303 MemY[memYline][imageWidth - 1] = ConvY; in icvCalcOpticalFlowHS_8u32fR()
305 GradT = (float) (imgB[Line2 + imageWidth - 1] - imgA[Line2 + imageWidth - 1]); in icvCalcOpticalFlowHS_8u32fR()
328 memset( vx, 0, imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
329 memset( vy, 0, imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
387 for( j = 1; j < imageWidth - 1; j++ ) in icvCalcOpticalFlowHS_8u32fR()
414 averageX = (velocityX[Line2 + imageWidth - 2] + in icvCalcOpticalFlowHS_8u32fR()
415 velocityX[Line2 + imageWidth - 1] + in icvCalcOpticalFlowHS_8u32fR()
416 velocityX[Line1 + imageWidth - 1] + in icvCalcOpticalFlowHS_8u32fR()
417 velocityX[Line3 + imageWidth - 1]) / 4; in icvCalcOpticalFlowHS_8u32fR()
419 averageY = (velocityY[Line2 + imageWidth - 2] + in icvCalcOpticalFlowHS_8u32fR()
420 velocityY[Line2 + imageWidth - 1] + in icvCalcOpticalFlowHS_8u32fR()
421 velocityY[Line1 + imageWidth - 1] + in icvCalcOpticalFlowHS_8u32fR()
422 velocityY[Line3 + imageWidth - 1]) / 4; in icvCalcOpticalFlowHS_8u32fR()
425 VelBufX[i & 1][imageWidth - 1] = averageX - in icvCalcOpticalFlowHS_8u32fR()
429 VelBufY[i & 1][imageWidth - 1] = averageY - in icvCalcOpticalFlowHS_8u32fR()
436 tmp = (float)fabs(velocityX[Line2 + imageWidth - 1] - in icvCalcOpticalFlowHS_8u32fR()
437 VelBufX[i & 1][imageWidth - 1]); in icvCalcOpticalFlowHS_8u32fR()
439 tmp = (float)fabs(velocityY[Line2 + imageWidth - 1] - in icvCalcOpticalFlowHS_8u32fR()
440 VelBufY[i & 1][imageWidth - 1]); in icvCalcOpticalFlowHS_8u32fR()
448 memcpy( &velocityX[Line1], VelBufX[(i - 1) & 1], imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
449 memcpy( &velocityY[Line1], VelBufY[(i - 1) & 1], imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
453 memcpy( &velocityX[imageWidth * (imageHeight - 1)], in icvCalcOpticalFlowHS_8u32fR()
454 VelBufX[(imageHeight - 1) & 1], imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
456 memcpy( &velocityY[imageWidth * (imageHeight - 1)], in icvCalcOpticalFlowHS_8u32fR()
457 VelBufY[(imageHeight - 1) & 1], imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()