Commit 4ba87233 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed the size of output velocity map in OptFlowBM, ticket #1362 (thanks to…

fixed the size of output velocity map in OptFlowBM, ticket #1362 (thanks to Takanori Y for the patch)
parent 5434a9a5
......@@ -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 ) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment