Commit 9a235862 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

minor fix

parent 6d5171e5
......@@ -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)
......
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