Skip to content

Commit

Permalink
Fix opencv#6
Browse files Browse the repository at this point in the history
  • Loading branch information
Auron-X committed Jun 25, 2016
1 parent d1059b4 commit 34356d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tracking/src/gtrUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ namespace cv
prevCenter.x = prevBB.x + prevBB.width / 2;
prevCenter.y = prevBB.y + prevBB.height / 2;

targetPatchRect.x = prevCenter.x - prevBB.width*padTarget/2;
targetPatchRect.y = prevCenter.y - prevBB.height*padTarget / 2;
targetPatchRect.x = (float)(prevCenter.x - prevBB.width*padTarget / 2.0);
targetPatchRect.y = (float)(prevCenter.y - prevBB.height*padTarget / 2.0);
targetPatchRect.width = (float)(prevBB.width*padTarget);
targetPatchRect.height = (float)(prevBB.height*padTarget);

Expand Down

0 comments on commit 34356d8

Please sign in to comment.