How to check the lighting condition of an Image programatically?

5 vues (au cours des 30 derniers jours)
Sibi Isac
Sibi Isac le 8 Avr 2018
I want to do the pre-processing to enhance the image only if the image has poor lighting condition. Any help will be highly appreciated.

Réponses (1)

Arun Mathamkode
Arun Mathamkode le 20 Avr 2018

First, we need to decide an algorithm for detecting the underexposed images. A simple algorithm will be something like calculating the average brightness of the original image (mean of the pixel intensities) and comparing it with a threshold. The images with average brightness below this threshold level will be underexposed and you can pre-process these images. The basic preprocessing I can think of is increasing the brightness and improving contrast. The functions like imadjust or adapthisteq can be used for the same.

Catégories

En savoir plus sur Computer Vision Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by