Avoid gaps between box filter kernels.
This commit is contained in:
parent
9e726bb3e4
commit
8ac052ac8a
@ -197,7 +197,7 @@ typedef struct
|
|||||||
|
|
||||||
float stbr__filter_nearest(float x)
|
float stbr__filter_nearest(float x)
|
||||||
{
|
{
|
||||||
if (fabs(x) < 0.5)
|
if (fabs(x) <= 0.5)
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user