// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Processing.Processors.Transforms
{
///
/// The function implements the Robidoux Sharp algorithm.
///
///
public class RobidouxSharpResampler : IResampler
{
///
public float Radius => 2;
///
public float GetValue(float x)
{
const float B = 0.2620145123990142F;
const float C = 0.3689927438004929F;
return ImageMaths.GetBcValue(x, B, C);
}
}
}