Hysteria
From Avisynth wiki
Abstract | |
---|---|
Author | Scintilla |
Version | 20161019 |
Download | Hysteria-20161019.avsi |
Category | Line Darkeners |
License | |
Discussion | AnimeMusicVideos Thread |
Contents |
Description
Hysteria, a line darkening script by Scintilla.
Requirements
Required Plugins
Latest versions of the following filters are recommended unless stated otherwise.
Syntax and Parameters
- Hysteria (clip orig, float "strength", bool "usemask", int "lowthresh", int "highthresh", int "luma_cap", int "maxchg", int "minchg", bool "showmask")
- clip =
- Input clip.
- clip =
- float strength = 1.0
- This is a multiplicative factor for the amounts by which the pixels are darkened. Ordinarily, each pixel is darkened by the difference between its luma value and the average luma value of its brighter spatial neighbours. So if you want more darkening, increase this value.
- float strength = 1.0
- bool usemask = true
- Whether or not to apply the mask. If false, the entire image will have its edges darkened instead of just the edges detected in the mask. Could be useful on some sources(specifically, it will often make dark lines look thicker), but you will probably want to stick to lower values of strength if you choose to go that route.
- bool usemask = true
- int lowthresh = 6
- This is the threshold used for the noisy mask. Increase this value if your mask is picking up too much noise around the edges, or decrease it if the mask is not being grown thick enough to cover all of each edge.
- int lowthresh = 6
- int highthresh = 20
- This is the threshold used for the clean mask. Increase this value if your mask is picking up too many weaker edges, or decrease it if the mask is not picking up enough.
- int highthresh = 20
- int luma_cap = 191
- An idea swiped from FLD/VMToon. Any pixels brighter than this value will not be darkened at all, no matter what the rest of the parameters are. This is useful if you have lighter edges that you do not want darkened. 0 will result in no darkening at all, while 255 will turn off the cap.
- int luma_cap = 191
- int maxchg = 255
- No pixel will be darkened by more than this amount, no matter how high you set the strength parameter. This can be useful if you want to darken your weaker lines more without going overboard on the stronger ones. 0 will result in no darkening at all, while 255 (the default) will turn off the limiting.
- int maxchg = 255
- int minchg = 0
- Another idea swiped from FLD/VMToon (though in those functions it was called "threshold"). Any pixels that would have been darkened by less than this amount will instead not be darkened at all. This can be useful if you have noise that is getting darkened slightly. 0 (the default) will turn off the thresholding, while 255 will result in no darkening at all.
- int minchg = 0
- bool showmask = false
- When true, the function will display the current edge mask plus the chroma from the original image. Use this to find the optimal values of lowthresh and highthresh.
- bool showmask = false
Examples
AviSource("Blah.avi") Hysteria()
Changelog
Version Date(D/M/Y) Changes
10/19/16 - Remove YV12 limit 09/11/10 - Is this thing on?
External Links
Back to External Filters ←