Fix a boundary handling but in BiCubicInterpolator. Thanks to Bernhard Zeisl for reporting this. Change-Id: I07fb32c187128bc84868b6f0dd4fabb4a85e1302
diff --git a/include/ceres/cubic_interpolation.h b/include/ceres/cubic_interpolation.h index 79f9c9b..8298002 100644 --- a/include/ceres/cubic_interpolation.h +++ b/include/ceres/cubic_interpolation.h
@@ -322,7 +322,7 @@ 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; }