summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-09 19:29:23 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-08-09 19:29:23 +0200
commitd96a0ddb1d6713d690b691e91e03e7506b09c70c (patch)
treebd4c6e8f576e8532704c37740666a85ad468b131
parente235adf3601bd36605ed3510b55e63d8606cbbe0 (diff)
implement visibility command line option
-rw-r--r--src/gipfel.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx
index cbc0923..c5cc216 100644
--- a/src/gipfel.cxx
+++ b/src/gipfel.cxx
@@ -269,6 +269,7 @@ void usage() {
" This must be a string that unambiguously \n"
" matches the name of an entry in the data file.\n"
" -d <file> Use <file> for GPS data.\n"
+ " -V <visibility> Set initial visibility.\n"
" -u <k0>,<k1> Use distortion correction values k0,k1.\n"
" -s Stitch mode.\n"
" -4 Create 16bit output (only with TIFF stitching).\n"
@@ -417,11 +418,12 @@ int main(int argc, char** argv) {
int bicubic_flag = 0, b_16_flag = 0;
double stitch_from = 0.0, stitch_to = 380.0;
double dist_k0 = 0.0, dist_k1 = 0.0, dist_x0 = 0.0;
+ double visibility = 0.07;
char *outpath = "/tmp";
char *export_file = NULL;
err = 0;
- while ((c = getopt(argc, argv, ":?d:v:sw:h:j:t:u:br:4e:")) != EOF) {
+ while ((c = getopt(argc, argv, ":?d:v:sw:h:j:t:u:br:4e:V:")) != EOF) {
switch (c) {
case '?':
usage();
@@ -436,6 +438,9 @@ int main(int argc, char** argv) {
case 'v':
view_point = optarg;
break;
+ case 'V':
+ visibility = atof(optarg);
+ break;
case 's':
stitch_flag++;
break;
@@ -550,6 +555,8 @@ int main(int argc, char** argv) {
scroll->size(gipf->w(), gipf->h());
gipf->load_data(data_file);
+ gipf->set_height_dist_ratio(visibility);
+
scroll->end();
set_values();