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

About train dataset #6

Open
xuejiancai opened this issue Oct 11, 2021 · 7 comments
Open

About train dataset #6

xuejiancai opened this issue Oct 11, 2021 · 7 comments

Comments

@xuejiancai
Copy link

xuejiancai commented Oct 11, 2021

Hi,how do you get the corresponding RGB images from the hyperspectral images in the ICVL datasets?
Thank you for your reply! @ngchc

@opticshao
Copy link

There are some methods to convert HSI images to RGB.
You can refer to https://personalpages.manchester.ac.uk/staff/david.foster/Tutorial_HSI2RGB/Tutorial_HSI2RGB.html (Tutorial on Transforming Hyperspectral Images to RGB Colour Images)
Or maybe you can calibrate your camera's response.

@xuejiancai
Copy link
Author

I tried to generate an RGB image before, but I found that the color of the generated RGB image is quite different from the corresponding RGB image on the ICVL website. Why is this?Have you ever had such a problem?Thank you for your reply! @Hao-Xu-optics

@opticshao
Copy link

Maybe you forgot to execute gamma correction? And you should also consider the illuminant spectrum.
In the method I recommended above, they applied a gamma correction to the result.
eg: imshow(RGB_clip.^0.4, 'Border','tight'); (Matlab)

@xuejiancai
Copy link
Author

Well,I followed the tutorial you posted before and should have added gamma correction. Another question is how to obtain the light source spectrum? @Hao-Xu-optics

@opticshao
Copy link

You can download their code for HSI2RGB, illuminant spectrum's .mat files are included. For icvl I think illum_6500k is ok.

@xuejiancai
Copy link
Author

You can download their code for HSI2RGB, illuminant spectrum's .mat files are included. For icvl I think illum_6500k is ok.

ok,thanks for your suggestion!

@Dave-SUN
Copy link

Hello, when I run generate_data_rgb_ntire.m, matlab is always unresponsive, I don't know what's wrong with me, I hope you can give me some guidance, thank you very much. What I did was to create the folder "data" and create the folders "train_data" and "valid" in it respectively. In the folder "train_data", I created the folders "rgb_real" and "rgb_clean" respectively. In the folder "valid" create the folders "validClean" and "validReal" respectively. I'm confused, I don't know what to put in the above folders, I hope you can help me, thank you very much.

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

3 participants