ASharp
From Avisynth wiki
(Difference between revisions)
Raffriff42 (Talk | contribs) (redirect for convenient searching) |
(asharp) |
||
Line 1: | Line 1: | ||
− | + | {{FilterCat4|External_filters|Plugins|Restoration_filters|Sharpeners}} | |
− | {{ | + | {{Filter3 |
+ | | {{Author/Marc FD}} | ||
+ | | v0.95 | ||
+ | | [http://ziquash.chez-alice.fr/asharp%20v0.95.zip asharp v0.95.zip] | ||
+ | | [[:Category:Sharpeners|Sharpeners]] | ||
+ | | [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2] | ||
+ | |6=[http://forum.doom9.org/showthread.php?t=38436 Doom9 Thread]}} | ||
+ | <br> | ||
+ | == Description == | ||
+ | [[aSharp|asharp]] is an adaptive sharpening filter; basically a very common [http://en.wikipedia.org/wiki/Unsharp_masking unsharp mask] with 3 simple ideas: | ||
+ | *Adaptive thresholding to avoid noise enhancement. | ||
+ | *Block adaptive sharpening to avoid DCT block edges enhancement. | ||
+ | *Block based adaptive thresholding to avoid DCT block edges enhancement. | ||
+ | Like most AviSynth sharpeners, [[aSharp|asharp]] only processes the luma channel, the chroma channels are simply copied from the input clip (chroma sharpening seems to only introduce artifacts). | ||
+ | <br> | ||
+ | <br> | ||
+ | == Requirements == | ||
+ | * AviSynth 2.5.8 or [http://sourceforge.net/projects/avisynth2/ greater] | ||
+ | * [[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]] | ||
+ | <br> | ||
+ | |||
+ | == [[Script variables|Syntax and Parameters]] == | ||
+ | :{{Template:FuncDef|asharp (clip, float "T", float "D", float "B", bool "hqbf") }} | ||
+ | <br> | ||
+ | ::{{Par2||clip| }} | ||
+ | :::Input clip. | ||
+ | <br> | ||
+ | ::{{Par2|T|float|2}} | ||
+ | :::Unsharp masking threshold. Range is from 0 to 32. 0 will do nothing, 1 is like 32 with ffdshow/VDub unsharp mask filter, it'll enhance contrast 1x. | ||
+ | <br> | ||
+ | ::{{Par2|D|float|4}} | ||
+ | :::Adaptive sharpening strength. Range is from 0 to 16. | ||
+ | :::*Set to 0 to disable. | ||
+ | :::*If {{Template:FuncDef3|D}}<tt>>0</tt>, adaptive thresholding is enabled. The threshold is adapted for each pixel (bigger for edges). If adaptive sharpening is enabled, {{Template:FuncDef3|T}} acts like a maximum. | ||
+ | <br> | ||
+ | ::{{Par2|B|float|-1}} | ||
+ | :::Block adaptive sharpening. The range is from 0 to 4. | ||
+ | :::*Set to a negative value to disable (default). | ||
+ | :::*If {{Template:FuncDef3|B}}<tt>>=0</tt>, block adaptive sharpening is enabled. It acts very simply, by lowering the threshold around DCT-blocks edges. If you use it, avoid any non [[modulo|mod8]] cropping before asharp. | ||
+ | :::*It works only with adaptive sharpening, when {{Template:FuncDef3|D}}<tt>>0</tt>. | ||
+ | <br> | ||
+ | ::{{Par2|hqbf|bool|false}} | ||
+ | :::High quality block filtering (aka block based adaptive thresholding). Set to <tt>true</tt> to enable. | ||
+ | <br> | ||
+ | |||
+ | == Examples == | ||
+ | asharp with default settings (adaptive sharpening): | ||
+ | [[AviSource]]("Blah.avi") | ||
+ | asharp(T=2, D=4, D=-1, hqbf=false) | ||
+ | |||
+ | |||
+ | Simple unsharp masking with a strength of 2x (adaptive sharpening disabled): | ||
+ | asharp(T=2, D=0) | ||
+ | <br> | ||
+ | == Changelog == | ||
+ | Version Date(D/M/Y) Changes<br> | ||
+ | v0.95 27/11/2002 - fixed some bugs | ||
+ | - added mmx compatibility | ||
+ | - first GPL source release | ||
+ | <br> | ||
+ | == Archived Downloads == | ||
+ | {| class="wikitable" border="1"; width="600px" | ||
+ | |- | ||
+ | !!width="100px"| Version | ||
+ | !!width="150px"| Download | ||
+ | !!width="150px"| Mirror | ||
+ | |- | ||
+ | !v0.95 | ||
+ | | | ||
+ | *[http://ziquash.chez-alice.fr/asharp%20v0.95.zip asharp v0.95.zip] | ||
+ | *[http://ziquash.chez-alice.fr/asharp%20v0.95%20src.rar asharp v0.95 src.rar] | ||
+ | *[http://www.avisynth.nl/users/warpenterprises/files/asharp_5F25_dll_20030118.zip asharp_5F25_dll_20030118.zip] | ||
+ | | | ||
+ | *[http://web.archive.org/web/20150518091105/http://ziquash.chez-alice.fr/asharp%20v0.95.zip asharp v0.95.zip] | ||
+ | *[http://web.archive.org/web/20150518091105/http://ziquash.chez-alice.fr/asharp%20v0.95%20src.rar asharp v0.95 src.rar] | ||
+ | *[http://web.archive.org/web/20150401082138/http://www.avisynth.nl/users/warpenterprises/files/asharp_5F25_dll_20030118.zip asharp_5F25_dll_20030118.zip] | ||
+ | |} | ||
+ | <br> | ||
+ | == External Links == | ||
+ | *[http://forum.doom9.org/showthread.php?t=38436 Doom9 Forum] - asharp discussion. | ||
+ | <br> | ||
+ | <br> | ||
+ | ----------------------------------------------- | ||
+ | '''Back to [[External_filters#Sharpeners|External Filters]] ←''' |
Revision as of 00:41, 28 November 2015
Abstract | |
---|---|
Author | Marc FD |
Version | v0.95 |
Download | asharp v0.95.zip |
Category | Sharpeners |
License | GPLv2 |
Discussion | Doom9 Thread |
Contents |
Description
asharp is an adaptive sharpening filter; basically a very common unsharp mask with 3 simple ideas:
- Adaptive thresholding to avoid noise enhancement.
- Block adaptive sharpening to avoid DCT block edges enhancement.
- Block based adaptive thresholding to avoid DCT block edges enhancement.
Like most AviSynth sharpeners, asharp only processes the luma channel, the chroma channels are simply copied from the input clip (chroma sharpening seems to only introduce artifacts).
Requirements
- AviSynth 2.5.8 or greater
- Progressive input only
- Supported color formats: YV12
Syntax and Parameters
- asharp (clip, float "T", float "D", float "B", bool "hqbf")
- clip =
- Input clip.
- clip =
- float T = 2
- Unsharp masking threshold. Range is from 0 to 32. 0 will do nothing, 1 is like 32 with ffdshow/VDub unsharp mask filter, it'll enhance contrast 1x.
- float T = 2
- float D = 4
- Adaptive sharpening strength. Range is from 0 to 16.
- Set to 0 to disable.
- If D>0, adaptive thresholding is enabled. The threshold is adapted for each pixel (bigger for edges). If adaptive sharpening is enabled, T acts like a maximum.
- Adaptive sharpening strength. Range is from 0 to 16.
- float D = 4
- float B = -1
- Block adaptive sharpening. The range is from 0 to 4.
- Set to a negative value to disable (default).
- If B>=0, block adaptive sharpening is enabled. It acts very simply, by lowering the threshold around DCT-blocks edges. If you use it, avoid any non mod8 cropping before asharp.
- It works only with adaptive sharpening, when D>0.
- Block adaptive sharpening. The range is from 0 to 4.
- float B = -1
- bool hqbf = false
- High quality block filtering (aka block based adaptive thresholding). Set to true to enable.
- bool hqbf = false
Examples
asharp with default settings (adaptive sharpening):
AviSource("Blah.avi") asharp(T=2, D=4, D=-1, hqbf=false)
Simple unsharp masking with a strength of 2x (adaptive sharpening disabled):
asharp(T=2, D=0)
Changelog
Version Date(D/M/Y) Changes
v0.95 27/11/2002 - fixed some bugs - added mmx compatibility - first GPL source release
Archived Downloads
Version | Download | Mirror |
---|---|---|
v0.95 |
External Links
- Doom9 Forum - asharp discussion.
Back to External Filters ←