Skip to content

Optical Flow rework to use wide universal intrinsics - #13737

Merged
alalek merged 2 commits into
opencv:3.4from
winice-test:master
Feb 4, 2019
Merged

alalek merged 2 commits into
opencv:3.4from
winice-test:master

Conversation

@winice-test

Copy link
Copy Markdown
Contributor

This pullrequest changes

Rework modules/video/src/optflowgf.cpp to use the universal intrinsics and remove the CV_SSE2 code in it.

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!

Comment thread modules/video/src/optflowgf.cpp Outdated
#if CV_SIMD128
float* simd_kernel = alignPtr(kernel + m+1, 16);
volatile bool useSIMD = checkHardwareSupport(CV_CPU_SSE);
volatile bool useSIMD = checkHardwareSupport(CV_CPU_SSE) || checkHardwareSupport(CV_CPU_VSX);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These runtime checks are not needed anymore. useSIMD = true if this macro is defined.

Remove corresponding "if (useSIMD)" checks in this file (but lets leave code scope "{ ... }" to avoid large changes in the code and/or local variables conflicts)

@alalek

This comment has been minimized.

@winice-test
winice-test changed the base branch from master to 3.4 January 31, 2019 22:42
@winice-test
winice-test changed the base branch from 3.4 to master January 31, 2019 23:00
@winice-test
winice-test changed the base branch from master to 3.4 January 31, 2019 23:05
@winice-test

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing. Now I rebase to 3.4 branch. I am sorry that I am new to the OpenCV community and new to git. If anything is wrong, please tell me.

@alalek
alalek merged commit 37a5af3 into opencv:3.4 Feb 4, 2019
@alalek alalek mentioned this pull request Feb 5, 2019
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
* Optical Flow rework to use wide universal intrinsics

* remove if (useSIMD) check as review requested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants