summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-03-17 21:54:28 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-03-17 21:54:28 +0100
commit18ace785b31de59e5d60eb4507e4e991027ec795 (patch)
treebcf2c8bacc50477e88d65047d3e1d124e018eb87
parent759799defe3e388bc9ec7255c79895138194e4fa (diff)
correct vignetting + color correction case
-rw-r--r--src/Stitch.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Stitch.cxx b/src/Stitch.cxx
index 7ed97a0..2ed72fe 100644
--- a/src/Stitch.cxx
+++ b/src/Stitch.cxx
@@ -192,8 +192,8 @@ Stitch::vignette_calib(GipfelWidget::sample_mode_t m,
}
if (p2 == 0) {
// no color correction for first image
- gsl_matrix_set(X, n_samples, 0, -c2d[l] * a1 * a1);
- gsl_matrix_set(X, n_samples, 1, -c2d[l] * a1 *a1 * a1 * a1);
+ gsl_matrix_set(X, n_samples, 0, -c2d[l] * a2 * a2);
+ gsl_matrix_set(X, n_samples, 1, -c2d[l] * a2 *a2 * a2 * a2);
gsl_vector_set(yv, n_samples, c2d[l]);
} else {
gsl_matrix_set(X, n_samples, 0, - c2d[l] * a2 * a2);