Advertisement
tophf

t_skinhair_dehalo

Aug 2nd, 2012
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ReplaceFramesSimple(t_skinhair_dehalo(1.5,dehalo_alpha_mt(2.5,2.5,0,1,ss=2).yahrmask(10,64),t_3colormask($414055,$3b3d4a,$5a5a73,20),t_3colormask($debaa8,$c9aaa0,$efddcf,20),8,showmask=!true),mappings="[4749 4789] [5502 5537] [5615 5677]") #blue hair
  2.  
  3.  
  4. function t_skinhair_dehalo( clip c, float blur, clip vDehalo, clip halocaster, clip victim, int "thr", bool "showmask" )
  5. {
  6.     blur=default(blur,5)
  7.     thr=default(thr,40) #max luma change
  8.     showmask=default(showmask,false)
  9.     m=halocaster.mt_expand_multi(sw=7,sh=7).mt_logic(victim.mt_expand_multi(sw=4,sh=4),"min").mt_inpand_multi(sw=3,sh=3).mt_binarize(100).binomialblur(3,u=1,v=1)
  10.     vMega=vDehalo.mt_merge(vDehalo.binomialblur(blur,u=3,v=3),m,true).mt_clamp(c,c,0,thr)
  11.     showmask ? c.overlay(m,0,0,m,0.5) : c.mt_merge(vMega,m,true)
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement