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
27602467
Commit
27602467
authored
Aug 01, 2014
by
biagio montesano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added time library
parent
16ed2972
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
bitops.hpp
...ine_descriptor/include/opencv2/line_descriptor/bitops.hpp
+7
-7
binary_descriptor.cpp
modules/line_descriptor/src/binary_descriptor.cpp
+1
-1
precomp.hpp
modules/line_descriptor/src/precomp.hpp
+1
-0
No files found.
modules/line_descriptor/include/opencv2/line_descriptor/bitops.hpp
View file @
27602467
...
@@ -71,20 +71,20 @@ inline int match( UINT8*P, UINT8*Q, int codelb )
...
@@ -71,20 +71,20 @@ inline int match( UINT8*P, UINT8*Q, int codelb )
return
popcnt
(
*
(
UINT32
*
)
P
^
*
(
UINT32
*
)
Q
);
return
popcnt
(
*
(
UINT32
*
)
P
^
*
(
UINT32
*
)
Q
);
break
;
break
;
case
8
:
// 64 bit
case
8
:
// 64 bit
return
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
);
return
(
int
)
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
);
break
;
break
;
case
16
:
// 128 bit
case
16
:
// 128 bit
return
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
1
]
^
(
(
UINT64
*
)
Q
)[
1
]
);
return
(
int
)(
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
1
]
^
(
(
UINT64
*
)
Q
)[
1
]
)
);
break
;
break
;
case
32
:
// 256 bit
case
32
:
// 256 bit
return
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
1
]
^
(
(
UINT64
*
)
Q
)[
1
]
)
return
(
int
)(
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
1
]
^
(
(
UINT64
*
)
Q
)[
1
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
2
]
^
(
(
UINT64
*
)
Q
)[
2
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
3
]
^
(
(
UINT64
*
)
Q
)[
3
]
);
+
popcntll
(
(
(
UINT64
*
)
P
)[
2
]
^
(
(
UINT64
*
)
Q
)[
2
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
3
]
^
(
(
UINT64
*
)
Q
)[
3
]
)
)
;
break
;
break
;
case
64
:
// 512 bit
case
64
:
// 512 bit
return
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
1
]
^
(
(
UINT64
*
)
Q
)[
1
]
)
return
(
int
)(
popcntll
(
(
(
UINT64
*
)
P
)[
0
]
^
(
(
UINT64
*
)
Q
)[
0
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
1
]
^
(
(
UINT64
*
)
Q
)[
1
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
2
]
^
(
(
UINT64
*
)
Q
)[
2
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
3
]
^
(
(
UINT64
*
)
Q
)[
3
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
2
]
^
(
(
UINT64
*
)
Q
)[
2
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
3
]
^
(
(
UINT64
*
)
Q
)[
3
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
4
]
^
(
(
UINT64
*
)
Q
)[
4
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
5
]
^
(
(
UINT64
*
)
Q
)[
5
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
4
]
^
(
(
UINT64
*
)
Q
)[
4
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
5
]
^
(
(
UINT64
*
)
Q
)[
5
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
6
]
^
(
(
UINT64
*
)
Q
)[
6
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
7
]
^
(
(
UINT64
*
)
Q
)[
7
]
);
+
popcntll
(
(
(
UINT64
*
)
P
)[
6
]
^
(
(
UINT64
*
)
Q
)[
6
]
)
+
popcntll
(
(
(
UINT64
*
)
P
)[
7
]
^
(
(
UINT64
*
)
Q
)[
7
]
)
)
;
break
;
break
;
default:
default:
int
output
=
0
;
int
output
=
0
;
...
@@ -132,7 +132,7 @@ inline UINT64 next_set_of_n_elements( UINT64 x )
...
@@ -132,7 +132,7 @@ inline UINT64 next_set_of_n_elements( UINT64 x )
{
{
UINT64
smallest
,
ripple
,
new_smallest
;
UINT64
smallest
,
ripple
,
new_smallest
;
smallest
=
x
&
-
x
;
smallest
=
x
&
-
(
signed
)
x
;
ripple
=
x
+
smallest
;
ripple
=
x
+
smallest
;
new_smallest
=
x
^
ripple
;
new_smallest
=
x
^
ripple
;
new_smallest
=
new_smallest
/
smallest
;
new_smallest
=
new_smallest
/
smallest
;
...
...
modules/line_descriptor/src/binary_descriptor.cpp
View file @
27602467
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
//M*/
//M*/
#define _USE_MATH_DEFINES
#include "precomp.hpp"
#include "precomp.hpp"
#define NUM_OF_BANDS 9
#define NUM_OF_BANDS 9
...
...
modules/line_descriptor/src/precomp.hpp
View file @
27602467
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
#include <cmath>
#include <cmath>
#include <algorithm>
#include <algorithm>
#include <bitset>
#include <bitset>
#include <time.h>
#include "opencv2/line_descriptor.hpp"
#include "opencv2/line_descriptor.hpp"
...
...
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