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