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
bc7b2160
Commit
bc7b2160
authored
May 13, 2014
by
Roman Donchenko
Committed by
OpenCV Buildbot
May 13, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2692 from 1Hyena:2.4
parents
f0547e5e
6c118ebc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
autotuned_index.h
modules/flann/include/opencv2/flann/autotuned_index.h
+6
-2
params.h
modules/flann/include/opencv2/flann/params.h
+6
-3
No files found.
modules/flann/include/opencv2/flann/autotuned_index.h
View file @
bc7b2160
...
...
@@ -99,18 +99,22 @@ public:
*/
virtual
void
buildIndex
()
{
std
::
ostringstream
stream
;
bestParams_
=
estimateBuildParams
();
print_params
(
bestParams_
,
stream
);
Logger
::
info
(
"----------------------------------------------------
\n
"
);
Logger
::
info
(
"Autotuned parameters:
\n
"
);
print_params
(
bestParams_
);
Logger
::
info
(
"%s"
,
stream
.
str
().
c_str
()
);
Logger
::
info
(
"----------------------------------------------------
\n
"
);
bestIndex_
=
create_index_by_type
(
dataset_
,
bestParams_
,
distance_
);
bestIndex_
->
buildIndex
();
speedup_
=
estimateSearchParams
(
bestSearchParams_
);
stream
.
str
(
std
::
string
());
print_params
(
bestSearchParams_
,
stream
);
Logger
::
info
(
"----------------------------------------------------
\n
"
);
Logger
::
info
(
"Search parameters:
\n
"
);
print_params
(
bestSearchParams_
);
Logger
::
info
(
"%s"
,
stream
.
str
().
c_str
()
);
Logger
::
info
(
"----------------------------------------------------
\n
"
);
}
...
...
modules/flann/include/opencv2/flann/params.h
View file @
bc7b2160
...
...
@@ -79,16 +79,19 @@ T get_param(const IndexParams& params, std::string name)
}
}
inline
void
print_params
(
const
IndexParams
&
params
)
inline
void
print_params
(
const
IndexParams
&
params
,
std
::
ostream
&
stream
)
{
IndexParams
::
const_iterator
it
;
for
(
it
=
params
.
begin
();
it
!=
params
.
end
();
++
it
)
{
st
d
::
cout
<<
it
->
first
<<
" : "
<<
it
->
second
<<
std
::
endl
;
st
ream
<<
it
->
first
<<
" : "
<<
it
->
second
<<
std
::
endl
;
}
}
inline
void
print_params
(
const
IndexParams
&
params
)
{
print_params
(
params
,
std
::
cout
);
}
}
...
...
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