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
c071f548
Commit
c071f548
authored
Jul 17, 2011
by
Marius Muja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing ticket #1228
parent
be2c4ddb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
defines.h
modules/flann/include/opencv2/flann/defines.h
+4
-0
miniflann.hpp
modules/flann/include/opencv2/flann/miniflann.hpp
+10
-8
No files found.
modules/flann/include/opencv2/flann/defines.h
View file @
c071f548
...
...
@@ -66,6 +66,8 @@
#define FLANN_ARRAY_LEN(a) (sizeof(a)/sizeof(a[0]))
namespace
cvflann
{
/* Nearest neighbour index algorithms */
enum
flann_algorithm_t
{
...
...
@@ -159,4 +161,6 @@ enum
FLANN_CHECKS_AUTOTUNED
=
-
2
};
}
#endif
/* OPENCV_FLANN_DEFINES_H_ */
modules/flann/include/opencv2/flann/miniflann.hpp
View file @
c071f548
...
...
@@ -53,6 +53,8 @@ namespace cv
namespace
flann
{
using
namespace
cvflann
;
struct
CV_EXPORTS
IndexParams
{
...
...
@@ -88,7 +90,7 @@ struct CV_EXPORTS LinearIndexParams : public IndexParams
struct
CV_EXPORTS
CompositeIndexParams
:
public
IndexParams
{
CompositeIndexParams
(
int
trees
=
4
,
int
branching
=
32
,
int
iterations
=
11
,
flann_centers_init_t
centers_init
=
FLANN_CENTERS_RANDOM
,
float
cb_index
=
0.2
);
cvflann
::
flann_centers_init_t
centers_init
=
cvflann
::
FLANN_CENTERS_RANDOM
,
float
cb_index
=
0.2
);
};
struct
CV_EXPORTS
AutotunedIndexParams
:
public
IndexParams
...
...
@@ -100,7 +102,7 @@ struct CV_EXPORTS AutotunedIndexParams : public IndexParams
struct
CV_EXPORTS
KMeansIndexParams
:
public
IndexParams
{
KMeansIndexParams
(
int
branching
=
32
,
int
iterations
=
11
,
flann_centers_init_t
centers_init
=
FLANN_CENTERS_RANDOM
,
float
cb_index
=
0.2
);
cvflann
::
flann_centers_init_t
centers_init
=
cvflann
::
FLANN_CENTERS_RANDOM
,
float
cb_index
=
0.2
);
};
struct
CV_EXPORTS
LshIndexParams
:
public
IndexParams
...
...
@@ -122,10 +124,10 @@ class CV_EXPORTS_W Index
{
public
:
CV_WRAP
Index
();
CV_WRAP
Index
(
InputArray
features
,
const
IndexParams
&
params
,
flann_distance_t
distType
=
FLANN_DIST_L2
);
CV_WRAP
Index
(
InputArray
features
,
const
IndexParams
&
params
,
cvflann
::
flann_distance_t
distType
=
cvflann
::
FLANN_DIST_L2
);
virtual
~
Index
();
CV_WRAP
virtual
void
build
(
InputArray
features
,
const
IndexParams
&
params
,
flann_distance_t
distType
=
FLANN_DIST_L2
);
CV_WRAP
virtual
void
build
(
InputArray
features
,
const
IndexParams
&
params
,
cvflann
::
flann_distance_t
distType
=
cvflann
::
FLANN_DIST_L2
);
CV_WRAP
virtual
void
knnSearch
(
InputArray
query
,
OutputArray
indices
,
OutputArray
dists
,
int
knn
,
const
SearchParams
&
params
=
SearchParams
());
...
...
@@ -136,12 +138,12 @@ public:
CV_WRAP
virtual
void
save
(
const
std
::
string
&
filename
)
const
;
CV_WRAP
virtual
bool
load
(
InputArray
features
,
const
std
::
string
&
filename
);
CV_WRAP
virtual
void
release
();
CV_WRAP
flann_distance_t
getDistance
()
const
;
CV_WRAP
flann_algorithm_t
getAlgorithm
()
const
;
CV_WRAP
cvflann
::
flann_distance_t
getDistance
()
const
;
CV_WRAP
cvflann
::
flann_algorithm_t
getAlgorithm
()
const
;
protected
:
flann_distance_t
distType
;
flann_algorithm_t
algo
;
cvflann
::
flann_distance_t
distType
;
cvflann
::
flann_algorithm_t
algo
;
int
featureType
;
void
*
index
;
};
...
...
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