View Full Version : SmartDeblur port for avisynth?
travolter
23rd October 2012, 19:36
I wonder if exist already a port of this SmartDeblur
http://yuzhikov.com/articles/BlurredImagesRestoration1.htm
I always used sharpeners as opposite to blur... but I wonder if exist any deblur filter similar as this smartdeblur for avisynth
TheProfileth
24th October 2012, 20:43
Well in theory it seems entirely possible, though you probably wouldn't want to use the 500 iterations that is default with the "high quality" mode. It would be interesting if someone was to go and script this, though a viable substitute for the gaussian blur method could be done by using the dither_resize16's internal kernel inversion while using a gaussian kernel. You can even force it to function without changing height by setting fv and fh to -1 and then setting a1 to an approximate value equivalent to the blur.
Here is a very basic and quickly put together example
input=last
dither_convert_8_to_16
dither_resize16(input.width(),input.height(),invks=true,kernel="gauss",a1=25,invkstaps=4,fv=-1,fh=-1,u=1,v=1)
ditherpost(mode=0,u=1,v=1)
mergechroma(input)
matfra
31st October 2012, 18:30
Is there a way to add more sharpening to this script ?
TheProfileth
5th November 2012, 22:14
Is there a way to add more sharpening to this script ?
You could just use the internal kernel inversion which seems to work pretty well (a bit too strong in most of my cases but yeah)
input=last
dither_convert_8_to_16
smoothgrad(thr=0.4,radius=2,elast=3.5,u=2,v=2)
Dither_resize16(1280,720,invks=true,kernel="gauss",a1=20,invkstaps=6,u=2,v=2)
smoothgrad(thr=0.25,radius=1,elast=4,u=2,v=2)
ditherpost(mode=0)
mergechroma(input.spline36resize(1280,720))
The smoothgrad calls are to help dampen the extra noise that can get created but are very minimal. Again to increase sharpening lower a1. The decreases should be a bit more drastic now.
dadix
21st November 2012, 19:41
I test this script (SmartDeblur) and these are the results.
before:
http://s7.postimage.org/gmiavnriv/20110428172808_dad_motion_blur.jpg (http://postimage.org/image/gmiavnriv/)
after:
http://s7.postimage.org/yx3lx4npz/Capture.jpg (http://postimage.org/image/yx3lx4npz/)
settings for this picture:
radius:24.3
smooth:27%
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.