/
Makefile.am
224 lines (196 loc) · 8.1 KB
/
Makefile.am
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# __BEGIN_LICENSE__
# Copyright (C) 2006-2011 United States Government as represented by
# the Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# __END_LICENSE__
########################################################################
# sources
########################################################################
# For simplicity, these example applications depend on exceptions
if ENABLE_EXCEPTIONS
include_HEADERS = Common.h
libvwTools_la_SOURCES = Common.cc
libvwTools_la_LIBADD = @PKG_TOOLS_LIBS@
libvwTools_la_LDFLAGS = @VW_LDFLAGS@ $(LIBTOOL_LIB_FLAGS)
lib_LTLIBRARIES = libvwTools.la
COMMON_LIBS = libvwTools.la
noinst_LIBRARIES =
# Command-line tools based on the Camera module
if MAKE_MODULE_CAMERA
camera_progs = print_exif bayer
# Prints out an image's EXIF headers
print_exif_SOURCES = print_exif.cc
print_exif_LDADD = @PKG_CAMERA_LIBS@ $(COMMON_LIBS)
# Applies an inverse Bayer filter to a raw camera image
bayer_SOURCES = bayer.cc
bayer_LDADD = @PKG_CAMERA_LIBS@ $(COMMON_LIBS)
endif
# Command-line tools based on the Cartography module
if MAKE_MODULE_CARTOGRAPHY
# Converts a DEM to a simple shaded-relief map
hillshade_SOURCES = hillshade.cc
hillshade_LDADD = @PKG_CARTOGRAPHY_LIBS@ $(COMMON_LIBS)
# Converts a DEM to a simple color map
colormap_SOURCES = colormap.cc
colormap_LDADD = @PKG_CARTOGRAPHY_LIBS@ $(COMMON_LIBS)
# Calculates aspect and gradient angle for DEM
slopemap_SOURCES = slopemap.cc
slopemap_LDADD = @PKG_CARTOGRAPHY_LIBS@ $(COMMON_LIBS)
# Adds or adjusts an image's georeferencing information
georef_SOURCES = georef.cc
georef_LDADD = @PKG_CARTOGRAPHY_LIBS@ $(COMMON_LIBS)
# Fades an image's alpha channel for blending
grassfirealpha_SOURCES = grassfirealpha.cc
grassfirealpha_LDADD = @PKG_CARTOGRAPHY_LIBS@ $(COMMON_LIBS)
if HAVE_PKG_GDAL
cart_gdal_progs = georef hillshade
endif
cartography_progs = colormap $(cart_gdal_progs) slopemap grassfirealpha
endif
# Command-line tools based on the HDR module
if MAKE_MODULE_HDR
hdr_progs = hdr_tonemap hdr_merge
# Merge multiple source images into an HDR image
hdr_merge_SOURCES = hdr_merge.cc
hdr_merge_LDADD = @PKG_HDR_LIBS@ $(COMMON_LIBS)
# Map an HDR image into an 8-bit dynamic range
hdr_tonemap_SOURCES = hdr_tonemap.cc
hdr_tonemap_LDADD = @PKG_HDR_LIBS@ $(COMMON_LIBS)
endif
# Command-line tools based on the InterestPoint module
if MAKE_MODULE_INTERESTPOINT
if HAVE_PKG_LAPACK
interestpoint_progs = ipalign ipmatch ipfind learnpca
#
ipfind_SOURCES = ipfind.cc
ipfind_LDADD = @PKG_INTERESTPOINT_LIBS@ $(COMMON_LIBS)
#
ipalign_SOURCES = ipalign.cc
ipalign_LDADD = @PKG_INTERESTPOINT_LIBS@ $(COMMON_LIBS)
#
ipmatch_SOURCES = ipmatch.cc
ipmatch_LDADD = @PKG_INTERESTPOINT_LIBS@ $(COMMON_LIBS)
#
learnpca_SOURCES = learnpca.cc
learnpca_LDADD = @PKG_INTERESTPOINT_LIBS@ $(COMMON_LIBS)
#
endif
endif
# Command-line tools based on the Mosaic module
if MAKE_MODULE_MOSAIC
mosaic_progs = blend
# Blends multiple images into a composite
blend_SOURCES = blend.cc
blend_LDADD = @PKG_MOSAIC_LIBS@ $(COMMON_LIBS)
endif
# Command-line tools based on the Cartography and Mosaic modules
if MAKE_MODULE_CARTOGRAPHY
if MAKE_MODULE_MOSAIC
if HAVE_PKG_GDAL
cart_mos_progs = image2qtree geoblend image2toast
# Generates a quadtree of some sort from a georeferenced image
image2qtree_SOURCES = image2qtree.cc
image2qtree_ARCHIVES = libimage2qtree_grayau8.a libimage2qtree_grayau16.a \
libimage2qtree_grayai16.a libimage2qtree_grayaf32.a \
libimage2qtree_rgbau8.a libimage2qtree_rgbau16.a \
libimage2qtree_rgbai16.a libimage2qtree_rgbaf32.a
image2qtree_LDADD = $(image2qtree_ARCHIVES) @PKG_CARTOGRAPHY_LIBS@ \
@PKG_MOSAIC_LIBS@ $(COMMON_LIBS)
# The many archive files are to help speed compile times
noinst_LIBRARIES += $(image2qtree_ARCHIVES)
libimage2qtree_grayau8_a_SOURCES = image2qtree_help.cc
libimage2qtree_grayau8_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelGrayA -DCHANNEL_TYPE=uint8
libimage2qtree_grayau16_a_SOURCES = image2qtree_help.cc
libimage2qtree_grayau16_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelGrayA -DCHANNEL_TYPE=uint16
libimage2qtree_grayai16_a_SOURCES = image2qtree_help.cc
libimage2qtree_grayai16_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelGrayA -DCHANNEL_TYPE=int16
libimage2qtree_grayaf32_a_SOURCES = image2qtree_help.cc
libimage2qtree_grayaf32_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelGrayA -DCHANNEL_TYPE=float32
libimage2qtree_rgbau8_a_SOURCES = image2qtree_help.cc
libimage2qtree_rgbau8_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelRGBA -DCHANNEL_TYPE=uint8
libimage2qtree_rgbau16_a_SOURCES = image2qtree_help.cc
libimage2qtree_rgbau16_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelRGBA -DCHANNEL_TYPE=uint16
libimage2qtree_rgbai16_a_SOURCES = image2qtree_help.cc
libimage2qtree_rgbai16_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelRGBA -DCHANNEL_TYPE=int16
libimage2qtree_rgbaf32_a_SOURCES = image2qtree_help.cc
libimage2qtree_rgbaf32_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelRGBA -DCHANNEL_TYPE=float32
# Creates a blended composite from multiple georeferenced images
geoblend_SOURCES = geoblend.cc
geoblend_ARCHIVES = libgeoblend_gray.a libgeoblend_graya.a \
libgeoblend_rgb.a libgeoblend_rgba.a
geoblend_LDADD = $(geoblend_ARCHIVES) @PKG_CARTOGRAPHY_LIBS@ \
@PKG_MOSAIC_LIBS@ $(COMMON_LIBS)
# The many archive files are to help speed compile times and to lower
# the overall memory requirement during compiling.
noinst_LIBRARIES += $(geoblend_ARCHIVES)
libgeoblend_gray_a_SOURCES = geoblend_help.cc
libgeoblend_gray_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelGray
libgeoblend_graya_a_SOURCES = geoblend_help.cc
libgeoblend_graya_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelGrayA
libgeoblend_rgb_a_SOURCES = geoblend_help.cc
libgeoblend_rgb_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelRGB
libgeoblend_rgba_a_SOURCES = geoblend_help.cc
libgeoblend_rgba_a_CPPFLAGS = $(AM_CPPFLAGS) -DPIXEL_TYPE=PixelRGBA
# Creates a TOAST quadtree from multiple georeferenced images
image2toast_SOURCES = image2toast.cc
image2toast_LDADD = @PKG_CARTOGRAPHY_LIBS@ @PKG_MOSAIC_LIBS@ $(COMMON_LIBS)
endif
endif
endif
# Command-line tools based on the Stereo module
if MAKE_MODULE_STEREO
if MAKE_MODULE_INTERESTPOINT
stereo_progs = correlate
# Apply the block stereo correlator to two images, producing a disparity map
correlate_SOURCES = correlate.cc
correlate_LDADD = @PKG_STEREO_LIBS@ @PKG_INTERESTPOINT_LIBS@ $(COMMON_LIBS)
endif
endif
# Command-line tools based on the GPU module
if MAKE_MODULE_GPU
gpu_progs = gpu_correlate
# A GPU-based version of the Stereo correlator
gpu_correlate_SOURCES = gpu_correlate.cc
gpu_correlate_LDADD = @PKG_GPU_LIBS@ $(COMMON_LIBS)
endif
# Bundle adjustment test programs
if MAKE_MODULE_CAMERA
if MAKE_MODULE_STEREO
if MAKE_MODULE_INTERESTPOINT
if MAKE_MODULE_BUNDLEADJUSTMENT
batest_progs = ba_test make_ba_test_data
ba_test_SOURCES = ba_test.cc
ba_test_LDADD = @PKG_BUNDLEADJUSTMENT_LIBS@ $(COMMON_LIBS)
make_ba_test_data_SOURCES = make_ba_test_data.cc
make_ba_test_data_LDADD = @PKG_BUNDLEADJUSTMENT_LIBS@ $(COMMON_LIBS)
endif
endif
endif
endif
# Contour generation program
if HAVE_PKG_CAIROMM
contourgen_progs = contourgen
contourgen_SOURCES = contour.cpp FitCurves.cpp contourgen.cc contour.h
contourgen_CPPFLAGS = @VW_CPPFLAGS@ @PKG_CAIROMM_CPPFLAGS@
contourgen_LDADD = $(COMMON_LIBS) @PKG_CAIROMM_LIBS@
endif
if MAKE_MODULE_MOSAIC
doc_generate_progs = doc-generate
doc_generate_SOURCES = doc-generate.cc
doc_generate_LDADD = @PKG_VW_LIBS@ @PKG_MOSAIC_LIBS@
endif
bin_PROGRAMS = $(camera_progs) $(cartography_progs) $(hdr_progs) \
$(interestpoint_progs) $(mosaic_progs) \
$(cart_mos_progs) $(stereo_progs) $(gpu_progs) \
$(contourgen_progs)
noinst_PROGRAMS = $(doc_generate_progs) $(batest_progs)
dist_noinst_SCRIPTS = ba_unit_test run_ba_tests
endif
########################################################################
# general
########################################################################
AM_CPPFLAGS = @VW_CPPFLAGS@
AM_LDFLAGS = @VW_LDFLAGS@
EXTRA_DIST = run_ba_tests_lib ba_test.cfg.example ba_test_plan.txt.example
includedir = $(prefix)/include/vw/tools
include $(top_srcdir)/config/rules.mak