Borrar filtros
Borrar filtros

Calculating the amount of blurriness on glass image

2 visualizaciones (últimos 30 días)
nithin birudurat
nithin birudurat el 9 de Ag. de 2017
Comentada: nithin birudurat el 9 de Ag. de 2017
Hello all. I need a help regarding the calculation of blurriness on the glass. Actually, I have to estimate the amount of fog present on the glass in a gray image which in otherwords called as blurriness. For this I have two images out of which one is with fog on glass and the other is without fog on glass.
I tried image subtraction method but it does not seem to give the difference image perfectly. Please help me in the methods or steps that I should follow in order to get the image showing the difference in intensity pixels and also in calculating the amount of fog or blurriness present in the image.
Thanks in advance.

Respuestas (2)

Selva Karna
Selva Karna el 9 de Ag. de 2017
you go to use image fusing techniques
  1 comentario
nithin birudurat
nithin birudurat el 9 de Ag. de 2017
Editada: nithin birudurat el 9 de Ag. de 2017
Thank you for your answer. But could you please also suggest me which fusion technique suits this application better. For example, PCA fusion, highpass filtering or discrete wavelet transform. This would help me alot for the next steps.
Thanks in advance.

Iniciar sesión para comentar.


Image Analyst
Image Analyst el 9 de Ag. de 2017
You're asking for us to give image analysis advice on an image but you didn't show us the image. But I don't have the crystal Ball Toolbox, so I don't know what your image looks like and can only give very general advice, which is to use a texture filter like stdfilt(), threshold it, and compute the area fraction. The SD image will be dark in blurry areas and bright in detailed areas.
sdImage = stdfilt(grayImage, true(5));
binaryImage = sdImage < somethresholdValue; % Whatever works, like 5 or 20 or whatever.
blurAreaFraction = nnz(binaryImage) / numel(binaryImage);
  3 comentarios
Image Analyst
Image Analyst el 9 de Ag. de 2017
I don't know what a fog free glass looks like. If the glass is transparent, I suggest you use scattered light (darkfield, light coming in from a high angle and scattering off the glass into the lens). I ought to know - I image glass in my job (among dozens of other things).
nithin birudurat
nithin birudurat el 9 de Ag. de 2017
The fog free glass looks almost similar to this but without fog on it. The only difference you can see here is just a layer of fog on the glass as shown in the attached image. And the images which I have at present are with the same light effect on the glass lenses.

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by