summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-18 22:55:12 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-18 22:55:12 +0100
commit4004465b2eb11089c689a5ed460c6ff2b919b841 (patch)
tree6da7a101c04fc1b97664be9d21848d36013d1608 /src
parent7fa82e55ecb673165d7eba14e00e9c0479cf980f (diff)
add -r (stitch range) option
Diffstat (limited to 'src')
-rw-r--r--src/gipfel.cxx6
1 files changed, 5 insertions, 1 deletions
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 <datafile> Use <datafile> for GPS data.\n"
" -u <k0>,<k1> Use distortion correction values k0,k1.\n"
" -s Stitch mode.\n"
+ " -r <from>,<to> Stitch range in degrees (e.g. 100.0,200.0).\n"
" -b Use bilinear interpolation for stitching.\n"
" -w <width> Width of result image.\n"
" -h <height> 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();
@@ -407,6 +408,9 @@ int main(int argc, char** argv) {
break;
case 's':
stitch_flag++;
+ break;
+ case 'r':
+ stitch_flag++;
if (optarg && strcmp(optarg, ":")) {
stitch_from = atof(optarg);
if (strchr(optarg, ',')) {