Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
7d665a47
Commit
7d665a47
authored
Mar 14, 2015
by
ippei ito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warn conversion from 'size_t' to 'int'. add comment for doxygen
parent
f7d52c77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
lsh_index.h
modules/flann/include/opencv2/flann/lsh_index.h
+3
-1
lsh_table.h
modules/flann/include/opencv2/flann/lsh_table.h
+1
-0
No files found.
modules/flann/include/opencv2/flann/lsh_index.h
View file @
7d665a47
...
...
@@ -106,6 +106,8 @@ public:
/**
* Implementation for the LSH addable indexes after that.
* @param wholeData whole dataset with the input features
* @param additionalData additional dataset with the input features
*/
void
addIndex
(
const
Matrix
<
ElementType
>&
wholeData
,
const
Matrix
<
ElementType
>&
additionalData
)
{
...
...
@@ -113,7 +115,7 @@ public:
for
(
unsigned
int
i
=
0
;
i
<
table_number_
;
++
i
)
{
lsh
::
LshTable
<
ElementType
>&
table
=
tables_
[
i
];
// Add the features to the table with indexed offset
table
.
add
(
wholeData
.
rows
-
additionalData
.
rows
,
additionalData
);
table
.
add
(
(
int
)(
wholeData
.
rows
-
additionalData
.
rows
)
,
additionalData
);
}
dataset_
=
wholeData
;
}
...
...
modules/flann/include/opencv2/flann/lsh_table.h
View file @
7d665a47
...
...
@@ -192,6 +192,7 @@ public:
}
/** Add a set of features to the table
* @param indexed_ofst previous indexed offset
* @param dataset the values to store
*/
void
add
(
int
indexed_ofst
,
Matrix
<
ElementType
>
dataset
)
...
...
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