Modify the pyrlk.cl to support winSize from 8*8 to 24*24 for optical …#8863
Merged
opencv-pushbot merged 1 commit intoopencv:masterfrom Jun 8, 2017
Merged
Conversation
Member
|
Thank you! |
opencv-pushbot
pushed a commit
that referenced
this pull request
Jun 8, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
System information (version)
Platform:
CPU: Intel 6th generation i5-6260U
GPU: Intel Iris Graphics 540 (Skylake GT3e)
OS: Linux Ubuntu 16.04 LTS x64
Compiler:
gcc: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
OpenCL: intel-opencl-2.0-r4.1.61547
OpenCV:
OpenCV => 3.1.0
WITH_OPENCL true
Detailed description
In pull request #8609, the winSize has been limited to
16*16-24*24for outputing correct err value. As we discussed in that case, I have modified the opencl kernel - pyrlk.cl - to support smaller winSize. Therefore, the pyrlk.cl supports winSize from8*8-24*24.This pullrequest changes
The /modules/video/src/lkpyramid.cpp
/modules/video/src/opencl/pyrlk.cl
are changed in order to support smaller winSize.
The /modules/video/test/ocl/test_optflowpyrlk.cpp is changed to add test case with winSize 11 and 15.
Performance
The original performance test's winSize is
21*21. With this changing, the performance is the same as before.With the patch shown below, I test the performance with winSize
11*11