PSharpen

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(corrections)
m (typo)
 
(2 intermediate revisions by one user not shown)
Line 2: Line 2:
 
{{Filter3
 
{{Filter3
 
| ilpippo80, colours
 
| ilpippo80, colours
| 02/08/2015
+
| 16/03/2016
 
|3=[http://forum.doom9.org/showthread.php?t=172422#post1732663 pSharpen script]
 
|3=[http://forum.doom9.org/showthread.php?t=172422#post1732663 pSharpen script]
 
|4= [[:Category:Sharpeners|Sharpeners]]
 
|4= [[:Category:Sharpeners|Sharpeners]]
Line 25: Line 25:
  
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|pSharpen (clip clp, int "strength", int "threshold", float "ss_x", float "ss_y", float "dest_x", float "dest_y")}}
+
:{{Template:FuncDef|pSharpen (clip clp, int "strength", int "threshold", float "ss_x", float "ss_y", int "dest_x", int "dest_y")}}
 
<br>
 
<br>
 
::{{Par2| |clip| }}
 
::{{Par2| |clip| }}
Line 40: Line 40:
 
:::The horizontal and vertical [[supersampling]] factors, respectively. Higher values will reduce aliasing, at the expense of speed.  
 
:::The horizontal and vertical [[supersampling]] factors, respectively. Higher values will reduce aliasing, at the expense of speed.  
 
<br>
 
<br>
::{{Par2|dest_x|float|clp.width()}}
+
::{{Par2|dest_x|int|clp.width()}}
::{{Par2|dest_y|float|clp.height()}}
+
::{{Par2|dest_y|int|clp.height()}}
 
:::Final image size; defaults to the dimensions of the input clip.  
 
:::Final image size; defaults to the dimensions of the input clip.  
 
<br>
 
<br>
Line 52: Line 52:
 
== Changelog ==
 
== Changelog ==
 
  Version      Date(D/M/Y)      Changes<br>
 
  Version      Date(D/M/Y)      Changes<br>
 +
              16/03/2016      - Actually make it work when ss_x and ss_y are not both 1
 +
              07/03/2016      - Changed dest_x/dest_y to be ints instead of floats.
 
               02/08/2015      - Update to use MaskTools2
 
               02/08/2015      - Update to use MaskTools2
 
               02/07/2005      - Initial public release
 
               02/07/2005      - Initial public release

Latest revision as of 20:41, 3 June 2017

Abstract
Author ilpippo80, colours
Version 16/03/2016
Download pSharpen script
Category Sharpeners
License
Discussion Doom9 Thread - Update

Contents

[edit] Description

pSharpen performs two-point sharpening to avoid overshoot.

[edit] Requirements

[edit] Required Plugins

Additional planar colorspaces are supported when using AviSynth 2.6 and corresponding MaskTools2.

[edit] Syntax and Parameters

pSharpen (clip clp, int "strength", int "threshold", float "ss_x", float "ss_y", int "dest_x", int "dest_y")


clip   =
Input clip


int  strength = 25
Determines the strength of the sharpening (up until the overshoot correction threshold, see below). Value of 100 will set all pixels to either their local min or max; value of 0 will make the filter do nothing. Range: 0 to 100


int  threshold = 75
Determines how close to the min/max a pixel can be sharpened before the overshoot correction (compression) kicks in. Higher values make the overshoot correction more of a hard limiting, while lower values soften the compression. Value of 0 makes the filter do nothing. Range: 0 to 100


float  ss_x = 1.0
float  ss_y = 1.0
The horizontal and vertical supersampling factors, respectively. Higher values will reduce aliasing, at the expense of speed.


int  dest_x = clp.width()
int  dest_y = clp.height()
Final image size; defaults to the dimensions of the input clip.


[edit] Examples

pSharpen with default settings:

AviSource("Blah.avi")
pSharpen(strength=25, threshold=75, ss_x=1.0, ss_y=1.0)


[edit] Changelog

Version      Date(D/M/Y)      Changes
16/03/2016 - Actually make it work when ss_x and ss_y are not both 1 07/03/2016 - Changed dest_x/dest_y to be ints instead of floats. 02/08/2015 - Update to use MaskTools2 02/07/2005 - Initial public release


[edit] External Links




Back to External Filters

Personal tools