fixed the size of output velocity map in OptFlowBM, ticket #1362 (thanks to Takanori Y for the patch)

pull/13383/head
Vadim Pisarevsky 13 years ago
parent 5434a9a5ec
commit 4ba87233bb
  1. 4
      modules/video/src/optflowbm.cpp

@ -77,8 +77,8 @@ cvCalcOpticalFlowBM( const void* srcarrA, const void* srcarrB,
CvSize velSize =
{
(srcA->width - blockSize.width)/shiftSize.width,
(srcA->height - blockSize.height)/shiftSize.height
(srcA->width - blockSize.width + shiftSize.width)/shiftSize.width,
(srcA->height - blockSize.height + shiftSize.height)/shiftSize.height
};
if( !CV_ARE_SIZES_EQ( srcA, srcB ) ||

Loading…
Cancel
Save