From d96a0ddb1d6713d690b691e91e03e7506b09c70c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Thu, 9 Aug 2007 19:29:23 +0200 Subject: implement visibility command line option --- src/gipfel.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 Use for GPS data.\n" + " -V Set initial visibility.\n" " -u , 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(); -- cgit v1.2.3