@morteza thanks for this video..I would like to ask if this model would be able to turn an RGB image(e.g. a picture of a tree in my backyard) that is not in the RGB and HSI files folder you have into a hyperspectral image? Also, how can I get the code files too, I would really appreciate it. Thank you.
@@AmanSharma-vf7vs yes, every training models need two sets of data, training and testing. There are datasets out there where you can find the training and testing sets of your need. Email me and I can send the link to you…
Thank you for making this video! It seems like everything is clear, the only thing that writes the error "ValueError: Unknown mat file type, version 179, 29" at the output (7.52-11.23)
Thanks for the great research content, Morteza! I am confused as to the size of the training output, that is the hyperspectral cubes. Given the dataset you have, there are 32 sample images of 512 x 512 dimension in a hypercube with 31 spectral bands, but each band is represented by an image with still 3 channels (RBG), correct? It makes sense that the RGB input is of size (32, 512, 512, 3), but what is the size of the training output?
@@1bhogan So, the size of the input is (512,512,3) and the size of the output is (512,512,31). The number of images don't matter, as in the training the training images would go through the network one by one, according to the number of filters, which is three for the first layer, and 31 for the last layer.
Using this method, you could only estimate the spectral reflectance in the visible part of the spectrum but with a HS system you could get the spectral reflectance in areas like IR, UV as well. You should be careful what dataset you use as training using this method too! If you have material made out of plastic in your testing, you should make sure you have material made out of plastic in your training as well. Hope this helps!
The file that contains the hyperspectral image is a mat file, if that what you mean. Please let me know if that answers your question. Also, sorry for a late response, I was off for Christmas.
This is a big error. You are not obtaining actual data from this type of transformation. The idea when you are using a hyperspectral camera is to see those things that your eyes can not see. I mean, seeing in other regions of the the spectra.
It depends on the training and testing data actually. You can estimate the spectral reflectance at a very high accuracy depending on whether or not your training data and test data are of the same type ( material wise). There are papers out there that have shown the accuracy is actually very much acceptable :)
@@EnriqueAPOLOAPOLO yeah, that’s the sRGB image of the hyperspectral image. I plan to make a new video of this topic and make It contain some more useful things like the one you are saying.
@@Morteza_Sc if you are able to show me the spectral signature from an actual hyperspectral image and then the spectral signature for an image generated by your method I will believe in your method ;).
Thank you for making this video!
Thanks for making this video!!
@morteza thanks for this video..I would like to ask if this model would be able to turn an RGB image(e.g. a picture of a tree in my backyard) that is not in the RGB and HSI files folder you have into a hyperspectral image? Also, how can I get the code files too, I would really appreciate it. Thank you.
This model need dataset that contains both RGB and hyperspectral images ???
because i do not have hyperspectral images
@@AmanSharma-vf7vs yes, every training models need two sets of data, training and testing. There are datasets out there where you can find the training and testing sets of your need. Email me and I can send the link to you…
Is the same images which names u saved in untilled 2. Same input images in png form u r giving as input for matlab code
Thank you for making this video! It seems like everything is clear, the only thing that writes the error "ValueError: Unknown mat file type, version 179, 29" at the output (7.52-11.23)
Thanks for the great research content, Morteza! I am confused as to the size of the training output, that is the hyperspectral cubes. Given the dataset you have, there are 32 sample images of 512 x 512 dimension in a hypercube with 31 spectral bands, but each band is represented by an image with still 3 channels (RBG), correct? It makes sense that the RGB input is of size (32, 512, 512, 3), but what is the size of the training output?
Ah, do you have to convert the hyperspectral images to grayscale when you make the hypercube?
@@1bhogan So, the size of the input is (512,512,3) and the size of the output is (512,512,31). The number of images don't matter, as in the training the training images would go through the network one by one, according to the number of filters, which is three for the first layer, and 31 for the last layer.
How does this method compare to a real physical H.S. camera, like the Specim IQ Portable Hyperspectral Imaging Camera ?
Using this method, you could only estimate the spectral reflectance in the visible part of the spectrum but with a HS system you could get the spectral reflectance in areas like IR, UV as well. You should be careful what dataset you use as training using this method too! If you have material made out of plastic in your testing, you should make sure you have material made out of plastic in your training as well. Hope this helps!
@Morteza
Sorry, I understand what the error is, the only thing is not clear how the file with the hyperspectral image turned out
The file that contains the hyperspectral image is a mat file, if that what you mean. Please let me know if that answers your question. Also, sorry for a late response, I was off for Christmas.
@@Morteza_Sc
Thanks for the answer, yes exactly. Merry Christmas!
Hii morteza, can you please provide a link to the code for reference.
Send me an email and I’ll send you the code!
Can you drop your email here please
Hey what input images u are giving in matlab code?
Is the same images which names u saved in untilled 2. Same input images in png form u r giving as input for matlab code
@@infinity3865 I’m not sure what you are asking exactly. But the inputs are png images in RGB FORMAT, but the output is hyperspectral images.
I am asking what input have you given to accessories
Accessories.m what files are there
@@infinity3865 I’m away on vacation now but when I come back I’ll have a look at the code and let you know! Thank you!!
This is a big error. You are not obtaining actual data from this type of transformation. The idea when you are using a hyperspectral camera is to see those things that your eyes can not see. I mean, seeing in other regions of the the spectra.
It depends on the training and testing data actually. You can estimate the spectral reflectance at a very high accuracy depending on whether or not your training data and test data are of the same type ( material wise). There are papers out there that have shown the accuracy is actually very much acceptable :)
@@Morteza_Sc, It could be. But at the end of your video you are showing just two RGB images. I did not see the spectral signature.
@@EnriqueAPOLOAPOLO yeah, that’s the sRGB image of the hyperspectral image. I plan to make a new video of this topic and make
It contain some more useful things like the one you are saying.
@@Morteza_Sc if you are able to show me the spectral signature from an actual hyperspectral image and then the spectral signature for an image generated by your method I will believe in your method ;).
can you please provide your email ID for sending an email to get the code?
Email me at: morteza.maali.y2@gmail.com
@@Morteza_Sc Thank you