diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 16:55:32 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2006-12-16 16:55:32 +0100 |
commit | 17efd7416571085065695bc8438204587f396e5d (patch) | |
tree | aafae6f16eec2dab8d08e5b7c51a7fac0639e6d5 /src/Stitch.cxx | |
parent | 2aaf6d31566df56d30ee492418562e04732c8059 (diff) |
add from/to option to -s
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r-- | src/Stitch.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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; i<MAX_PICS; i++) { @@ -79,6 +80,10 @@ Stitch::set_output(const char *file, OutputImage *img) { int Stitch::resample(int w, int h, double view_start, double view_end) { + + view_start = view_start * deg2rad; + view_end = view_end * deg2rad; + double step_view = (view_end - view_start) / w; uchar r, g, b; int y_off = h / 2; |