Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tools/annotate
tools/annotate.dSYM
tools/evolve_grief
tools/evolve_grief.dSYM
tools/match_all
tools/match_all.dSYM
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The datasets we used for evaluation are available for download at my [google dri
### Testing the main program

1. Go to <i>tools</i> and compile the <i>match_all</i> utilily: <b>cd tools;make;cd ..</b>,
(Note that if you are compiling on MacOS, you should do ```make MACOS=yes```)
1. Run <b>./tools/match_all DETECTOR DESCRIPTOR DATASET</b> to perform the evaluation of a single detector/descriptor combination (e.g. <b>./tools/match_all star brief GRIEF-dataset/michigan</b>),
1. After the tests finishes, have a look in the <i>dataset/results/</i> directory for a <i>detector_descriptor.histogram</i> file (e.g. <i>GRIEF-datasets/michigan/results/up-surf_brief.histogram</i>),
1. Run the benchmark on the provided dataset: <b>./scripts/match_all.sh DATASET</b>.
Expand Down
13 changes: 12 additions & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
CC=g++

# compile for unix by default
ifndef MACOS
MACOS=no
endif

SOURCES=$(TARGET).cpp

OBJECTS=$(SOURCES:.cpp=.o)
Expand All @@ -8,7 +13,13 @@ EXECUTABLE=$(TARGET)

#CFLAGS := -Wall -g -O3 -Wfatal-errors -mssse3 -msse2 -march=native
CFLAGS := -ggdb
LDFLAGS := grief/grief.cpp -Llib -Wl,-rpath='$$ORIGIN/lib' -g `pkg-config opencv --libs`
LDFLAGS := grief/grief.cpp -Llib -Wl,

# handle unix/apple builds
ifeq ($(MACOS), no)
LDFLAGS := ${LDFLAGS}-rpath='$$ORIGIN/lib'
endif
LDFLAGS := ${LDFLAGS} -g `pkg-config opencv --libs`

# OpenCV
#CFLAGS += `pkg-config opencv --cflags`
Expand Down
4 changes: 2 additions & 2 deletions tools/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ for i in 16 32 64;
do ./grief/generate_code.py grief/test_pairs.txt $i >grief/generated_$i.i;
done
rm evolve_grief
make evolve_grief
make MACOS=yes evolve_grief
rm match_all
make match_all
make MACOS=yes match_all