summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);