ASharp

From Avisynth wiki
Jump to: navigation, search
Abstract
Author Marc FD, Asd-g
Version v1.0.0
Download ASharp-1.0.0.7z
Category Sharpeners
License GPLv2
Discussion Doom9 Thread


Contents

[edit] 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).

[edit] Requirements


[edit] Syntax and Parameters

ASharp (clip, float "T", float "D", float "B", bool "hqbf")


clip   =
A clip to process. It must be in YUV 8..16-bit planar format.


float  T = 2.0
Unsharp masking threshold.
  • 0 will do nothing, 1 will enhance contrast 1x.
  • Range is from 0 to 32.


float  D = 4.0
Adaptive sharpening strength to avoid sharpening noise.
If greater than 0, the threshold is adapted for each pixel (bigger for edges) and t acts like a maximum.
  • Set to 0 to disable it.
  • Must be between 0 and 16.


float  B = -1.0
Block adaptive sharpening.
It avoids sharpening the edges of DCT blocks by lowering the threshold around them.
Use with blocky videos. If cropping the video before ASharp the top and left edges must be cropped by multiples of 8.
  • Set to a negative value to disable it.
  • Must be less than 4.


bool  hqbf = false
High quality block filtering (aka block based adaptive thresholding). Set to true to enable.


[edit] Examples

asharp with default settings (adaptive sharpening):

AviSource("Blah.avi")
asharp(T=2.0, D=4.0, B=-1.0, hqbf=false)


Simple unsharp masking with a strength of 2x (adaptive sharpening disabled):

asharp(T=2.0, D=0.0)


[edit] Changelog

Version      Date(D/M/Y)      Changes
v1.0.0 2020/09/25 - Initial release; port of the VapourSynth plugin - AviSynth+: self-registers as MT_NICE_FILTER. v0.95 2002/11/27 - fixed some bugs - added mmx compatibility - first GPL source release


[edit] Archived Downloads

Version Download Mirror
v0.95


[edit] External Links




Back to External Filters

Personal tools