Table of Contents

Struct CubicResampler

Namespace
SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly
SixLabors.ImageSharp.dll

Cubic filters contain a collection of different filters of varying B-Spline and Cardinal values. With these two values you can generate any smoothly fitting (continuious first derivative) piece-wise cubic filter. http://www.imagemagick.org/Usage/filter/#cubic_bc https://www.cs.utexas.edu/~fussell/courses/cs384g-fall2013/lectures/mitchell/Mitchell.pdf

public readonly struct CubicResampler : IResampler
Implements
Inherited Members

Constructors

CubicResampler(float, float, float)

Initializes a new instance of the CubicResampler struct.

public CubicResampler(float radius, float bspline, float cardinal)

Parameters

radius float

The sampling radius.

bspline float

The B-Spline value.

cardinal float

The Cardinal cubic value.

Fields

CatmullRom

The Catmull-Rom filter is a well known standard Cubic Filter often used as a interpolation function. This filter produces a reasonably sharp edge, but without a the pronounced gradient change on large scale image enlargements that a 'Lagrange' filter can produce.

public static readonly CubicResampler CatmullRom

Field Value

CubicResampler

Hermite

The Hermite filter is type of smoothed triangular interpolation Filter, This filter rounds off strong edges while preserving flat 'color levels' in the original image.

public static readonly CubicResampler Hermite

Field Value

CubicResampler

MitchellNetravali

The function implements the Mitchell-Netravali algorithm as described on Wikipedia

public static readonly CubicResampler MitchellNetravali

Field Value

CubicResampler

Robidoux

The function implements the Robidoux algorithm. http://www.imagemagick.org/Usage/filter/#robidoux

public static readonly CubicResampler Robidoux

Field Value

CubicResampler

RobidouxSharp

The function implements the Robidoux Sharp algorithm. http://www.imagemagick.org/Usage/filter/#robidoux

public static readonly CubicResampler RobidouxSharp

Field Value

CubicResampler

Spline

The function implements the spline algorithm. http://www.imagemagick.org/Usage/filter/#cubic_bc

public static readonly CubicResampler Spline

Field Value

CubicResampler

Properties

Radius

public float Radius { get; }

Property Value

float

Methods

ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)

public void ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel> processor) where TPixel : unmanaged, IPixel<TPixel>

Parameters

processor IResamplingTransformImageProcessor<TPixel>

Type Parameters

TPixel

GetValue(float)

public float GetValue(float x)

Parameters

x float

Returns

float