Effacer les filtres
Effacer les filtres

How to add a glare effect to a given photo

1 vue (au cours des 30 derniers jours)
윤석 이
윤석 이 le 7 Oct 2022
Réponse apportée : DGM le 11 Oct 2022
Is there any way to give a glare effect to a given image based on VOS(1984)?
I'd like to know if there are any libraries available in MATLAB or user functions that are being shared.

Réponses (2)

Taru
Taru le 7 Oct 2022
Hi,
I comprehend that you want to achieve a glare effect for a certain image. Since, you have not provided the image I can offer you methods to work your way through.
First, use thresholding to get a binary matrix (mask) which highlights the area on which the glare needs to propogate.
Ex:
mask=img<150; %150 is just random value for the sake of example
Then, you can use the 'regionfill' function to get the glare effect.
fixedImage = regionfill(img,mask);
You can further modulate the contrast to get the desired effect.
  1 commentaire
윤석 이
윤석 이 le 11 Oct 2022
Thank you for answer. Are there any functions that actually give glare effect?

Connectez-vous pour commenter.


DGM
DGM le 11 Oct 2022
There seem to be a number of papers, including the one you mention that propose methods for calculating/simulating disability glare. That said, I don't have access to any of those papers, and I don't see any existing File Exchange submissions that solve the task.
There are more naive and nontechnical ways to do what one would call "bloom", but I see that as a different set of goals.

Community Treasure Hunt

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

Start Hunting!

Translated by