Make TV-L1 rescaling flexible and add median filtering [with GPU and test updates]#724
Merged
opencv-pushbot merged 3 commits intoopencv:masterfrom Apr 8, 2013
Merged
Conversation
Contributor
Author
|
@taka-no-me Andrey, Could you review this pull request? If we merge this PR we can close #693. |
|
👍 However it will wait for the next merge of 2.4 into master. Because b34c2a9 is a duplicate of 924b0ef already merged to 2.4. |
Previously the pyramid was done with a rescaling factor of 2 (implied by the use of pyrDown). This often leads to inferior results compared to a scale step of e.g. 0.8 (a factor of 2 is obviously faster). This commit makes the scale step configurable and uses a resonable default value. The other change in this commit is that median filtering is added. This is not described in this paper but it is done in the author's implementation. (See e.g. "Secrets of optical flow estimation and their principles", Sun et al., CVPR 2010) This serves as periodic outlier removal during optimization, leading to smoother flow fields while preserving motion edges. This includes splitting the optimization loop into two loops.
Contributor
Author
|
@taka-no-me I fixed merge conflicts and removed duplicate commit. Now this pull request can be merged. |
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.
This is an extended version of #693
I used original commit and updated GPU implementation and test data.
Now test on buildbot must pass.