From afca29c473ea45488ee628a34c9f8a3fed428d30 Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Thu, 26 Feb 2015 21:28:52 -0800 Subject: [PATCH] Fix a boundary handling but in BiCubicInterpolator. Thanks to Bernhard Zeisl for reporting this. Change-Id: I07fb32c187128bc84868b6f0dd4fabb4a85e1302 --- include/ceres/cubic_interpolation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ceres/cubic_interpolation.h b/include/ceres/cubic_interpolation.h index 79f9c9b5e..8298002d1 100644 --- a/include/ceres/cubic_interpolation.h +++ b/include/ceres/cubic_interpolation.h @@ -322,7 +322,7 @@ class CERES_EXPORT BiCubicInterpolator { array_.GetValue(row + 2, col, p31.data()); array_.GetValue(row + 2, col + 1, p32.data()); } else { - p31 = 2 * p21 - p22; + p31 = 2 * p21 - p11; p32 = 2 * p22 - p12; }