MfToon
Abstract | |
---|---|
Author | mf |
Version | 0.52 |
Download | mftoon.avsi |
Category | Line darkeners |
Requirements |
|
License | |
Discussion | Doom9 Thread |
I have mfToon v0.52 ready, and I think it's good enough for normal usage now. You can follow development from v0.1 onward here.
Since the code is rather large (and looked bad in wiki preview), I've decided to just link it. You can find it here (original archived link). discussion.
Contents |
Required filters
What does it do
In default operation, it performs line darkening, Xsharpening, and warp sharpening. Sharpening is slow, and because of that I've made it optional.
Because of colorspace conversions, most of the operations are done on luma only. Warp sharpening can be done either on luma only or on luma and chroma (chroma linked to luma). Input requires to be YV12, this is not checked, it's probably safe to use other colorspaces but the output will always be YV12. I'm not responsible for what happens if you use something other than YV12.
Usage and parameters
Import("mfToon-v0.32.avs") AviSource/MPEG2Source/WhateverSource("file") mfToon()
Normal parameters
type | param | description | range | default |
---|---|---|---|---|
int | strength | line darkening strength | 0-255 | 255 |
bool | sharpen | sharpening | on/off | true |
bool | cwarp | chroma warp | on/off | true |
float | wdepth | warping depth | ?-? | 16.0 |
int | wblur | warping blur level | ?-? | 2 |
float | wthresh | warping threshold | 0.0-1.0 | 0.5 |
int | ssw | supersample factor horizontally | 0-inf | 4 |
int | ssh | supersample factor vertically | 0-inf | 4 |
Advanced parameters
You're not likely to be tweaking these:
type | param | description | range | default |
---|---|---|---|---|
int | xstren | xsharpening strength | 0-255 | 255 |
int | xthresh | xsharpening threshold | 0-255 | 255 |
float | ublur | unsharp mask blur level | 0.0-1.58 | 1.58 |
int | ustren | unsharp mask strength | 0-255 | ? |
int | urange | unsharp mask range | 0-255 | 115 |
float | uboost | unsharp mask boost | 0.0-10.0 | 1.0 |
int | dstren | detail strength | 0-255 | 255 |
int | drange | detail range | 0-255 | 64 |
float | dboost | detail boost | 0.0-10.0 | 10.0 |
int | dlimit | detail limiter | 0-255 | 30 |
Explanation of advanced parameters: mfToon uses masks, and these parameters influence them. Strength means opacity of the effect, range means the value compression, boost means an opaque/transparency boost, where a value below 1.0 is negative, and limiter means the final range compression.
Drawbacks
Sometimes a strange "dark edge" effect on seemingly low-detail surfaces, and a VERY slight darkening along non-line edges (this is the effect you get from sharpeners ala MSharpen and aSharp, so you probably won't notice it).
Back to Shared functions.