UnsharpHQ

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(External Links: add link)
(UnsharpHQ mod)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{FilterCat4|External_filters|Plugins|Restoration_filters|Sharpeners}}
+
{{FilterCat6|External_filters|Plugins|Plugins_x64|Restoration_filters|Sharpeners|Deep_color_tools}}
 
{{Filter3
 
{{Filter3
| list
+
|1=list
| v0.5
+
|2=mod 210309
| [http://web.archive.org/web/20160302123821/https://filetea.me/t1sl65PsDLsT0mXMZL0s14xEg/dl UnsharpHQ_v05.zip]
+
|3=[https://web.archive.org/web/20210815173338if_/https://files.videohelp.com/u/223002/UnsharpHQmod_dacebe3_fp.7z UnsharpHQmod_dacebe3_fp.7z]
| Sharpeners
+
|4=Sharpeners
| [http://www.gnu.org/licenses/gpl-3.0.txt GPLv3]
+
|5=[https://www.gnu.org/licenses/gpl-3.0.txt GPLv3]
|6=[http://forum.doom9.org/showthread.php?t=159637 Doom9 Thread]}}
+
|6=[https://forum.doom9.org/showthread.php?t=159637 Doom9 Thread]}}
  
 
== Description ==
 
== Description ==
Line 12: Line 12:
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
* AviSynth 2.5.8 or later
+
* [x86]: [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.6 or greater]
 +
* [x64]: [[AviSynth+]]
 
* [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
 
* [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
* Supported color formats: [[YV12]]
+
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]]
<br>
+
**AviSynth+: all [[planar]] YUV formats (8/10/12/14/16-bit) are supported.
* [[SSE2]] capable CPU
+
* [http://www.microsoft.com/en-us/download/details.aspx?id=5638 Microsoft Visual C++ 2005 Redistributable Package (<tt>x86</tt>)]
+
 
<br>
 
<br>
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|UnsharpHQ (''clip'', ''int'' "THRESHOLD", ''float'' "SHARPSTR", ''float'' "SMOOTH", ''bool'' "SHOW")}}
+
:{{Template:FuncDef|UnsharpHQ (''clip'', ''int'' "THRESHOLD", ''float'' "SHARPSTR", ''float'' "SMOOTH", ''bool'' "SHOW", ''int'' "MODE", ''int'' "OPT")}}
 
<br>
 
<br>
 
::{{Par2||clip| }}
 
::{{Par2||clip| }}
Line 44: Line 43:
 
<br>
 
<br>
 
::: *''optimal value'' - noise vs detail trade-off. The goal is to try to sharpen as much detail as possible while not sharpening noise.
 
::: *''optimal value'' - noise vs detail trade-off. The goal is to try to sharpen as much detail as possible while not sharpening noise.
 +
<br>
 +
::{{Par2|MODE|int|0}}
 +
:::Operation mode:
 +
:::*0 : equivalent to original version.
 +
:::*1 : added in mod(threshold, sharpstr, smooth parameter effects are little bit changed in this mode), in this mode, SMOOTH=0 is good choice!
 +
<br>
 +
::{{Par2|OPT|int|0}}
 +
:::Optimization - 0=auto, 1=C, 2:SSE2, 3:AVX2
 
<br>
 
<br>
  
Line 49: Line 56:
 
UnsharpHQ with default settings:
 
UnsharpHQ with default settings:
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
  UnsharpHQ(THRESHOLD=20, SHARPSTR=4.0, SMOOTH=0.5, SHOW=false)
+
  UnsharpHQ(THRESHOLD=20, SHARPSTR=4.0, SMOOTH=0.5, SHOW=false, MODE=0, OPT=0)
 
<br>
 
<br>
 
== Changelog ==
 
== Changelog ==
 
  Version      Date            Changes<br>
 
  Version      Date            Changes<br>
 +
mod 210309  2021/03/09      - Changes by Asd-g
 +
                              - Builds from @dacebe3
 +
                              - Additional change to pass frame properties in AviSynth+.<br>
 +
mod 200816  2020/08/16      - Changed to Avisynth2.6+.
 +
                              - HBD (8-16 YUV only) support + AVX2 optimization, opt added to parameters.
 +
                              - Intrinsic asm.<br>
 +
mod 190119  2019/01/19      - 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.<br>
 +
mod 181224  2018/12/24      - Added MODE=1, which modifies something that seems to be wrong
 +
                                (MODE=0 is compatible with the previous version).<br>
 
  v0.5        2014/01/19      - Released source code under GPLv3
 
  v0.5        2014/01/19      - Released source code under GPLv3
 
                               - Added parameters THRESHOLD, SMOOTH, and SHOW
 
                               - Added parameters THRESHOLD, SMOOTH, and SHOW
Line 65: Line 84:
 
!!width="150px"| Download
 
!!width="150px"| Download
 
!!width="150px"| Mirror
 
!!width="150px"| Mirror
!!width="150px"| Mirror 2
+
|-
 +
!mod 210309
 +
|[https://web.archive.org/web/20210815173338if_/https://files.videohelp.com/u/223002/UnsharpHQmod_dacebe3_fp.7z UnsharpHQmod_dacebe3_fp.7z]
 +
|[https://drive.google.com/file/d/13jrDXS12jYWaveJzLtD-AmYiE3dKE3n6/view?usp=sharing  UnsharpHQmod_dacebe3_fp.7z]
 
|-
 
|-
 
!v0.5
 
!v0.5
|[http://web.archive.org/web/20160302123821/https://filetea.me/t1sl65PsDLsT0mXMZL0s14xEg/dl UnsharpHQ_v05.zip]
 
 
|{{Plugin/UnsharpHQ_v05}}
 
|{{Plugin/UnsharpHQ_v05}}
|[http://www.mediafire.com/download/1v31aoia38fr06x/UnsharpHQ_v05.zip UnsharpHQ_v05.zip]
+
|[https://web.archive.org/web/20160302123821/https://filetea.me/t1sl65PsDLsT0mXMZL0s14xEg/dl UnsharpHQ_v05.zip]<br>[http://www.mediafire.com/download/1v31aoia38fr06x/UnsharpHQ_v05.zip UnsharpHQ_v05.zip]
 
|}
 
|}
 
<br>
 
<br>

Latest revision as of 19:14, 15 August 2021

Abstract
Author list
Version mod 210309
Download UnsharpHQmod_dacebe3_fp.7z
Category Sharpeners
License GPLv3
Discussion Doom9 Thread

Contents

[edit] Description

This is a very strong and fast unsharp mask with some new features.

[edit] Requirements


[edit] Syntax and Parameters

UnsharpHQ (clip, int "THRESHOLD", float "SHARPSTR", float "SMOOTH", bool "SHOW", int "MODE", int "OPT")


clip   =
Input clip.


int  THRESHOLD = 20
The value that determines whether or not to sharpen a pixel based on the luminance change between their neighbors.
Lower values allow more to be sharpened (including noise); higher values allow less but is set to high, small detail will not be sharpened.
Range: 0 to 99


float  SHARPSTR = 4.0
Sharpening strength; values from 2.0 to 10.0 are recommended.
Range: 0.0 up to 99.0


float  SMOOTH = 0.5
The smoothing strength for pixels not being sharpened (mainly flat areas). Set to 0.0 to disable smoothing.
Range: 0.0 to 4.0


bool  SHOW = false
When set to true a green and black mask is shown; useful for finding an optimal value* for THRESHOLD.
Anything in green gets sharpened, anything in black is not sharpened but can be smoothed if SMOOTH is greater than 0.


*optimal value - noise vs detail trade-off. The goal is to try to sharpen as much detail as possible while not sharpening noise.


int  MODE = 0
Operation mode:
  • 0 : equivalent to original version.
  • 1 : added in mod(threshold, sharpstr, smooth parameter effects are little bit changed in this mode), in this mode, SMOOTH=0 is good choice!


int  OPT = 0
Optimization - 0=auto, 1=C, 2:SSE2, 3:AVX2


[edit] Examples

UnsharpHQ with default settings:

AviSource("Blah.avi")
UnsharpHQ(THRESHOLD=20, SHARPSTR=4.0, SMOOTH=0.5, SHOW=false, MODE=0, OPT=0)


[edit] Changelog

Version      Date            Changes
mod 210309 2021/03/09 - Changes by Asd-g - Builds from @dacebe3 - Additional change to pass frame properties in AviSynth+.
mod 200816 2020/08/16 - Changed to Avisynth2.6+. - HBD (8-16 YUV only) support + AVX2 optimization, opt added to parameters. - Intrinsic asm.
mod 190119 2019/01/19 - 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 2018/12/24 - Added MODE=1, which modifies something that seems to be wrong (MODE=0 is compatible with the previous version).
v0.5 2014/01/19 - Released source code under GPLv3 - Added parameters THRESHOLD, SMOOTH, and SHOW - Renamed parameter STR to SHARPSTR
v0.4 2011/02/26 - Optimized and more accurate v0.3
v0.3 2011/02/21 - Initial public release


[edit] Archived Downloads

Version Download Mirror
mod 210309 UnsharpHQmod_dacebe3_fp.7z UnsharpHQmod_dacebe3_fp.7z
v0.5 UnsharpHQ_v05.zip UnsharpHQ_v05.zip
UnsharpHQ_v05.zip


[edit] External Links




Back to External Filters

Personal tools