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
6f64ad68
Commit
6f64ad68
authored
Jan 19, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #514 from SSteve:master
parents
87267227
7869b5f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
matching.hpp
modules/stereo/include/opencv2/stereo/matching.hpp
+9
-4
No files found.
modules/stereo/include/opencv2/stereo/matching.hpp
View file @
6f64ad68
...
...
@@ -170,11 +170,16 @@ namespace cv
{
j2
=
(
0
>
j
-
d
)
?
(
0
)
:
(
j
-
d
);
xorul
=
left
[(
iwj
)]
^
right
[(
iw
+
j2
)];
#if CV_SSE4_1
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 CV_POPCNT
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