template<typename T>
spice::interpolation::bilinear class

Bilinear interpolation between pixels adjacent to x and y.

Template parameters
T type of pixel values

Constructors, destructors, conversion operators

bilinear(image<T> const& source) explicit
Construct a new bilinear interpolation object.

Public functions

auto operator()(float x, float y) -> color<T>
Get the interpolated value at the provided coordinates.

Function documentation

template<typenameT>
spice::interpolation::bilinear<T>::bilinear(image<T> const& source) explicit

Construct a new bilinear interpolation object.

Parameters
source the image to interpolate

template<typenameT>
color<T> spice::interpolation::bilinear<T>::operator()(float x, float y)

Get the interpolated value at the provided coordinates.

Parameters
x
y
Returns color<T>