mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-07 02:44:14 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
81c115825b
commit
76b4dfb500
|
@ -235,4 +235,4 @@ Filters comparison table
|
|||
|:data:`Resampling.MKS2013` | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐ |
|
||||
+---------------------------+-------------+-----------+-------------+
|
||||
|:data:`Resampling.MKS2021` | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐ |
|
||||
+---------------------------+-------------+-----------+-------------+
|
||||
+---------------------------+-------------+-----------+-------------+
|
||||
|
|
|
@ -87,7 +87,7 @@ mks_2013_filter(double x) {
|
|||
if (x < 0.5)
|
||||
return 17.0 / 16.0 - 7.0 / 4.0 * pow(x, 2.0);
|
||||
if (x < 1.5)
|
||||
return (1.0 - x) * (7.0/4.0 - x);
|
||||
return (1.0 - x) * (7.0 / 4.0 - x);
|
||||
if (x < 2.5)
|
||||
return -1.0 / 8.0 * pow(x - 5.0 / 2.0, 2.0);
|
||||
return (0.0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user