Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
21st February 2011, 22:47 | #1 | Link |
Registered User
Join Date: Sep 2010
Location: Argentina
Posts: 24
|
unsharpHQ
UnsharpHQ , v05 (updated)
This is a very strong and fast unsharp mask with some new features. This version is the optimization of the last v03 (also more accurate). UnsharpHQ is a video plugin for Avisytnh 2.5x. REQUIRES * YV12 colorspace input. * SSE3 capable CPU. USAGE UnsharpHQ(int THRESHOLD,float SHARPSTR,float SMOOTH,bool SHOW) PARAMETERS (All parameters are optional). * THRESHOLD: (Default = 20) The value to determine whether or not to sharp a pixel based on the luminance change between their neighbors. Any value >0 can be used. * SHARPSTR : (Default = 4.0) The sharp strength for the pixels to be sharped. Values from 2 to 10 are recommended. * SMOOTH : (Default = 0.5) The smooth strength to pixels not sharped. Use this with 0 if you don't want any smooth, or just leave it with default. * SHOW : (Default = false) The debug or not parameter. Set this to true will show a green video showing the zones to be sharped or not, this is useful to adjust your threshold to your right value. EXAMPLES Unsharphq() #All by default, this is useful in most cases. Unsharphq(20,15.0) #Very strong sharp. Unsharphq(debug=true) #Run in debug mode. x86 binary and source -> https://www.mediafire.com/download/1...harpHQ_v05.zip Last edited by list; 19th January 2014 at 14:56. Reason: update |
22nd February 2011, 00:16 | #3 | Link |
Registered User
Join Date: Sep 2010
Location: Argentina
Posts: 24
|
sure, here it is http://www.mediafire.com/download.php?26622393msbo69v
Last edited by list; 22nd February 2011 at 11:58. |
22nd February 2011, 01:05 | #4 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,391
|
So, the HQ mode is using either some sort of edge-masking, or it surpresses very-small differences. I noticed that some "holes" can appear with HQ .... when there is a very thin line at a shallow angle, then some single pixels don't get sharpened, but their neighbors do.
On a sample that intentionally was blurred very strongly, the most pleasing result (for a given strength setting) to my eyes was Merge( unsharpHQ(str=50,HQ=false), unsharpHQ(str=50,HQ=true) )
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
15th June 2011, 18:05 | #14 | Link |
Registered User
Join Date: Nov 2006
Posts: 773
|
Trying the V0.4 now, getting an error
Merge( unsharpHQ(str=50,HQ=false), unsharpHQ(str=50,HQ=true) ) >>> UnsharpHQ does not have a named argument "HQ" Nice eh ? Solution please Last edited by Mounir; 15th June 2011 at 18:09. |
27th January 2014, 22:25 | #16 | Link |
Registered User
Join Date: Sep 2010
Location: Argentina
Posts: 24
|
Version 05 released with source.
__________________
UnsharpHQ Avisynth plugin |
18th July 2014, 16:23 | #17 | Link |
Registered User
Join Date: Oct 2013
Location: France - Paris
Posts: 21
|
Hello list!
Thanks for this great update! I remarked a small bug with this new version. On the image frame, there is "double contour" on the horizontal lower part. I tried with a very small sharp but the problem is still present. If you could correct this, it would be amazing! Thanks! Last edited by Francois76l; 18th July 2014 at 16:23. Reason: subscription |
18th July 2014, 22:03 | #18 | Link | |
Registered User
Join Date: Sep 2010
Location: Argentina
Posts: 24
|
Quote:
I can not give a new release right now. Anyway you can manually fix it adding borders. An example script adding overlap in the left and right side would look like this: Code:
#right overlay AddBorders(2,0,0,0) overlay(last,x=-1)overlay(last,x=-1) #left overlay AddBorders(0,0,2,0) overlay(last,x=1)overlay(last,x=1) #apply the filter UnsharpHQ(20,99,0) #cut off borders crop(2,0,-2,0)
__________________
UnsharpHQ Avisynth plugin |
|
6th March 2021, 21:19 | #20 | Link |
Registered User
Join Date: Mar 2012
Location: Texas
Posts: 1,666
|
If it's not a lot of trouble, can someone compile a 64-bit version of UnsharpHQmod? I opened an issue on GitHub but it may be the author is no longer active.
Here's some of the info that is on GitHub but translated: Added and changed parameters Code:
MODE: 0 - default(equivalent to previous mode) 1 - addded in mod(threshold, sharpstr, smooth parameter effects are little bit changed in this mode), at this mode, SMOOTH=0 is good choice! SHOW: may not work... I don't know how to use it properly, so HBD doesn't support it properly, only when opt=1. OPT: optimization - 0=auto, 1=C, 2:SSE2, 3:AVX2 Code:
mod 200816 Changed to Avisynth2.6+. HBD (8-16 YUV only) support + AVX2 optimization, opt added to parameters. Intrinsic asm. mod 190119 Fixed loop range. Changed correction weights from 4 to 8 (this will slightly change the output even in mode0) Modify correction weights in mode1 so that they become 1 when the difference between the center point and the neighborhood of 8 is THRESHOLD. mod 181224 Added MODE=1, which modifies something that seems to be wrong (MODE=0 is compatible with the previous version). Note that MODE1 is not parameter compatible with the previous version. Don't worry about errors related to MODE, as I didn't do it properly. Also, I just rebuilt it with VS2017 and it's 10% faster for some reason. |
Tags |
unsharphq filter avisynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|