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

questions about how to get Canon1DsMkIII DNG file for Canon1DsMkIII_0001 and how to calculate raw2xy matrix which in aug_data.json #17

Open
EmilySmile opened this issue Dec 29, 2024 · 1 comment

Comments

@EmilySmile
Copy link

I have questions about how to get Canon1DsMkIII DNG file for Canon1DsMkIII_0001 in NUS dataset and how to calculate raw2xy matrix

(1) I download Canon1DsMkIII_RAW.zip from http://cvil.eecs.yorku.ca/projects/public_html/illuminant/illuminant.html
(2) Convert the CR2 raw file“Canon1DsMkIII_0001.CR2” from the Canon 1Ds Mark III camera to Adobe DNG files“Canon1DsMkIII_0001.dng” using the Adobe DNG Converter tool"AdobeDNGConverter_x64_17_1.exe ".
(3)Parse DNG info using exiftool-13.10_32.exe tool, and the details are attached inCanon1DsMkIII_0001.dng.txt,with some information listed below:
#Canon1DsMkIII_0001.dng.txt:
#WB RGGB Levels As Shot : 1950 1079 1079 2536
#Color Temp As Shot : 3592
#Forward Matrix 1 : 0.8098 0.0217 0.1328 0.4016 0.691 -0.0926 0.0599 -0.1224 0.8877
#Forward Matrix 2 : 0.8098 0.0217 0.1328 0.4016 0.691 -0.0926 0.0599 -0.1224 0.8877
#Color Matrix 1 : 0.6705 -0.1154 -0.0458 -0.6783 1.4191 0.2848 -0.0853 0.1159 0.749
#Color Matrix 2 : 0.5858 -0.0211 -0.093 -0.8254 1.6018 0.2354 -0.1732 0.1888 0.7448
(4) calculate raw2xy matrix C
alpha = (1/3203 - 1/2856) / (1/6504 - 1/2856) ‎ = 0.19315
C = alpha*Forward_Matrix_2 + (1-alpha)*Forward_Matrix_1
= 0.8098 0.0217 0.1328 0.4016 0.691 -0.0926 0.0599 -0.1224 0.8877
However C is different with raw2xyz matrix from aug_data.json, which is
"raw2xyz":[[0.83241191941326331,0.041206179758279705,0.12638190082845693],[0.40796173206444919,0.70410873223358483,-0.11207046429803423],[0.070831032429659255,-0.14754084311174423,1.0767098106820852]],

Could you provide me with some guidance? I look forward to your reply.

@mahmoudnafifi
Copy link
Owner

mahmoudnafifi commented Dec 29, 2024

Unfortunately, I do not have access to the code that generated the augmented data to help with debugging the issue. Generally, one potential issue could be that, in the paper, I did not use the as shot CCT; instead, I computed it based on the ground-truth illuminant, as described in the supplementary materials.

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