YalimD / image_shadow_remover

Implementation of Shadow Removal Algorithms
MIT License
46 stars 24 forks source link

why do you choose the threshold as mean - standard_derivation / 3 ? #4

Open mxz2013 opened 1 year ago

mxz2013 commented 1 year ago

Dear Yalim,

Thank you for sharing such interesting work on shadow detection and removal. The algorithm is so simple but with good performance.

I am just curious about the way you calculate the threshold. Could you please give me a hint about the way you set the threshold on the L channel? Why mean - standard_derivation / 3 for each channel?

Thank you very much!

Sky

YalimD commented 1 year ago

Dear @mxz2013,

I appreciate your interest in the work.

For your question, I followed the algorithm in 'Shadow Detection and Removal from a Single Image Using LAB Color Space'. I rechecked the paper briefly and I think they decided on that threshold based on empirical results.

Don't forget, this method's results are shown on sunny outdoor images; for any other case, you may have to play with the parameters.