vinthony / ghost-free-shadow-removal

[AAAI 2020] Towards Ghost-free Shadow Removal via Dual Hierarchical Aggregation Network and Shadow Matting GAN
https://arxiv.org/abs/1911.08718
297 stars 59 forks source link

Would you please share the method to extract the mask from the image pair (shadow and shadow-free)? #25

Open edis219 opened 3 years ago

edis219 commented 3 years ago

It's a great job! As you mentioned for the SRD masks, "Hi, we also use a simple rule to extract the mask from the image pair."

Would you please share the method to extract the mask from the image pair (shadow and shadow-free)?

vinthony commented 3 years ago

Hi, thanks for your attention.

I just transform the images in the log space and threshold the difference.

The original scripts for mask extraction are missing, however, I will try my best to release a similar one.

edis219 commented 3 years ago

Thanks a lot! Looking forward for the extraction script.

controlengineerinMLlearning commented 2 years ago

Hi Vinthony,

Have you been able to recreate the script for mask extraction? Kind regards

hnrna commented 1 year ago

Hi, thanks for your attention.

I just transform the images in the log space and threshold the difference.

The original scripts for mask extraction are missing, however, I will try my best to release a similar one.

Hello, I would like to ask you what is the threshold when converting the image to a binary image of shadow mask after getting the difference between the shadow image and the non-shadow image after converting the image to log space?