From 4004465b2eb11089c689a5ed460c6ff2b919b841 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 18 Dec 2006 22:55:12 +0100 Subject: add -r (stitch range) option --- src/gipfel.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 7cfd162..bb58586 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -253,6 +253,7 @@ void usage() { " -d Use for GPS data.\n" " -u , Use distortion correction values k0,k1.\n" " -s Stitch mode.\n" + " -r , Stitch range in degrees (e.g. 100.0,200.0).\n" " -b Use bilinear interpolation for stitching.\n" " -w Width of result image.\n" " -h Height of result image.\n" @@ -393,7 +394,7 @@ int main(int argc, char** argv) { err = 0; - while ((c = getopt(argc, argv, ":?d:v:s:w:h:j:t:u:b")) != EOF) { + while ((c = getopt(argc, argv, ":?d:v:sw:h:j:t:u:br:")) != EOF) { switch (c) { case '?': usage(); @@ -406,6 +407,9 @@ int main(int argc, char** argv) { view_point = optarg; break; case 's': + stitch_flag++; + break; + case 'r': stitch_flag++; if (optarg && strcmp(optarg, ":")) { stitch_from = atof(optarg); -- cgit v1.2.3