Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No evaluation code #5

Open
nachifur opened this issue Dec 14, 2021 · 3 comments
Open

No evaluation code #5

nachifur opened this issue Dec 14, 2021 · 3 comments

Comments

@nachifur
Copy link

The standard evaluation code is of extraordinary significance to the community. Can you provide evaluation codes for the following indicators? Looking forward to your reply.
image

@fu123456
Copy link
Owner

For SSIM and PSNR computation, we used Matlab built-in psnr and ssim functions (for example psnr(image1, image 2) and ssim(image1, image2). You can also refer to here https://ww2.mathworks.cn/matlabcentral/fileexchange/64151-structure-similarity-ssim-and-psnr?s_tid=FX_rc2_behav.

@fu123456
Copy link
Owner

For accuracy and BER computation, please refer to some shadow detection works such as https://github.com/xw-hu/CUHK-Shadow#cuhk-shadow-evaluation

@nachifur
Copy link
Author

nachifur commented Dec 17, 2021

Thank you very much for your reply.
In SHIQ dataset, are the PSNR=34.13 and SSIM=0.86 in your paper calculated as follows?

for i = 1 : img_num
    i
    
    image1 = imread([testfnlist_gt{i}]);
    image2  = imread([testfnlist{i}]);
    
    psnr_ = getPSNR(image1,image2);
    ssim_ = getMSSIM(image1,image2);
    
    psnr_list(i,1) = psnr_;
    ssim_list(i,1) = ssim_;
end

psnr_mean = mean(psnr_list);
ssim_mean = mean(ssim_list);

image

For SSIM and PSNR computation, we used Matlab built-in psnr and ssim functions (for example psnr(image1, image 2) and ssim(image1, image2). You can also refer to here https://ww2.mathworks.cn/matlabcentral/fileexchange/64151-structure-similarity-ssim-and-psnr?s_tid=FX_rc2_behav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants