C# Class ImageProcessor.Imaging.Interpolation

Provides interpolation routines for resampling algorithms.
ファイルを表示 Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method Description
BiCubicBSplineKernel ( double x ) : double

Returns a bicubic b-spline kernel for the given value. The function implements bicubic kernel developed by Paul Bourke described here

BiCubicKernel ( double x ) : double

Returns a bicubic kernel for the given value. The function implements bicubic kernel W(x) as described on Wikipedia (coefficient a is set to -0.5).

Private Methods

Method Description
Clean ( double x ) : double

Ensures that any passed double is correctly rounded to zero

LanczosKernel3 ( double x ) : double

Returns a Lanczos kernel for the given value. The function implements Lanczos kernel as described on Wikipedia

SinC ( double x ) : double

Gets the result of a sine cardinal function for the given value.

Method Details

BiCubicBSplineKernel() public static method

Returns a bicubic b-spline kernel for the given value. The function implements bicubic kernel developed by Paul Bourke described here
public static BiCubicBSplineKernel ( double x ) : double
x double X value.
return double

BiCubicKernel() public static method

Returns a bicubic kernel for the given value. The function implements bicubic kernel W(x) as described on Wikipedia (coefficient a is set to -0.5).
public static BiCubicKernel ( double x ) : double
x double X value.
return double