Hyperspectral Image Processing
Hyperspectral Imaging Library for Image Processing Toolbox™ provides MATLAB® functions and tools for hyperspectral and multispectral image processing and visualization.
Use the functions in this library to read, write, and process data captured by using the hyperspectral and multispectral imaging sensors in a variety of file formats. The library supports national imagery transmission format (NITF), environment for visualizing images (ENVI), tagged image file format (TIFF), metadata text extension (MTL), hierarchical data format (HDF), and standard archive format for Europe (SAFE) file formats.
The library presents a set of algorithms for band selection, denoising, radiometric and atmospheric correction, dimensionality reduction, endmember extraction, abundance map estimation, spectral matching, anomaly detection, computing spectral indices, and segmentation.
The Hyperspectral Viewer app enables you to read hyperspectral and multispectral data, display metadata and geospatial information, visualize individual band images and their histograms, create a spectrum plot for a pixel or region in a data cube, plot endmembers, generate different color or false-color representations, compute spectral indices, and export results.
To perform hyperspectral and multispectral image analysis, download the Hyperspectral Imaging Library for Image Processing Toolbox from the Add-On Explorer. For more information on downloading add-ons, see Get and Manage Add-Ons.
Apps
Hyperspectral Viewer | Visualize hyperspectral and multispectral data |
Functions
Topics
Get Started
- Get Started with Hyperspectral Image Processing
Basics of hyperspectral image processing. - Analyze Hyperspectral and Multispectral Images
Describes approaches to hyperspectral and multispectral imaging. - Explore Hyperspectral and Multispectral Data in the Hyperspectral Viewer
This example shows how to explore hyperspectral and multispectral data using the Hyperspectral Viewer app. - Process Large Hyperspectral and Multispectral Images
This example shows how to process small regions of large hyperspectral and multispectral images. - Hyperspectral and Multispectral Data Correction
Describes radiometric calibration, atmospheric correction, and spectral correction. - Spectral Matching and Target Detection Techniques
Techniques for target detection and spectral matching. - Spectral Indices
Describes spectral indices. - Support for Singleton Dimensions
Analysis of 1-D and 2-D spectral data using singleton hypercube.
Classification
- Classify Hyperspectral Image Using Library Signatures and SAM
Classify pixels in a hyperspectral image by using the spectral angle mapper (SAM) classification algorithm. - Classify Hyperspectral Images Using Deep Learning
This example shows how to perform hyperspectral image classification using a custom spectral convolution neural network (CSCNN). - Classify Hyperspectral Image Using Support Vector Machine Classifier
This example shows how to perform hyperspectral image classification using a support vector machine (SVM) classifier.
Region Identification
- Target Detection Using Spectral Signature Matching
Detect a known target in the hyperspectral image by using the spectral matching method. - Identify Vegetation Regions Using Interactive NDVI Thresholding
Identify the types of vegetations regions in a hyperspectral image through interactive thresholding of a normalized difference vegetation index (NDVI) map. - Find Regions in Spatially Referenced Multispectral Image
This example shows how to identify water and vegetation regions in a Landsat 8 multispectral image and spatially reference the image.
Digital Twin
- Generate RoadRunner Scene Using Aerial Hyperspectral and Lidar Data (Automated Driving Toolbox)
Generate RoadRunner scene from aerial hyperspectral and lidar data.
Segmentation
- Interactively Segment Hyperspectral Image Using Segment Anything Model
This example shows how to interactively preprocess and segment a hyperspectral image using the Segment Anything Model (SAM). (Since R2025a)