Help regarding the fog visualization on a transparent glass

asked 2017-08-21 03:24:23 -0500

cv123 gravatar image

updated 2017-08-22 06:30:07 -0500

LBerger gravatar image

Hello all. As a beginner to this field, I am in much need of a help regarding my project. I have two sample images of which one image contains the fog on the transparent glass and the other is without the the fog (plain transparent glass). Now, I have to visualize the fog present on the glass and also calculate the amount of fog present on the glass. I am stuck in choosing different methods that works for visualizing the fog.

Any help regarding the methods or techniques that work on this would be much appreciated. Thanks in advance.


edit retag flag offensive close merge delete


I think you can use this. It is not yet an opencv problem but a physical problem.

LBerger gravatar imageLBerger ( 2017-08-21 03:34:36 -0500 )edit

You'll need to find a way to do segmentation by threshold/ color threshold / watershed / region growing ...Or use both images to get difference . Then calculate pixels that represent fog blob. (You'll be able to calculate fog percentage in your image ).

Ziri gravatar imageZiri ( 2017-08-21 04:12:54 -0500 )edit

Thank a lot for the replies. I tried the threshold method for visualizing the fog, but it didn't yield me the good results. Is there any specific method or procedure that I can follow. Just need to visualize the fog pixels from other pixels in the image. Thanks in advance.

cv123 gravatar imagecv123 ( 2017-08-22 06:04:36 -0500 )edit

where is the sample image?

sturkmen gravatar imagesturkmen ( 2017-08-22 06:17:15 -0500 )edit

I have edited the question by adding the image. please verify the attachment.

cv123 gravatar imagecv123 ( 2017-08-22 06:24:11 -0500 )edit

There is only one image.

LBerger gravatar imageLBerger ( 2017-08-22 06:31:18 -0500 )edit

Yes, that's the image containing fog as you can see on it. Unfortunately, I don't have the other image currently but the other one is just an image of plain glass with the same background but with out fog on it.

cv123 gravatar imagecv123 ( 2017-08-22 06:42:25 -0500 )edit