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

This commit is contained in:
Vadim Pisarevsky 2012-03-26 09:20:03 +00:00
parent 5434a9a5ec
commit 4ba87233bb

View File

@ -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 ) ||