Video Mix Combine

flows Combine

Combines 2 video flows with several ARGB pixel operation options.

Remember that pixels are defined as ARGB set so operations are done byte per byte. In all combination, except in replace transparency, the Alpha channel (A) is ignored.

2 videos sources combined with ADD.

Settings

bypass

Bypasses the module.

video in

Video input flow(s).

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

combine type

Combinations type:

  • ADD PixelOut = Pixel1 + Pixel2 (basic addition mode).
  • ADD 50/50 PixelOut = 50% x Pixel1 + 50% x Pixel2
  • AND PixelOut = Pixel1 AND Pixel2
  • SUB PixelOut = Pixel1 SUB Pixel2
  • OR PixelOut = Pixel1 OR Pixel2
  • XOR PixelOut = Pixel1 XOR Pixel2
  • DIFF if (Difference between pixel1 and Pixel 2 >= threshold) then PixelOut = white else PixelOut = black
  • replace black replaces Pixel1 by Pixel2 if Pixel1 is black according the tolerance
  • replace white replaces Pixel1 by Pixel2 if Pixel1 is white according the tolerance
  • replace red replaces Pixel1 by Pixel2 if Pixel1 is red according the tolerance
  • replace green replaces Pixel1 by Pixel2 if Pixel1 is green according the tolerance
  • replace blue replaces Pixel1 by Pixel2 if Pixel1 is blue according the tolerance
  • replace if transparent replaces Pixel1 by Pixel2 if Pixel1 is transparent (alpha=0) according the tolerance
  • max takes the max values (R,G,B) of Pixel1 and Pixel2
  • apply luminance computes the luminance of Pixel2 and applies and multiply Pixel2 by the value
  • distance gray computes the absolute value of the difference of gray intensity between Pixel1 and Pixel2.
  • distance gray contrasted computes the absolute value of the difference of gray intensity between Pixel1 and Pixel2. If the difference is lower than the tolerance it returns a black pixel, and a white pixel otherwise.

tolerance

Replacement tolerance used for the processing of:

  • replace black
  • replace white
  • replace red
  • replace green
  • replace blue

See also

version 6.0.240115

Edit All Pages