minor fix

This commit is contained in:
Vladislav Vinogradov 2012-01-16 13:22:28 +00:00
parent 6d5171e5b6
commit 9a2358628b

View File

@ -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)