Fix reversed angle factor. Ugh.

This commit is contained in:
Steven Robertson 2012-01-25 12:25:56 -05:00
parent b4132c7cd9
commit a4b482f61a

View File

@ -260,7 +260,7 @@ void bilateral(float4 *dst, float sstd, float cstd,
// Oh, this is ridiculous. But it works!
float factor = spa_coefs[abs(i)] * spa_coefs[abs(j)]
* expf(cscale * cdiff) * dfact
* exp2f(2.0f * (angfact - 1.0f));
* exp2f(2.0f * (-angfact - 1.0f));
weightsum += factor;
out.x += factor * pix.x;