Which avisynth sharpening filter should i use on blurry/soft images?
+ Reply to Thread
Results 1 to 18 of 18
-
Images blur for all kinds of reasons and require different treatment. I usually start with the built-in sharpen filter and see if it makes a difference. Trial and error on a short clip is your best bet.
Here's more:
http://avisynth.nl/index.php/External_filters#Sharpeners -
Some filters require YUV input or certain YUV subsampling like YV12. Your jpg is probably YUV encoded, but imagesource will output RGB data. You would need to use ConvertToYV12() or something similar
The new awarpsharp4xx rewrite handles YV24 if you use avisynth 2.6.x . YV24 uses full chroma, so if your source jpg had full chroma (not subsampled), you would have less quality loss. 99% of jpg images are YUV internally ,but you asked about PNG
http://forum.doom9.org/showthread.php?t=171488
There is a jpegsource that can return YUV natively (it also has jpeg reconstruction passes to reduce jpeg artifacts), and FFMS2 will return YUV as well from YUV jpeg's
http://forum.doom9.org/showthread.php?t=170028
The type of "blurriness" determines what filter(s) you might use. For example, for directional motion blurring you might use a deconvolution filter. Generic sharpening won't work as effectively in that scenario -
The images which i open with imagesource() are loaded in the wrong order(flipped), also why are the error messages flipped?
-
i'm using avisynth 2.6 from here http://forum.doom9.org/showthread.php?t=172213. I tried reinstalling avisynth but no change.
-
I opened the .avs file in virtualdub, its the same as in avspmod. Also i installed AviSynth 2.6.0 [May 31st, 2015] but when i type version() in avspmod its showing avisynth build march 31.
-
-
I used flipvertical and fliphorizontal, it didnt work. The image is still flipped in the wrong order.
General
Complete name : C:\Users\xyz\Pictures\My Scans\Scan_Pic0004.jpg
Format : JPEG
File size : 5.11 MiB
Image
Format : JPEG
Width : 2 304 pixels
Height : 3 568 pixels
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Compression mode : Lossy
Stream size : 5.11 MiB (100%)
Last edited by x264; 30th Jan 2016 at 05:46.
-
Mabye it's rotated 180 degrees? Try:
Code:TurnRight() TurnRight()
By the way, you can only sharpen images/video by a small amount. You will not be able to turn a blurry mess into a pristine image. -
Alternatively you may use deconvolution https://en.wikipedia.org/wiki/Deconvolution (blind deconvolution https://en.wikipedia.org/wiki/Blind_deconvolution ) approach.
http://bigwww.epfl.ch/algorithms/deconvolutionlab/
http://rsb.info.nih.gov/ij/download.html
Similar Threads
-
Dehalo and Chroma Sharpening?
By killerteengohan in forum RestorationReplies: 16Last Post: 9th May 2015, 23:51 -
DVD -> MP4 with minor sharpening filter applied?
By arcooke in forum DVD RippingReplies: 1Last Post: 24th Dec 2014, 20:56 -
De-noising and Sharpening Filters
By Metroidn1f in forum Video ConversionReplies: 13Last Post: 25th Jul 2012, 12:54 -
AVIsynth video sharpening???
By tommy2010 in forum Video ConversionReplies: 4Last Post: 20th May 2012, 12:38 -
What is contra sharpening?
By darkdream787 in forum RestorationReplies: 0Last Post: 16th Jan 2012, 11:49