是否有任何算法可以从视频中删除照明?

时间:2010-02-03 16:54:33

标签: video video-processing lighting

是否有任何算法可以消除视频中的光线?我有一个视频,其中一些对象太亮了。如何在不破坏整个视频的情况下从该对象中删除光照?

1 个答案:

答案 0 :(得分: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