Bonjour, j'ai besoin de faire un genre d'autofocus et je souhaite donc utiliser une mesure de contraste pour cela.
J'ai pour l'instant bricolé du code qui calcule le max du gradient de l'image.
Ca marche pas trop mal mais c'est sensible au bruit et aux pixels morts.
J'ai trouvé ce lien fourni par M. Pseudocode :
http://www.cambridgeincolour.com/tut...-autofocus.htm
Ils suggèrent de regarder la largeur de l'histogramme dans des petites fenêtres, ce qui semble une bonne idée.
J'aimerai savoir si vous connaissez des publications scientifiques sur le sujet, ou bien un algo de référence dans une lib de traitement d'image quelconque.
Merci !
Partager