Skip to content

Commit f13b917

Browse files
committed
Initial Release
1 parent 336c185 commit f13b917

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+8414
-3
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
results
2+
.DS_Store

README.md

100644100755
Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,57 @@
1-
This is the repository for "LIFT: Learned Invariant Feature Transform" (K.M. Yi, E. Trulls, V. Lepetit, P. Fua).
1+
# LIFT: Learned Invariant Feature Points
22

3-
We are currently working on the release version.
3+
This software is a Python implementation of the LIFT feature point presented in [1].
4+
5+
[1] K. M. Yi, E. Trulls, V. Lepetit, and P. Fua. "LIFT: Learned Invariant Feature Transform", European Conference on Computer Vision (ECCV), 2016.
6+
7+
This software is patented and is strictly for academic purposes only. For other purposes, please contact us. When using this software, please cite [1].
8+
9+
10+
11+
Contact:
12+
13+
<pre>
14+
Kwang Moo Yi : kwang_dot_yi_at_epfl_dot_ch
15+
Eduard Trulls : eduard_dot_trulls_at_epfl_dot_ch
16+
</pre>
17+
18+
## Requirements
19+
20+
* OpenCV 3
21+
22+
And the following python requirements:
23+
24+
* Theano
25+
* Lasagne (Dev)
26+
* numpy
27+
* scipy
28+
* flufl.lock
29+
* parse
30+
* h5py
31+
32+
which can be installed with
33+
34+
```bash
35+
pip install -r requirements.txt
36+
```
37+
38+
## Usage
39+
40+
Build the shared library by
41+
42+
```bash
43+
cd c-code/build
44+
cmake ..
45+
make
46+
```
47+
48+
To run the test program simply
49+
50+
```bash
51+
./run.sh
52+
```
53+
54+
## Note
55+
56+
This model was trained with SfM data, which does not have strong rotation changes. Newer models work better in this case, which will be released soon. In the meantime, you can also use the models in the [learn-orientation](http://github.com/cvlab-epfl/learn-orientation), [benchmark-orientation](http://github.com/cvlab-epfl/benchmark-orientation).
457

5-
We will make the code available 23rd of October the latest, so please click on the watch button on the top to get notified of the release!

c-code/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
libSIFT.so
2+
build
3+
libSIFT.dylib

c-code/CMakeLists.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
cmake_minimum_required(VERSION 2.8.11)
2+
if(COMMAND CMAKE_POLICY)
3+
cmake_policy(SET CMP0003 NEW)
4+
endif(COMMAND CMAKE_POLICY)
5+
6+
7+
set(PROJECT_NAME "SIFT")
8+
project(${PROJECT_NAME})
9+
10+
11+
find_package(OpenCV REQUIRED)
12+
13+
find_package(OpenMP QUIET)
14+
if(OPENMP_FOUND)
15+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
16+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
17+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
18+
endif()
19+
20+
# Set of helper libraries and their source codes
21+
set(SRC_SIFT sift.cpp)
22+
23+
set(CMAKE_BUILD_TYPE Release)
24+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fPIC -O3")
25+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
26+
set(CMAKE_AUTOMOC ON)
27+
28+
# Install to the source directory because I am lazy
29+
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
30+
31+
if (OpenCV_FOUND)
32+
include_directories(
33+
${PROJECT_SOURCE_DIR}
34+
${OPENCV_INCLUDE_DIR}
35+
)
36+
37+
add_library(SIFT SHARED ${SRC_SIFT})
38+
39+
target_link_libraries(SIFT ${OpenCV_LIBRARIES})
40+
41+
install(
42+
TARGETS SIFT
43+
ARCHIVE DESTINATION ${PROJECT_SOURCE_DIR}
44+
LIBRARY DESTINATION ${PROJECT_SOURCE_DIR}
45+
)
46+
47+
else()
48+
set( OT_MISSING_DEPS "")
49+
50+
if(NOT OPENCV_FOUND)
51+
set(OT_MISSING_DEPS "OpenCV, ${OT_MISSING_DEPS}")
52+
endif()
53+
54+
message(STATUS "NOTICE: This project requires ${OT_MISSING_DEPS} and will not be compiled.")
55+
endif()
56+

c-code/build/.placeholder

Whitespace-only changes.

0 commit comments

Comments
 (0)