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

Question about the HDR-VDP score #24

Closed
CS-GangXu opened this issue Oct 14, 2021 · 2 comments
Closed

Question about the HDR-VDP score #24

CS-GangXu opened this issue Oct 14, 2021 · 2 comments

Comments

@CS-GangXu
Copy link

CS-GangXu commented Oct 14, 2021

Hi, @sooyekim thanks for your great work! I want to ask a question about the evaluation pipeline of HDRVDP-2.2.1. I want to know what should I do after obtaining the output YUV data with the .mat format to get the same HDRVDP score claimed in the paper. Could you provide the HDRVDP evaluation code?

Thanks in advance.

@CS-GangXu CS-GangXu reopened this Oct 14, 2021
@CS-GangXu CS-GangXu changed the title Questiones about 天河 Questiones about the HDR-VDP score Oct 14, 2021
@CS-GangXu CS-GangXu changed the title Questiones about the HDR-VDP score Question about the HDR-VDP score Oct 14, 2021
@sooyekim
Copy link
Owner

sooyekim commented Oct 24, 2021

Hi @CS-GangXu ,
Thanks for your interest in our work!
As mentioned in the paper, we measured HDR-VDP-2.2.2 with the luminance option and pixel per degrees = 30.
Please refer to the below code:

pred_YUV = double(pred_YUV)/1023;
gt_YUV = double(gt_YUV)/1023;
    
psnr_val = psnr(pred_YUV, gt_YUV, 1);
ssim_val = ssim(pred_YUV, gt_YUV);
mpsnr_val = mPSNR_HDR(pred_YUV, gt_YUV, -3, 3);
msssim_val = msssim(pred_YUV*1023, gt_YUV*1023, 1023);

% hdr-vdp 
[HDR_Ylin,~,~] = rgb2yuv_hdr(inv_PQTF(gt_YUV*1023));
[pred_Ylin,~,~] = rgb2yuv_hdr(inv_PQTF(pred_YUV*1023));
hdr_vdp_1 = hdrvdp(HDR_Ylin, pred_Ylin, 'luminance', 30);
hdr_vdp_val = hdr_vdp_1.Q;

For the functions, see this issue.

@CS-GangXu
Copy link
Author

Thanks for your reply! It's very kind of you to provide this code.

@sooyekim sooyekim closed this as completed Apr 1, 2022
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