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
7869b5f0
Commit
7869b5f0
authored
Jan 13, 2016
by
Steve Nicholson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made change suggested in
https://github.com/Itseez/opencv_contrib/pull/514#issuecomment-171128503
parent
04049da0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
matching.hpp
modules/stereo/include/opencv2/stereo/matching.hpp
+8
-3
No files found.
modules/stereo/include/opencv2/stereo/matching.hpp
View file @
7869b5f0
...
...
@@ -171,10 +171,15 @@ namespace cv
j2
=
(
0
>
j
-
d
)
?
(
0
)
:
(
j
-
d
);
xorul
=
left
[(
iwj
)]
^
right
[(
iw
+
j2
)];
#if CV_POPCNT
c
[(
iwj
)
*
(
v
+
1
)
+
d
]
=
(
short
)
_mm_popcnt_u32
(
xorul
);
#else
c
[(
iwj
)
*
(
v
+
1
)
+
d
]
=
(
short
)(
hammLut
[
xorul
&
MASK
]
+
hammLut
[(
xorul
>>
16
)
&
MASK
]);
if
(
checkHardwareSupport
(
CV_CPU_POPCNT
))
{
c
[(
iwj
)
*
(
v
+
1
)
+
d
]
=
(
short
)
_mm_popcnt_u32
(
xorul
);
}
else
#endif
{
c
[(
iwj
)
*
(
v
+
1
)
+
d
]
=
(
short
)(
hammLut
[
xorul
&
MASK
]
+
hammLut
[(
xorul
>>
16
)
&
MASK
]);
}
}
}
}
...
...
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