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
ae4e7639
Commit
ae4e7639
authored
Apr 07, 2013
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make flann headers independent from OpenCV C API
parent
69648f0a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
features2d.hpp
modules/features2d/include/opencv2/features2d.hpp
+1
-2
flann.hpp
modules/flann/include/opencv2/flann.hpp
+0
-5
miniflann.hpp
modules/flann/include/opencv2/flann/miniflann.hpp
+0
-4
test_lshtable_badarg.cpp
modules/flann/test/test_lshtable_badarg.cpp
+3
-3
No files found.
modules/features2d/include/opencv2/features2d.hpp
View file @
ae4e7639
...
...
@@ -43,10 +43,9 @@
#ifndef __OPENCV_FEATURES_2D_HPP__
#define __OPENCV_FEATURES_2D_HPP__
#include "opencv2/flann/miniflann.hpp"
#ifdef __cplusplus
#include "opencv2/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include <limits>
namespace
cv
...
...
modules/flann/include/opencv2/flann.hpp
View file @
ae4e7639
...
...
@@ -43,9 +43,6 @@
#ifndef _OPENCV_FLANN_HPP_
#define _OPENCV_FLANN_HPP_
#ifdef __cplusplus
#include "opencv2/core/types_c.h"
#include "opencv2/core.hpp"
#include "opencv2/flann/miniflann.hpp"
#include "opencv2/flann/flann_base.hpp"
...
...
@@ -422,6 +419,4 @@ FLANN_DEPRECATED int hierarchicalClustering(const Mat& features, Mat& centers, c
}
}
// namespace cv::flann
#endif // __cplusplus
#endif
modules/flann/include/opencv2/flann/miniflann.hpp
View file @
ae4e7639
...
...
@@ -43,8 +43,6 @@
#ifndef _OPENCV_MINIFLANN_HPP_
#define _OPENCV_MINIFLANN_HPP_
#ifdef __cplusplus
#include "opencv2/core.hpp"
#include "opencv2/flann/defines.h"
...
...
@@ -157,6 +155,4 @@ protected:
}
}
// namespace cv::flann
#endif // __cplusplus
#endif
modules/flann/test/test_lshtable_badarg.cpp
View file @
ae4e7639
...
...
@@ -74,13 +74,13 @@ void CV_LshTableBadArgTest::run( int /* start_from */ )
int
errors
=
0
;
caller
.
key_size
=
0
;
errors
+=
run_test_case
(
CV_
StsBadArg
,
"key_size is zero"
,
caller
);
errors
+=
run_test_case
(
Error
::
StsBadArg
,
"key_size is zero"
,
caller
);
caller
.
key_size
=
static_cast
<
int
>
(
sizeof
(
size_t
)
*
CHAR_BIT
);
errors
+=
run_test_case
(
CV_
StsBadArg
,
"key_size is too big"
,
caller
);
errors
+=
run_test_case
(
Error
::
StsBadArg
,
"key_size is too big"
,
caller
);
caller
.
key_size
+=
cvtest
::
randInt
(
rng
)
%
100
;
errors
+=
run_test_case
(
CV_
StsBadArg
,
"key_size is too big"
,
caller
);
errors
+=
run_test_case
(
Error
::
StsBadArg
,
"key_size is too big"
,
caller
);
if
(
errors
!=
0
)
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_MISMATCH
);
...
...
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