From 44a826508a0e8de6724c8d4828b31b671b25bf44 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Thu, 5 Jul 2012 00:23:26 -0700 Subject: [PATCH] Eliminate the grid effect. I actually quite like it: it adds a certain crunch to the image. But it's an artifact. If the user wants more noise, that should probably belong in a true postprocessing filter. --- cuburn/filters.py | 6 ++++++ cuburn/genome/specs.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cuburn/filters.py b/cuburn/filters.py index 91313b9..f55bfbd 100644 --- a/cuburn/filters.py +++ b/cuburn/filters.py @@ -135,6 +135,12 @@ class SmearClip(Filter, ClsMod): tref.set_address_2d(fb.d_back, dsc, 16 * dim.astride) launch2('full_blur', self.mod, stream, dim, fb.d_side, i32(3), i32(0), texrefs=[tref]) + tref.set_address_2d(fb.d_side, dsc, 16 * dim.astride) + launch2('full_blur', self.mod, stream, dim, + fb.d_back, i32(0), i32(0), texrefs=[tref]) + tref.set_address_2d(fb.d_back, dsc, 16 * dim.astride) + launch2('full_blur', self.mod, stream, dim, + fb.d_side, i32(1), i32(0), texrefs=[tref]) launch2('smearclip', self.mod, stream, dim, fb.d_front, fb.d_side, f32(gam-1), lin, lingam) diff --git a/cuburn/genome/specs.py b/cuburn/genome/specs.py index d2b7c3a..7f8f9e3 100644 --- a/cuburn/genome/specs.py +++ b/cuburn/genome/specs.py @@ -52,7 +52,7 @@ filters = ( , 'curve': scalespline(0.6, d='Power of filter radius with density') } , 'haloclip': {} - , 'smearclip': {'width': scalespline(1, d='Spatial stdev of filter')} + , 'smearclip': {'width': scalespline(0.7, d='Spatial stdev of filter')} , 'logscale': {'brightness': scalespline(4, d='Log-scale brightness')} })