pull/13383/head
Vladislav Vinogradov 13 years ago
parent 6d5171e5b6
commit 9a2358628b
  1. 3
      samples/gpu/optical_flow.cpp

@ -208,7 +208,7 @@ int main(int argc, const char* argv[])
while (true)
{
int key = toupper(waitKey(10));
int key = toupper(waitKey(10) & 0xff);
switch (key)
{
@ -282,6 +282,7 @@ void getFlowField(const Mat& u, const Mat& v, Mat& flowField)
const float* ptr_u = u.ptr<float>(i);
const float* ptr_v = v.ptr<float>(i);
Vec4b* row = flowField.ptr<Vec4b>(i);
for (int j = 0; j < flowField.cols; ++j)

Loading…
Cancel
Save