-
Notifications
You must be signed in to change notification settings - Fork 7
/
make.m
40 lines (39 loc) · 1.36 KB
/
make.m
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
mex -v -c Fitline/LFLineFitter.cpp -I.
mex -v -c Fitline/LFLineSegment.cpp -I.
mex -v -c Image/DistanceTransform.cpp -I.
mex -v -c Fdcm/EIEdgeImage.cpp -I.
mex -v -c Fdcm/LMDirectionalIntegralDistanceImage.cpp -I.
mex -v -c Fdcm/LMDisplay.cpp -I.
mex -v -c Fdcm/LMDistanceImage.cpp -I.
mex -v -c Fdcm/LMLineMatcher.cpp -I.
mex -v -c Fdcm/LMNonMaximumSuppression.cpp -I.
mex -v -c Fdcm/MatchingCostMap.cpp -I.
status=system('systeminfo');
if status==0
os='windows';
% make fdcm
mex -v mex_fdcm_detect.cpp ...
LFLineFitter.obj LFLineSegment.obj DistanceTransform.obj ...
EIEdgeImage.obj LMDirectionalIntegralDistanceImage.obj LMDisplay.obj...
LMDistanceImage.obj LMLineMatcher.obj LMNonMaximumSuppression.obj...
MatchingCostMap.obj -I.
% make fitline
mex -v mex_fitline.cpp LFLineFitter.obj LFLineSegment.obj -I.
delete *.obj
else
status=system('uname -a');
if status==0
os='linux';
% make fdcm
mex -v mex_fdcm_detect.cpp ...
LFLineFitter.o LFLineSegment.o DistanceTransform.o ...
EIEdgeImage.o LMDirectionalIntegralDistanceImage.o LMDisplay.o...
LMDistanceImage.o LMLineMatcher.o LMNonMaximumSuppression.o...
MatchingCostMap.o -I.
% make fitline
mex -v mex_fitline.cpp LFLineFitter.o LFLineSegment.o -I.
delete *.o
else
os='unknown';
end
end