From 7825b006b41e6b0ba601a4de311f98bfbac89607 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Mon, 9 Jan 2012 23:39:07 -0500 Subject: [PATCH] Stamp out pre-echo (hopefully) --- cuburn/code/filtering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuburn/code/filtering.py b/cuburn/code/filtering.py index 2787ba3..7ac50e0 100644 --- a/cuburn/code/filtering.py +++ b/cuburn/code/filtering.py @@ -140,7 +140,7 @@ void blur_density_v(float4 *pixbuf, const float *scratch, den += dsrc[astride*min(astride-1, y+2)] * 0.00135f; float *ddst = reinterpret_cast(&pixbuf[astride * y + x]) + 3; - *ddst = den; + *ddst = min(*ddst, den); } #define W 15 // Filter width (regardless of standard deviation chosen)