Contenuto principale

run

Class: hyperspectral.labeler.AutomationAlgorithm
Namespace: hyperspectral.labeler

Run label automation algorithm on spectral image

Since R2026a

Description

Add-On Required: This feature requires the Hyperspectral Imaging Library for Image Processing Toolbox add-on.

labels = run(algObj,spcube) runs the automation algorithm algObj on the specified hypercube or multicube object spcube, and returns the labels labels. You can run your custom algorithm by selecting Run on the Automate tab of the Spectral Image Labeler app toolstrip.

Note

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

Input Arguments

expand all

Automation algorithm, specified as an object of the hyperspectral.labeler.AutomationAlgorithm class.

Spectral image to label, specified as a hypercube or multicube object.

Output Arguments

expand all

Labels produced by the automation algorithm, returned as a matrix. For an spcube that represents a spectral image of spatial dimensions M-by-N, the label matrix labels is also of size M-by-N.

You must define the automation algorithm to return a label matrix of M-by-N for a spectral image with spatial dimensions M-by-N.

Version History

Introduced in R2026a