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
75558ae7
Commit
75558ae7
authored
May 26, 2015
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4058 from mshabunin:latch-sample
parents
8fb37606
5ad4bed7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
OpenCVGenHeaders.cmake
cmake/OpenCVGenHeaders.cmake
+1
-0
LATCH_match.cpp
samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp
+16
-1
No files found.
cmake/OpenCVGenHeaders.cmake
View file @
75558ae7
# platform-specific config file
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/templates/cvconfig.h.in"
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/cvconfig.h"
)
configure_file
(
"
${
OpenCV_SOURCE_DIR
}
/cmake/templates/cvconfig.h.in"
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/opencv2/cvconfig.h"
)
install
(
FILES
"
${
OPENCV_CONFIG_FILE_INCLUDE_DIR
}
/cvconfig.h"
DESTINATION
${
OPENCV_INCLUDE_INSTALL_PATH
}
/opencv2 COMPONENT dev
)
# ----------------------------------------------------------------------------
...
...
samples/cpp/tutorial_code/xfeatures2D/LATCH_match.cpp
View file @
75558ae7
#include <iostream>
#include "opencv2/opencv_modules.hpp"
#ifdef HAVE_OPENCV_XFEATURES2D
#include <opencv2/features2d.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/opencv.hpp>
#include <vector>
#include <iostream>
// If you find this code useful, please add a reference to the following paper in your work:
// Gil Levi and Tal Hassner, "LATCH: Learned Arrangements of Three Patch Codes", arXiv preprint arXiv:1501.03719, 15 Jan. 2015
...
...
@@ -90,3 +95,13 @@ int main(void)
cout
<<
endl
;
return
0
;
}
#else
int
main
()
{
std
::
cerr
<<
"OpenCV was built without xfeatures2d module"
<<
std
::
endl
;
return
0
;
}
#endif
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