View Full Version : Sharpen Shake Reduction
There is a filter for Avisynth Similar to sharpen shake reduction of Photoshop?
Motenai Yoda
23rd May 2016, 13:16
I don't know if there is such a filter, but you can try generating a motionblur(red) clip and subtract difference
something like
function motionsharp(clip c, int "strength")
{
strength = Default(strength, 15)
super = c.MSuper()
backward_vectors = MAnalyse(super, isb = true)
forward_vectors = MAnalyse(super, isb = false)
mblurred = c.MFlowBlur(super, backward_vectors, forward_vectors, blur=Strength)
return mt_makediff(c,mt_makediff(mblurred,c,u=3,v=3),u=3,v=3)
}
feisty2
23rd May 2016, 13:56
shake -> temporal feature -> video (image sequence)
photoshop -> picture (single image frame)
???
raffriff42
23rd May 2016, 13:58
Select Filter > Sharpen > Shake Reduction.
Photoshop automatically analyzes the region of the image best suited for shake reduction, determines the nature of the blur, and extrapolates the appropriate corrections to the entire image.
Sounds like SmartDeblur:
http://smartdeblur.net/
Restore Motion Blur
Even cams with optical stabilizer sometimes produce blurry images. Thanks to automatic shake pattern analysis you can restore lost details of the picture literally in one click.
EDIT Focus Magic too:
http://www.focusmagic.com/
EDIT the above are standalone applications. For AviSynth, you could try this filter:
http://www.avisynth.nl/users/vcmohan/FQSharp/FQRestore.html
(deblurring was previously discussed here (http://forum.doom9.org/showthread.php?t=173035))
Thanks, but I can not open nor FQRestore nor motionsharp
LoadPlugin("D:\Filtri\LoadDll\LoadDll.dll")
LoadCPlugin("D:\Filtri\ffms2-2.22-msvc\x86\ffms2.dll")
LoadDll("D:\Filtri\libfftw3f-3\libfftw3f-3.dll")
LoadDll("D:\Filtri\fftw3\fftw3.dll")
LoadPlugin("D:\Filtri\FQSharp\FQSharp.dll")
##
Import("D:\Filtri\MotionSharp\motionsharp.avsi")
####
AviSource("D:\rgb1.avi").ConvertToYV12(Interlaced=False)
#FQRestore()
motionsharp()
ConvertToRGB(Interlaced=False)
http://www.awesomescreenshot.com/image/1270903/8c7cbdd9fd0e6cec3332a2bcd89884b9
StainlessS
23rd May 2016, 20:46
Byme, I am unclear on what you cannot do,
Your graphic says "Unable to Open D:\FQrestore.avs",
Where is it that you are trying to open such a file ?
(Perhaps the motionsharp.avsi file is trying to load another avs file but from unknown location ?)
EDIT: Red is rubbish, motionsharp.avsi given previously does not load any avs file.
raffriff42
24th May 2016, 00:19
For error reports, instead of a screen shot, use VirtualDub's View / Log, right-click, Copy to clipboard.
libfftw3f-3.dll should be on the Windows PATH, and LoadDLL should probably not be used.
You can add a new folder to the Path - see here (http://www.computerhope.com/issues/ch000549.htm).
I can open a file with FQRestore, but the results look very strange and I don't know how to fix them.
LoadPlugin(pathBase + "FQ\FQSharp.dll")
#Last = something
Crop(0, 0, Width - Width % 4, Height - Height % 4) ## mod4 required
SeparateFields ## field based required
FQRestore(line=true, x=6, y=2, fr=20, wn=0.05, scale=0.45) ## no ides what I'm doing
V.C. Mohan, help us!
thank you raffriff. I used assumefieldbased() before FQRestore
I did not understand however what dll it take to motionsharp.....
StainlessS
24th May 2016, 16:59
MotionSharp.avs requires MVtools v2.0 and MaskTools.
vcmohan
27th May 2016, 12:18
V.C. Mohan, help us!
The x and y should correspond to motion vector centered over origin. If they are different to those actually present the result will be strange.Try F2QTest of FFTQuiver plugin and may find the blur coordinates. Also be careful that in Frequency domain horizontal expresses as vertical and vice versa.
Or try defaults and if improves repeat .
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.