Advertisement
MWilson

CC4

Mar 1st, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function cc4(clip y, float "Weight")
  2.  
  3. {
  4.  
  5. Weight=Default (Weight,.33)
  6.  
  7. y=y.converttoyv12().greyscale()
  8.  
  9. y.linearresize(280,280,linear=true,noring=true)
  10.  
  11. cmb2()
  12.  
  13. a1=last
  14.  
  15. a1
  16.  
  17. converttorgb()
  18.  
  19. r=ShowRed(pixel_type="RGB32")
  20.  
  21. g=ShowGreen(pixel_type="RGB32")
  22.  
  23. b1=ShowBlue(pixel_type="RGB32")
  24.  
  25. a=overlay(g,r,mode="exclusion").converttoyv24()
  26.  
  27. b=overlay(g,b1,mode="exclusion").converttoyv24()
  28.  
  29. c=overlay(merge(a,b),g.converttoyv24(),mode="exclusion").converttoyv24()
  30.  
  31.  
  32.  
  33. mergergb(a,c,b)
  34.  
  35. converttoyv12()
  36.  
  37. subtract(a1,last)
  38.  
  39. coloryuv(autowhite=true)
  40.  
  41. merge(a1.cmb2(),last)
  42.  
  43. tweak(sat=2.5,interp=32)
  44.  
  45. tweak(sat=1.25,maxsat=59.5,interp=32)
  46.  
  47. linearresize(width(y),height(y),linear=true,noring=true)
  48.  
  49. mergechroma(y,last,Weight)
  50.  
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement