Shadow removal in aerial images

조회 수: 18 (최근 30일)
S DIVYA MEENA
S DIVYA MEENA 2019년 9월 27일
답변: Asma Semche 2020년 9월 20일
I'm working on detecting animals from aerial images. As part of pre-processing, I want to remove the shadow of animals in the first place. Is there any techniques for that ? I have attached a smaple image for the reference. Any guidance ?

채택된 답변

Shashank Gupta
Shashank Gupta 2019년 9월 30일
Hi Divya,
I would suggest to first create a mask of shadow, now there is a lot of different methods like morphological operations have been used to generate the Shadow mask and even in some cases these operations can remove shadows as well, it solely depends on the type of images used.
Check the morphological operation function in MATLAB
Moreover,
If you are dealing with video, then one of the simple but very efficient method of shadow removing is to Create a Background subtractor, these uses Morphological operations, Gaussian and median blur and thresholding. Make sure that the Background images contains shadow, thus it can be removed.
If you are only dealing with images, mask can still be generated by adaptive thresholding then removing shadows is relatively difficult, but it can still be achieved using gradient-integration approach, which now-a-days used for several image processing problems. Basic idea is to compute the spatial derivative for all color channels, use the shadow boundaries from the mask to generate a weight mask, now multiplies this weight mask with the gradient image this reduce the shadow edges, integrate the gradient images to get the shadow removed image.
In fact, you can also try these approaches using different color model HSV can be a good for a try.
further more there are some paper you may refer to as well
I hope it helps.
  댓글 수: 3
Shashank Gupta
Shashank Gupta 2019년 10월 4일
Hi Divya,
May be this github repo can give you a good headstart. Although I haven't tried it by myself but still worth giving a shot.
Regards.
S DIVYA MEENA
S DIVYA MEENA 2019년 10월 12일
Thank you again Sir. I'll give it a try and let you know.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Asma Semche
Asma Semche 2020년 9월 20일
Hello,
My comment is more like a question itself. Can you please tell me if you found a successful method for shadow removal ? As I need this is a pre-processing step too.

Community Treasure Hunt

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

Start Hunting!

Translated by