Advertisement
Guest User

3-strip Technicolor!

a guest
Sep 23rd, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function Technicolor(clip c, float "contrast")
  2. {
  3.   contrast    = Default(contrast, 1.0)
  4.   red_matte   = c.ChannelMixer(100, -50, -50, 100, -50, -50, 100, -50, -50).Invert()
  5.   green_matte = c.ChannelMixer(-50, 100, -50, -50, 100, -50, -50, 100, -50).Invert()
  6.   blue_matte  = c.ChannelMixer(-50, -50, 100, -50, -50, 100, -50, -50, 100).Invert()
  7.   new_red     = c.Overlay(green_matte, mode="multiply").Overlay(blue_matte, mode="multiply")
  8.   new_green   = c.Overlay(red_matte, mode="multiply").Overlay(blue_matte, mode="multiply")
  9.   new_blue    = c.Overlay(red_matte, mode="multiply").Overlay(green_matte, mode="multiply")
  10.   return MergeRGB(new_red, new_green, new_blue).ConvertToYUY2(matrix="PC.709").Tweak(cont=contrast, coring=false).ConvertToRGB32(matrix="PC.709")
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement