Fix Farneback Optical Flow Algorithm
authorNamgoo Lee <devnglee@gmail.com>
Fri, 11 Jan 2019 04:00:08 +0000 (04:00 +0000)
committerNamgoo Lee <devnglee@gmail.com>
Sun, 13 Jan 2019 15:14:45 +0000 (15:14 +0000)
commit4366c8734fa7cf69c4a9bdcea91f41d1af345e9c
tree0bbb165e28551f256984c2cd8320b0f901d321da
parent054bd23a4301e8a07e8abe0ce88d027c5c6e394f
Fix Farneback Optical Flow Algorithm

- Before this PR, following tests failed on some platform.
  CUDA_OptFlow/FarnebackOpticalFlow.Accuracy/19
  CUDA_OptFlow/FarnebackOpticalFlow.Accuracy/23

- The algorithm now recognizes the OPTFLOW_USE_INITIAL_FLOW flag.
  Previously, when the flag was set, it did not use the flow data
  passed as input, instead used some garbage data in memory.

- More strict test limit.
modules/cudaoptflow/src/farneback.cpp
modules/cudaoptflow/test/test_optflow.cpp
modules/video/src/optflowgf.cpp