logo Sign In

Post #597850

Author
AntcuFaalb
Parent topic
Three-strip Technicolor: Please help!
Link to post in topic
https://originaltrilogy.com/post/id/597850/action/topic#597850
Date created
24-Sep-2012, 1:17 AM

OK, so I've tried to exercise some restraint. Increasing the contrast to 1.3 (thereby lowering the pseudo-technicolor effect) results in:

function Technicolor(clip c)

{

  red_matte = c.ChannelMixer(100, -50, -50, 100, -50, -50, 100, -50, -50).Invert()

  green_matte = c.ChannelMixer(-50, 100, -50, -50, 100, -50, -50, 100, -50).Invert()

  blue_matte = c.ChannelMixer(-50, -50, 100, -50, -50, 100, -50, -50, 100).Invert()

  red = c.Overlay(green_matte, mode="multiply").Overlay(blue_matte, mode="multiply")

  green = c.Overlay(red_matte, mode="multiply").Overlay(blue_matte, mode="multiply")

  blue = c.Overlay(red_matte, mode="multiply").Overlay(green_matte, mode="multiply")

  return MergeRGB(red, green, blue)

}

gout = AVISource("E:\GOUT.avi", audio=false, pixel_type="YUY2", fourCC="HFYU").Crop(6, 102, -2, -104, true)

StackVertical(gout.subtitle("gout"), gout.Tweak(cont=1.3).ConvertToRGB32(matrix="Rec601").Technicolor().ConvertBackToYUY2(matrix="Rec601").subtitle("mine"))

Sample0

Sample1

Sample2

Sample3

Sample4

Sample5

Sample6

Sample7

Sample8

Sample9