init commit

This commit is contained in:
2025-10-09 09:57:24 +09:00
commit 4d551bd74f
6636 changed files with 1218703 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
namespace AForge.Imaging;
internal static class Interpolation
{
public static double BiCubicKernel(double x)
{
if (x < 0.0)
{
x = 0.0 - x;
}
double result = 0.0;
if (x <= 1.0)
{
result = (1.5 * x - 2.5) * x * x + 1.0;
}
else if (x < 2.0)
{
result = ((-0.5 * x + 2.5) * x - 4.0) * x + 2.0;
}
return result;
}
}