Avoid gaps between box filter kernels.

This commit is contained in:
Jorge Rodriguez 2014-07-24 15:02:39 -07:00
parent 9e726bb3e4
commit 8ac052ac8a

View File

@ -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;