2010-02-03 43 views

回答

4

我猜想,最直接的方法將是這樣的:

for each frame in video 
    convert to HSL 
    select connected pixels which have luminance above a certain threshold 
    convert those areas that are "large" to regions 
    expand regions or soften the region (soft mask, Gaussian blur) 
    mask original image to that area 
    apply either brightness/contrast or histogram equalize on that area 
    overlay back onto original image 
相關問題