Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
666ec5be
Commit
666ec5be
authored
Sep 26, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1380 from woodychow:simplify_sift_avx2
parents
cff92579
b5340f64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sift.cpp
modules/xfeatures2d/src/sift.cpp
+1
-1
No files found.
modules/xfeatures2d/src/sift.cpp
View file @
666ec5be
...
...
@@ -378,7 +378,7 @@ static float calcOrientationHist( const Mat& img, Point pt, int radius,
float
CV_DECL_ALIGNED
(
32
)
w_mul_mag_buf
[
8
];
for
(
;
k
<=
len
-
8
;
k
+=
8
)
{
__m256i
__bin
=
_mm256_cvtps_epi32
(
_mm256_
round_ps
(
_mm256_mul_ps
(
__nd360
,
_mm256_loadu_ps
(
&
Ori
[
k
])),
_MM_FROUND_TO_NEAREST_INT
|
_MM_FROUND_NO_EXC
));
__m256i
__bin
=
_mm256_cvtps_epi32
(
_mm256_
mul_ps
(
__nd360
,
_mm256_loadu_ps
(
&
Ori
[
k
])
));
__bin
=
_mm256_sub_epi32
(
__bin
,
_mm256_andnot_si256
(
_mm256_cmpgt_epi32
(
__n
,
__bin
),
__n
));
__bin
=
_mm256_add_epi32
(
__bin
,
_mm256_and_si256
(
__n
,
_mm256_cmpgt_epi32
(
_mm256_setzero_si256
(),
__bin
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment