-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·94 lines (74 loc) · 3.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
CXX = g++
CXXFLAGS = -g -std=c++11 -Wall -I include
FIND = find -name
RM = rm -rf
OPENCV = -I /usr/include/opencv
OPENCVCONF = `pkg-config opencv --libs`
LIB_DIR = lib
VLFEAT = -I $(LIB_DIR)/vlfeat
GMR = $(LIB_DIR)/Saliency/GMRsaliency.cpp
SLIC = $(LIB_DIR)/SLIC/SLIC.cpp
INCLUDES = $(OPENCV) $(OPENCVCONF) $(VLFEAT) $(GMR) $(SLIC)
SRC_DIR = src
CLASSIFICATION = $(SRC_DIR)/classification/classifier.cpp
DESCRIPTION = $(SRC_DIR)/description/description.cpp
PREPROCESSING = $(SRC_DIR)/preprocessing
QUANTIZATION = $(SRC_DIR)/quantization/quantization.cpp
UTILS = $(SRC_DIR)/utils
EXAMPLES = examples
OBJS = dataStructure.o description.o quantization.o classifier.o smote.o rebalance.o artificialGeneration.o
# all: clean descriptorTest artificialGenerationTest rebalanceTest smoteTest experiment rebalanceMultiClasses staticRebalance classifierTest cleanLink
all: clean experiment
# run: run-desbalanced
#
# run-desbalanced:
# ./bin/rebalanceTest Desbalanced/original/ features/ 0 # Replication
# ./bin/rebalanceTest Desbalanced/original/ features/ 1 # All operations
# ./bin/rebalanceTest Desbalanced/original/ features/ 2 # Blur
# ./bin/rebalanceTest Desbalanced/original/ features/ 3 # Noise
# ./bin/rebalanceTest Desbalanced/original/ features/ 4 # Blending
# ./bin/rebalanceTest Desbalanced/original/ features/ 5 # Unsharp masking
# ./bin/rebalanceTest Desbalanced/original/ features/ 6 # Composition wuth 4
# ./bin/rebalanceTest Desbalanced/original/ features/ 7 # Composition with 16
# ./bin/rebalanceTest Desbalanced/original/ features/ 8 # Threshold combination
# ./bin/rebalanceTest Desbalanced/original/ features/ 9 # Saliency
#
# plot:
# python plot.py
# python statistics.py
dataStructure.o:
$(CXX) -c $(CXXFLAGS) $(UTILS)/dataStructure.cpp $(OPENCV)
quantization.o:
$(CXX) -c $(CXXFLAGS) $(QUANTIZATION) $(OPENCV)
description.o:
$(CXX) -c $(CXXFLAGS) $(DESCRIPTION) $(OPENCV) $(VLFEAT)
classifier.o:
$(CXX) -c $(CXXFLAGS) $(CLASSIFICATION) $(OPENCV) $(VLFEAT)
smote.o:
$(CXX) -c $(CXXFLAGS) $(PREPROCESSING)/smote.cpp $(OPENCV) $(VLFEAT)
rebalance.o:
$(CXX) -c $(CXXFLAGS) $(UTILS)/rebalance.cpp $(OPENCV) $(VLFEAT)
artificialGeneration.o:
$(CXX) -c $(CXXFLAGS) $(PREPROCESSING)/artificialGeneration.cpp $(OPENCV) $(VLFEAT) $(GMR) $(SLIC)
descriptorTest: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/descriptor $(EXAMPLES)/descriptorTest.cpp $(INCLUDES)
smoteTest: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/smoteTest $(EXAMPLES)/smoteTest.cpp $(INCLUDES)
artificialGenerationTest: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/artificialGenerationTest $(EXAMPLES)/artificialGenerationTest.cpp $(INCLUDES)
rebalanceTest: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/rebalanceTest $(EXAMPLES)/rebalanceTest.cpp $(INCLUDES)
experiment: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/experiment $(EXAMPLES)/experiment.cpp $(INCLUDES)
rebalanceMultiClasses: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/rebalanceMultiClasses $(EXAMPLES)/rebalanceMultiClasses.cpp $(INCLUDES)
staticRebalance: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/staticRebalance $(EXAMPLES)/staticRebalance.cpp $(INCLUDES)
classifierTest: $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o bin/classify $(EXAMPLES)/classifierTest.cpp $(INCLUDES)
clean:
$(RM) ./*.o
$(RM) ./*.o
$(RM) ./bin/*
cleanLink:
$(RM) ./*.o