This is a Simple GUI (MATLAB guide) app to load, preview, perform PCA and save spectral data from Hyperspectral images
Dependencies
- This app was developed in MATLAB 2019b
- It depends on MATLAB GUIDE, Image processing Toolbox, and the Statistics and Machine Learning Toolbox.
How to Run app
- Download this repository
- unzip the contents to specified folder
- Change current working directory to the specified folder
- Run command "Display_Data_GUI" to run the app GUI
The app is able to load any ENVI-format (i.e in ".bil", ".dat", ".file", or "img" format) Hyperspectral Imaging (HSI) data from any directory. The loading of the ENVI format HSI data was inherited from Link-dev's ENVI_readAndWrite (https://github.com/Link-dev/ENVI_readAndWrite) repository. Check out sample header file "G1.hdr" for comparison with your data.
You can specify a waveband of the HSI data to be displayed in main plot window. You can select any portion of the image to preview the spectral data behind each of the selected pixels. Plot spectral data of multiple points in the image to unveil spectral similarities or disparities with in you HSI data (see screenshots below).
Further more, You can a PCA analysis on the HSI data and return PCA images which can further reveal clear sources of variance in the HSI data (see screenshot below).
Finally, you can save spectral data of specied points in the HSI data in .txt format to folder of your choice.
Hopefully this is helpful to any one seeking to have a quick understanding of his HSI data.
Enjoy...