MaskTools/YV12Substract

From Avisynth wiki
Revision as of 23:35, 28 February 2008 by Gzarkadas (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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.

Personal tools