MaskTools/YV12Substract
From Avisynth wiki
(Difference between revisions)
(New page: {{FilterCat|External_filters|Other_filters|Support_filters}} {{FuncDef|YV12Subtract (clip1, clip2, int tol [, bool "widerange"])}} '''Plugin''': MaskTools This filter computes the d...) |
m (1 revision) |
Latest revision as of 17:02, 9 May 2013
YV12Subtract (clip1, clip2, int tol [, bool "widerange"])
Plugin: MaskTools
This filter computes the difference between the two clips. There are several ways of computing this difference, depending on the values of widerange and of tol.
- widerange = true : We compute the difference (n) between the two clips, and we return
r = 128 + 128 * pow(n/255, 1/tol).
- If tol < 0, instead of 1/tol we put 0.5 in the formula above.
- widerange = false (and)
- tol < 0 : we compute the absolute difference (n) between the two clips, and we return
r = n / 2 + 128.
- tol >= 0 : we compute the absolute difference (n) between the two clips, and we return 0 if n is lower than tol, n - tol else.
Defaults are: tol = -1 and widerange = false.
Back to MaskTools.