fixed the size of output velocity map in OptFlowBM, ticket #1362 (thanks to Takanori Y for the patch)
This commit is contained in:
parent
5434a9a5ec
commit
4ba87233bb
@ -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…
x
Reference in New Issue
Block a user