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
47fbdd0d
Commit
47fbdd0d
authored
Dec 01, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #882 from alalek:fix_warnings
parents
fde8a6ab
7cdf2191
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
binary_descriptor_matcher.cpp
modules/line_descriptor/src/binary_descriptor_matcher.cpp
+3
-3
No files found.
modules/line_descriptor/src/binary_descriptor_matcher.cpp
View file @
47fbdd0d
...
@@ -830,7 +830,7 @@ int BinaryDescriptorMatcher::SparseHashtable::init( int _b )
...
@@ -830,7 +830,7 @@ int BinaryDescriptorMatcher::SparseHashtable::init( int _b )
return
1
;
return
1
;
size
=
UINT64_1
<<
(
b
-
5
);
// size = 2 ^ b
size
=
UINT64_1
<<
(
b
-
5
);
// size = 2 ^ b
table
=
std
::
vector
<
BucketGroup
>
(
size
,
BucketGroup
(
false
));
table
=
std
::
vector
<
BucketGroup
>
(
(
size_t
)
size
,
BucketGroup
(
false
));
return
0
;
return
0
;
...
@@ -844,13 +844,13 @@ BinaryDescriptorMatcher::SparseHashtable::~SparseHashtable()
...
@@ -844,13 +844,13 @@ BinaryDescriptorMatcher::SparseHashtable::~SparseHashtable()
/* insert data */
/* insert data */
void
BinaryDescriptorMatcher
::
SparseHashtable
::
insert
(
UINT64
index
,
UINT32
data
)
void
BinaryDescriptorMatcher
::
SparseHashtable
::
insert
(
UINT64
index
,
UINT32
data
)
{
{
table
[
index
>>
5
].
insert
(
(
int
)
(
index
%
32
),
data
);
table
[
(
size_t
)(
index
>>
5
)].
insert
(
(
int
)
(
index
&
31
),
data
);
}
}
/* query data */
/* query data */
UINT32
*
BinaryDescriptorMatcher
::
SparseHashtable
::
query
(
UINT64
index
,
int
*
Size
)
UINT32
*
BinaryDescriptorMatcher
::
SparseHashtable
::
query
(
UINT64
index
,
int
*
Size
)
{
{
return
table
[
index
>>
5
].
query
(
(
int
)
(
index
%
32
),
Size
);
return
table
[
(
size_t
)(
index
>>
5
)].
query
(
(
int
)
(
index
&
31
),
Size
);
}
}
/* constructor */
/* constructor */
...
...
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