Skip to content

Commit 4566105

Browse files
authored
fixed non c++11 warnings.
1 parent 3c229aa commit 4566105

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/cudaoptflow/src/pyrlk.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,12 @@ namespace
103103
};
104104

105105
PyrLKOpticalFlowBase::PyrLKOpticalFlowBase(Size winSize, int maxLevel, int iters, bool useInitialFlow) :
106-
winSize_({winSize.width, winSize.height}), halfWinSize_({(winSize.width - 1) / 2, (winSize.height - 1) / 2}),
107106
maxLevel_(maxLevel), iters_(iters), useInitialFlow_(useInitialFlow)
108107
{
108+
winSize_[0] = winSize.width;
109+
winSize_[1] = winSize.height;
110+
halfWinSize_[0] = (winSize.width - 1) / 2;
111+
halfWinSize_[1] = (winSize.height - 1) / 2;
109112
pyrlk::loadWinSize(winSize_, halfWinSize_, 0);
110113
pyrlk::loadIters(&iters_, 0);
111114
}

0 commit comments

Comments
 (0)