diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 18:57:02 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 18:57:02 +0100 |
commit | e6ce5c34e610f27a6b0f7810918bf638c49c72d7 (patch) | |
tree | 026754ba96f4a3a8efc2bd6ca5b2347c329e198d /src/gipfel.cxx | |
parent | ca4c449ba9f3a40f8ac2c79a48f3d31144a1fafe (diff) |
various fixes
Diffstat (limited to 'src/gipfel.cxx')
-rw-r--r-- | src/gipfel.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gipfel.cxx b/src/gipfel.cxx index 3f6bb08..de5d748 100644 --- a/src/gipfel.cxx +++ b/src/gipfel.cxx @@ -324,7 +324,7 @@ int main(int argc, char** argv) { char *view_point = NULL; int err, bflag = 0, dflag = 0, my_argc; int stitch_flag = 0, stitch_w = 2000, stitch_h = 500; - int jpeg_flag = 0, tiff_flag = 0; + int jpeg_flag = 0, tiff_flag = 0, distortion_flag = 0; double stitch_from = 0.0, stitch_to = 380.0; double dist_k0 = 0.0, dist_k1 = 0.0; char *outpath; @@ -354,6 +354,7 @@ int main(int argc, char** argv) { } break; case 'u': + distortion_flag++; if (optarg && strcmp(optarg, ":")) { dist_k0 = atof(optarg); if (strchr(optarg, ',')) { @@ -429,7 +430,10 @@ int main(int argc, char** argv) { control_win->label(img_file); } - gipf->set_distortion_params(dist_k0, dist_k1); + if (distortion_flag) { + gipf->set_distortion_params(dist_k0, dist_k1); + } + view_win->size(gipf->w(), gipf->h()); scroll->size(gipf->w(), gipf->h()); |