summaryrefslogtreecommitdiff
path: root/src/Stitch.cxx
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-16 16:56:10 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2006-12-16 16:56:10 +0100
commit2de9f639b5c75112bfd6789bdc51546ef211b926 (patch)
tree5e555241d0ba1620919341776b342efbce5758ca /src/Stitch.cxx
parentd72e0316e07ff23fc4e0c3161eacfad4dd894b68 (diff)
parent17efd7416571085065695bc8438204587f396e5d (diff)
merge stitching option
Diffstat (limited to 'src/Stitch.cxx')
-rw-r--r--src/Stitch.cxx5
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;