commit | afca29c473ea45488ee628a34c9f8a3fed428d30 | [log] [tgz] |
---|---|---|
author | Sameer Agarwal <sameeragarwal@google.com> | Thu Feb 26 21:28:52 2015 -0800 |
committer | Sameer Agarwal <sameeragarwal@google.com> | Thu Feb 26 21:37:04 2015 -0800 |
tree | 3ac76dc9fc42f07b82d8a97dfbf724f6bd1add0c | |
parent | c78ccc6579c6793a68eccf9367de04a60bd98eec [diff] |
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; }