Thread: MVTools
View Single Post
Old 12th November 2011, 07:48   #1510  |  Link
gyth
Registered User
 
Join Date: Sep 2011
Posts: 86
Code:
c = last

# blur == amount of blur, percentage
# 200 - fully open shutter (doubled because of SelectEven)
# 0 - no blur (ie SelectEven)
blur = 50

# motion == what blurs
# 0 - everything blurred
# small values - small motion treated as static
# large values - only high motion treated as moving
# 255 - nothing blurred (ie SelectEven)
motion = 10

super = MSuper(c)
b_vec = MAnalyse(super, isb = true)
f_vec = MAnalyse(super, isb = false)
blurd = MFlowBlur(c, super, b_vec, f_vec, blur=blur)

# hopefully looking forward and backwards will help the problem
# you were having with occlusion
fmask = MMask(c, f_vec, kind=0, ml=motion)
bmask = MMask(c, b_vec, kind=0, ml=motion)
mask  = mt_logic(fmask, bmask, mode="or", U=3, V=3)

output = mt_merge(c, blurd, mask, U=3, V=3)

output.SelectEven()
gyth is offline   Reply With Quote