Home | History | Annotate | Download | only in src

Lines Matching defs:imageWidth

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