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
floatThe sampling radius.
bspline
floatThe B-Spline value.
cardinal
floatThe 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
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
MitchellNetravali
The function implements the Mitchell-Netravali algorithm as described on Wikipedia
public static readonly CubicResampler MitchellNetravali
Field Value
Robidoux
The function implements the Robidoux algorithm. http://www.imagemagick.org/Usage/filter/#robidoux
public static readonly CubicResampler Robidoux
Field Value
RobidouxSharp
The function implements the Robidoux Sharp algorithm. http://www.imagemagick.org/Usage/filter/#robidoux
public static readonly CubicResampler RobidouxSharp
Field Value
Spline
The function implements the spline algorithm. http://www.imagemagick.org/Usage/filter/#cubic_bc
public static readonly CubicResampler Spline
Field Value
Properties
Radius
public float Radius { get; }
Property Value
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