2010-02-03 19 views

Répondre

4

Je pense que l'approche la plus directe sera quelque chose comme ceci:

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