Browse Source

Bicubic comment

Former-commit-id: ec9b6c9a7f64ff089245421b95215ea3eec621be
Former-commit-id: 9c0bf865af4b584eb7386ae85a75e7937efbd43d
Former-commit-id: 69ca3cdf66e446ee9d72766f910eddda4fd1387d
af/merge-core
James Jackson-South 10 years ago
parent
commit
3b939ba06b
  1. 2
      src/ImageProcessorCore/Samplers/Resamplers/BicubicResampler.cs

2
src/ImageProcessorCore/Samplers/Resamplers/BicubicResampler.cs

@ -30,10 +30,12 @@ namespace ImageProcessorCore
if (x <= 1F)
{
// Below simplified result = ((a + 2F) * (x * x * x)) - ((a + 3F) * (x * x)) + 1;
result = (((1.5F * x) - 2.5F) * x * x) + 1;
}
else if (x < 2F)
{
// Below simplified result = (a * (x * x * x)) - ((5F * a) * (x * x)) + ((8F * a) * x) - (4F * a);
result = (((((a * x) + 2.5F) * x) - 4) * x) + 2;
}

Loading…
Cancel
Save