Main Content

Hyperspectral Image Processing

Import, export, process, and visualize hyperspectral data

Image Processing Toolbox™ Hyperspectral Imaging Library provides MATLAB® functions and tools for hyperspectral image processing and visualization.

Use the functions in this library to read, write, and process hyperspectral data captured by using the hyperspectral 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), and metadata text extension (MTL) file formats.

The library presents a set of algorithms for endmember extraction, abundance map estimation, radiometric and atmospheric correction, dimensionality reduction, band selection, spectral matching, and anomaly detection.

The Hyperspectral Viewer app enables you to read hyperspectral data, visualize individual band images and their histograms, create a spectrum plot for a pixel or region in a hyperspectral data cube, generate color or false-color representations of hyperspectral images, and display metadata.

To perform hyperspectral image analysis, download the Image Processing Toolbox Hyperspectral Imaging Library from the Add-On Explorer. For more information on downloading add-ons, see Get and Manage Add-Ons.

Apps

Hyperspectral ViewerVisualize hyperspectral data

Functions

expand all

Read and Write

hypercubeRead hyperspectral data
enviwriteWrite hyperspectral data to ENVI file format
enviinfoRead metadata from ENVI header file

Band Selection and Band Removal

selectBandsSelect most informative bands
removeBandsRemove spectral bands from data cube

ROI Selection

assignDataAssign new data to hyperspectral data cube
cropDataCrop regions-of-interest

Color Transformation

colorizeEstimate color image of hyperspectral data
denoiseNGMeetDenoise hyperspectral images using non-local meets global approach
sharpencnmfSharpen hyperspectral data using coupled nonnegative matrix factorization (CNMF) method

Radiometric Calibration

dn2radianceConvert digital number to radiance
dn2reflectanceConvert digital number to reflectance
radiance2ReflectanceConvert radiance to reflectance

Atmospheric Correction

correctOOBCorrect out-of-band effect using sensor spectral response
empiricalLineEmpirical line calibration of hyperspectral data
fastInscenePerform fast in-scene atmospheric correction
flatFieldApply flat field correction to hyperspectral data cube
iarrApply internal average relative reflectance (IARR) correction to hyperspectral data cube
logResidualsApply log residual correction to hyperspectral data cube
rrsCompute remote sensing reflectance
subtractDarkPixelSubtract dark pixel value from hyperspectral data cube
sharcPerform atmospheric correction using satellite hypercube atmospheric rapid correction (SHARC)

Spectral Correction

reduceSmileReduce spectral smile effect in hyperspectral data cube
hyperpcaPrincipal component analysis of hyperspectral data
hypermnfMaximum noise fraction transform of hyperspectral data
inverseProjectionReconstruct data cube from principal component bands
ppiExtract endmember signatures using pixel purity index
fippiExtract endmember signatures using fast iterative pixel purity index
nfindrExtract endmember signatures using N-FINDR
countEndmembersHFCFind number of endmembers
estimateAbundanceLSEstimate abundance maps
readEcostressSigRead data from ECOSTRESS spectral library
samMeasure spectral similarity using spectral angle mapper
sidMeasure spectral similarity using spectral information divergence
jmsamMeasure spectral similarity using Jeffries Matusita-Spectral Angle Mapper method
sidsamMeasure spectral similarity using spectral information divergence-spectral angle mapper hybrid method
ns3Measure normalized spectral similarity score
spectralMatchIdentify unknown regions or materials using spectral library
spectralIndicesCompute hyperspectral indices
ndviNormalized vegetation index
anomalyRXDetect anomalies using Reed-Xiaoli detector

Topics

Getting Started with Hyperspectral Image Processing

Basics of hyperspectral image processing.

Explore Hyperspectral Data in the Hyperspectral Viewer

This example shows how to explore hyperspectral data using the Hyperspectral Viewer app.

Hyperspectral Data Correction

Describes radiometric calibration and atmospheric correction.

Featured Examples