From 17efd7416571085065695bc8438204587f396e5d Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 16 Dec 2006 16:55:32 +0100 Subject: add from/to option to -s --- src/Stitch.cxx | 5 +++++ src/gipfel.cxx | 26 +++++++++++++++++++------- 2 files changed, 24 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Stitch.cxx b/src/Stitch.cxx index f45bda4..d749aff 100644 --- a/src/Stitch.cxx +++ b/src/Stitch.cxx @@ -15,6 +15,7 @@ #include "Stitch.H" static double pi_d = asin(1.0) * 2.0; +static double deg2rad = pi_d / 180.0; Stitch::Stitch() { for (int i=0; iset_output((OutputImage*) new JPEGOutputImage(path, 90)); - st->resample(stitch_w, stitch_h, 0.0, 7.0); + st->resample(stitch_w, stitch_h, from, to); } else if (type == STITCH_TIFF) { @@ -462,7 +474,7 @@ static int stitch(int stitch_w, int stitch_h, int type, const char *path, int ar st->set_output(argv[i], (OutputImage*) new TIFFOutputImage(buf)); } - st->resample(stitch_w, stitch_h, 0.0, 7.0); + st->resample(stitch_w, stitch_h, from, to); } else { win = new Fl_Window(0,0, stitch_w, stitch_h); @@ -473,7 +485,7 @@ static int stitch(int stitch_w, int stitch_h, int type, const char *path, int ar win->resizable(scroll); win->show(0, argv); st->set_output((OutputImage*) img); - st->resample(stitch_w, stitch_h, 0.0, 7.0); + st->resample(stitch_w, stitch_h, from, to); img->redraw(); Fl::run(); } -- cgit v1.2.3