SpectraVis

Spectral Analysis Tool for Hyperspectral Data Cubes

SpectraVis

Overview

This tool enables the visualization and analysis of hyperspectral data cubes by allowing users to interactively select points on a False Color Composite (FCC) image. Once the points are selected, the corresponding spectra are plotted for easy inspection, saving to library and to compare with other spectrums.

Repository: https://github.com/SomshuvraBasu/SpectraVis

Features

1. Spectral Visualization

The spectral visualization module enables comprehensive exploration of pixel spectra within a Hyperspectral Data Cube. This feature allows:

2. Spectral Library Creation

A robust spectral library management system that:

3. Spectral Comparison

Advanced spectral matching capabilities utilizing the Spectral Angle Mapper (SAM) algorithm:

Spectral Angle Mapper (SAM) Methodology

The Spectral Angle Mapper (SAM) is a geometrical method for spectral matching that:

SAM Calculation

How It Works

  1. Load your hyperspectral data cube and metadata file.
  2. View the FCC image of the hyperspectral cube.
  3. Click on the image to select pixels.
  4. Click the Submit button to display the radiance spectra for the selected pixels.

Installation

  1. Clone the repository:
    git clone https://github.com/SomshuvraBasu/SpectraVis.git
    
  2. Navigate into the repository directory:
    cd SpectraVis
    
  3. Install requirements:
    pip install -r requirements.txt
    

Usage

Run the tool with the following command:

python app.py

Demo

Screenshots

Spectral Visualisation Spectral Library Spectral Comparison

Video

https://www.youtube.com/watch?v=JJNc62DRIW4

https://github.com/user-attachments/assets/78d11ec0-98e3-48b2-abfc-1819bcc77ae7

File Structure

Requirements