-
Notifications
You must be signed in to change notification settings - Fork 15
/
INSTALL
68 lines (48 loc) · 2.06 KB
/
INSTALL
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
Prerequisite
==================================================
The user needs to have installed:
1. GDAL 1.8+
2. Boost 1.50+
3. RabbitMQ C Client or ZeroMQ
4. Protobuf
5. NASA Vision Workbench from GitHub:
https://github.com/visionworkbench/visionworkbench
built with GDAL support
Please follow those distribution's install guides for installation
instructions.
Installation Instructions
==================================================
Photometry TK uses the CMake build system. These instructions will
assume you only have access to the terminal program 'cmake'. However,
setting configuration options is easier with the 'ccmake' tool.
1. cd PhotometryTK
2. mkdir build
3. cd build
cmake .. -DVISIONWORKBENCH_ROOT:PATH=${YOUR VW INSTALL DIR} \
-DBOOST_ROOT:PATH=${YOUR BOOST INSTALL DIR} \
-DPROTOBUF_ROOT:PATH=${YOUR PROTOBUF INSTALL DIR} \
-DENABLE_RPATHS:BOOL=ON \
-DCMAKE_INSTALL_PREFIX:PATH=${YOUR INSTALLATION DIR}
4. make -j<num cpus>
5. make install
Running unit tests
==================================================
Photometry TK has some unit testing available to insure proper
function. To operate them, change directory to your build directory.
7. make check
Installing and running SfS (shape-from-shading)
==================================================
The SfS program is src/tools/sfs.cc. It depends on ISIS. It can be
compiled by invoking cmake from the build directory:
cmake .. -DENABLE_SFS=TRUE <options as above> <ISIS options>
How to set the ISIS options is described in INSTALL.isis.
Then type 'make'. Once the program is compiled, it can be run as
follows:
export ISISROOT=<your ISIS install dir>
export ISIS3DATA=<your ISIS data dir>
sfs image.cub DEM.tif metadata_dir num_iter
The metadata directory is expected to have files describing the sun
and spacecraft positions.
Sample datasets are included in PhotometryTK/src/photk/tests/. Doing
'make check' will run this program (with just one iteration, normally
around 20-100 are required).