Struct BicubicResampler
The function implements the bicubic kernel algorithm W(x) as described on Wikipedia A commonly used algorithm within image processing that preserves sharpness better than triangle interpolation.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Transforms
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct BicubicResampler : IResampler
Properties
| Edit this page View SourceRadius
Gets the radius in which to sample pixels.
Declaration
public float Radius { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel>)
Applies a transformation upon an image.
Declaration
public void ApplyTransform<TPixel>(IResamplingTransformImageProcessor<TPixel> processor) where TPixel : unmanaged, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
IResamplingTransformImageProcessor<TPixel> | processor | The transforming image processor. |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel format. |
GetValue(float)
Gets the result of the interpolation algorithm.
Declaration
public float GetValue(float x)
Parameters
Type | Name | Description |
---|---|---|
float | x | The value to process. |
Returns
Type | Description |
---|---|
float | The float |