minor fix
This commit is contained in:
parent
6d5171e5b6
commit
9a2358628b
@ -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…
Reference in New Issue
Block a user