The paper describes an "off-the-shelf" algorithmic solution for unsupervised exposure correction for video. An important
feature of the algorithm is accurate processing not only for natural video sequences, but also for edited, rendered or
combined content, including content with letter-boxes or pillar-boxes captured from TV broadcasts. The algorithm
allows to change degree of exposure correction smoothly for continuous video scenes and to change it promptly on cuts.
Solution includes scene change detection, letter-box detection, pillar-box detection, exposure correction adaptation,
exposure correction and color correction. Exposure correction adaptation is based on histogram analysis and soft logics
inference. Decision rules are based on relative number of entries in the low tones, mid tones and highlights, maximum
entries in the low tones and mid tones, number of non-empty histogram entries and width of the middle range of the
histogram. All decision rules have physical meaning, which allows to tune parameters easily for display devices of
different classes. Exposure correction consists of computation of local average using edge-preserving filtering, applying
local tone mapping and post-processing. At the final stage color correction aiming to reduce color distortions is applied.