2013-11-03 14:46:39 +00:00
|
|
|
#include "Interpolation.h"
|
|
|
|
|
2013-11-17 21:36:18 +00:00
|
|
|
double Interpolation::bicubic(double stencil[16], double x, double y)
|
2013-11-03 14:46:39 +00:00
|
|
|
{
|
2013-11-17 21:36:18 +00:00
|
|
|
double buf_cubic_y[4];
|
|
|
|
|
|
|
|
buf_cubic_y[0] = Interpolation::cubic(stencil, x);
|
|
|
|
buf_cubic_y[1] = Interpolation::cubic(stencil + 4, x);
|
|
|
|
buf_cubic_y[2] = Interpolation::cubic(stencil + 8, x);
|
|
|
|
buf_cubic_y[3] = Interpolation::cubic(stencil + 12, x);
|
|
|
|
|
|
|
|
return Interpolation::cubic(buf_cubic_y, y);
|
2013-11-03 14:46:39 +00:00
|
|
|
}
|