Main Content

Hyperspectral Viewer

Visualize hyperspectral and multispectral data

Description

The Hyperspectral Viewer app visualizes hyperspectral and multispectral data, enables you to create spectral profiles of points and regions in the data, plot endmembers, compute spectral indices, and export results.

Note

This app requires the Hyperspectral Imaging Library for Image Processing Toolbox™. You can install the Hyperspectral Imaging Library for Image Processing Toolbox from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

The Hyperspectral Imaging Library for Image Processing Toolbox requires desktop MATLAB®, as MATLAB Online™ and MATLAB Mobile™ do not support the library.

Hyperspectral Viewer app

Open the Hyperspectral Viewer App

  • MATLAB Toolstrip: On the Apps tab, under Image Processing and Computer Vision, click the Hyperspectral Viewer app icon.

  • MATLAB command prompt: Enter hyperspectralViewer. For more information, see Programmatic Use.

Examples

expand all

Construct a hypercube object with the Indian Pines hyperspectral data set.

hcube = imhypercube("indian_pines.dat");

Open the Hyperspectral Viewer app with the Indian Pines data.

hyperspectralViewer(hcube);

Related Examples

Programmatic Use

expand all

hyperspectralViewer opens the Hyperspectral Viewer app.

hyperspectralViewer(spcube) opens the Hyperspectral Viewer app, loading the hypercube or multicube object spcube into the app. If spcube is a multicube object and it does not have uniform resolution across all spectral bands, the app chooses the resolution of one of the spectral bands and resamples the all the bands to the chosen resolution.

hyperspectralViewer(spcube,resolution) opens the Hyperspectral Viewer app, loading the multicube object spcube into the app after resampling all the bands to the resolution specified by resolution. The input argument resolution must be the resolution of one of the spectral bands of the multicube object spcube. (since R2025a)

hyperspectralViewer(cube) opens the Hyperspectral Viewer app, loading the 3-D array cube. When not loading a hypercube or multicube object, the capabilities of the app are limited.

hyperspectralViewer close closes all open Hyperspectral Viewer apps.

Version History

Introduced in R2020a

expand all

See Also

Objects