Skip to main content

Getting Started

This page introduces the HV Explorer workspace and the first actions needed to start exploring a hyperspectral datacube. You will learn where the main tools are located, how to open example data, how to inspect metadata, and how to use the preview controls before moving on to calibration, annotations, spectra, PCA, and machine-learning workflows.

General Interface

Start by opening HV Explorer. The following interface will appear:

HV Explorer interface

HV Explorer interface

The numbered controls are divided into the top toolbar and the workspace panes. Commands hidden inside menus are described separately below.

Top toolbar

NumberControlDescription
1Open menuOpens datacubes, opens them with the Setup Wizard, or selects the root folder used by the Files pane.
2View menuShows or hides analysis, recording, file-management, and inspection panes.
3Save menuExports the processed datacube or the currently displayed preview slice.
4Perspective selectionSwitches between predefined workspace layouts for general use, analysis, or recording.
5More menuShows HV Explorer version, copyright, and third-party license information.

Workspace panes

NumberPaneDescription
6AnnotationsCreates and manages ROIs, labels, colors, visibility, and annotation properties.
7ML trainerTrains machine-learning models using annotated ROIs.
8FilesBrowses files and provides actions for opening datacubes.
9Open folderSelects the root folder used by the Files pane and file-based actions.
10Open imagesLists the datacubes currently open and switches between them.
11Recording inspectorProvides live-capture controls and recording settings.
12Workflow editorBuilds processing pipelines containing calibration, crop, binning, band-selection, and model operations.
13Metadata inspectorDisplays properties such as shape, data type, interleave, and wavelength information.

Menu commands are not all visible in the default interface screenshot. The following tables describe the actions available from each top-toolbar menu.

Open menu

CommandDescription
OpenOpens a PAM, ENVI (HDR), or TIFF datacube.
Open and SetupOpens a datacube and starts the Setup Wizard for wavelength information and reflectance calibration.
Open folderSelects the root folder used by the Files pane and file-based actions.

View menu

CommandDescription
Spectral ViewerShows spectra for selected ROIs and point measurements.
AnnotationsShows the annotation and ROI tools.
PCAComputes PCA from ROI samples and displays scores and component loadings.
RecordingOpens the workspace used for live-capture workflows.
Recording InspectorShows live-capture controls and recording settings.
ML trainerShows tools for training models from annotated ROIs.
FilesShows the file-browser pane.
Open imagesShows the datacubes currently open in the session.
Metadata inspectorShows metadata for the selected datacube.
Workflow editorShows the processing-pipeline editor.

Save menu

CommandDescription
Export current imageExports the processed datacube as PAM, ENVI (HDR), or TIFF using BIL, BIP, or BSQ interleave.
Export preview sliceExports the currently displayed preview slice as a 2D image.

More menu

CommandDescription
About HSI ViewerShows the HV Explorer version and copyright information.
License informationShows licenses for the third-party Python packages used by HV Explorer.

Perspectives and workspace layout

Perspectives provide predefined workspace layouts for different tasks:

PerspectiveIntended use
DefaultOpening datacubes, viewing images, and inspecting metadata.
AnalysisWorking with annotations, spectra, PCA, machine-learning models, and processing workflows.
RecordingConfiguring cameras and performing live capture.

The panes in HV Explorer can be moved and rearranged to create a workspace that matches your preferred workflow. Each perspective remembers its own pane layout, so switching perspectives restores the arrangement last used for that perspective.

To restore a perspective to its predefined layout, double-click its perspective icon in the top toolbar. This resets only the selected perspective; layouts saved for the other perspectives are not affected.

Loading datacubes

HV Explorer can open datacubes in PAM, ENVI (HDR), and TIFF formats (with BIL, BIP, or BSQ interleave). Datacubes can be loaded in several ways:

  • Click the Open Menu (#1) and choose Open to select a datacube with a file dialog.
    • Choose Open and Setup when you want to open a datacube and immediately run the Setup Wizard for wavelength information and reflectance calibration.
  • Double-click a file in the Files list (#8) to open that file.
  • Right-click a file in the Files list (#8) and choose Open.
Open folder

By default the Files pane starts in the home directory, but this can be changed using the Open folder (#9) action. The new folder will be used as the base directory for all file based operations (save/load annotations, models, data export, ...).

PAM interleave

Note that HV SDK (the HV Explorer backend) supports all three types of interleave for the PAM file format. However, in order to determine the interleave and properly load the files, it expects the interleave type to be specified in the TUPLTYPE part of the header.

In this example we have used the mixed nuts example data: mix1.pam, containing almonds, walnuts and hazelnuts.

HV Explorer: image loaded img70p

HV Explorer: image loaded

After loading, the datacube is added to Open Images (#10). When opened normally, the preview starts in Gray mode, showing the middle band with the default inferno color map (in this example, the cube has 900 bands, so band 450 is shown). When opened with the Setup Wizard, the preview starts in Color mode using the False RGB preset.

It is possible to move the image around and zoom in/out by using the mouse.

Open Images pane

Loaded datacubes are listed in the Open Images pane (#10). Click an entry to switch to that datacube. To close a datacube, right-click its entry and select Remove image. Removing an image closes it in HV Explorer but does not delete the source file.

Closing the preview tab does not close the file

Each datacube has a preview tab in the main view area. Closing that tab hides the preview but leaves the datacube open — it remains listed in Open Images and continues to be available for spectral, PCA, and ML workflows. To fully close a datacube, right-click its entry in Open Images and select Remove image.

HV Explorer: image loaded img70p

HV Explorer: image loaded

Lazy loading

Because HV Explorer uses the HV SDK lazy loading model, opening a datacube does not immediately load the full hyperspectral cube into RAM. Data is read and processed only when needed for preview, spectra, operations, export, or model workflows. This makes it practical to keep multiple large datacubes open for comparison without exhausting system memory.

Demo

HV Explorer: loading datacubes

Preview Settings

HV Explorer: preview settings img70p

HV Explorer: preview settings

After a datacube has been loaded, the preview toolbar can be used to adjust how the datacube is displayed. These settings affect the preview only; they do not change the underlying datacube or processing pipeline. The controls are available through the four icons on the top right of the preview window:

NumberSettingDescription
1Mirror image horizontallyToggle horizontal mirroring of the preview image.
2Transpose spatial axesToggle transposition of the spatial axes in the preview image.
3Brightness settingsOpen contrast stretching controls for automatic or manual brightness adjustment.
4Mode and channel settingsOpen controls for selecting Gray or Color preview mode, bands/channels, color maps, and presets.
Preview orientation

Use Mirror image horizontally and Transpose spatial axes when the preview orientation does not match the physical sample layout on a Lab Scanner. These settings only change how the datacube is displayed in HV Explorer, making it easier to compare the screen with the sample position and scan direction.

Brightness settings

The brightness controls adjust the contrast stretch used for the displayed preview slice. By default, Auto Brightness is enabled so HV Explorer chooses a useful display range automatically. When Auto Brightness is disabled, use the Min and Max sliders to set the display range manually.

HV Explorer: brightness settings img70p

HV Explorer: brightness settings

Mode and channel settings

The mode and channel settings control whether the preview is shown as a single band or as a false-color composite.

HV Explorer: gray preview mode img70p

HV Explorer: gray preview mode

Gray

In Gray mode, one channel/band is displayed using a selected color map.

SettingDescription
Gray channelSelects which band is displayed.
Color mapChooses the color map used for the grayscale image of the selected band.

Color

In Color mode, a false-color image is generated from selected bands. More than one neighboring band can be averaged into each color channel to reduce noise.

SettingDescription
Red channelSelects which band is used for the red channel.
Green channelSelects which band is used for the green channel.
Blue channelSelects which band is used for the blue channel.
Channel AverageSelects how many neighboring bands are averaged into each color channel.
PresetsSelects predefined false-color mappings such as False RGB color or Infrared RGB 1 (CIR). Presets require wavelength information from the datacube metadata, the Setup Wizard, or the Wavelength Spec operation.

HV Explorer: color preview mode img70p

HV Explorer: color preview mode

Converting between bands and wavelengths

For a full-range HV 1700 datacube with 900 bands, approximate conversions are:

  • Band index: B = (W - 430) * 899 / (1700 - 430)
  • Wavelength: W = B * (1700 - 430) / 899 + 430

Common values:

ColorWavelengthBand index
R~620 nm134
G~530 nm71
B~450 nm14

Demo

HV Explorer: Preview inspector

Exporting the preview slice

Use Save > Export preview slice to save the currently rendered preview as a PNG or JPEG image. The exported image reflects the selected gray or color mode, channels, color map, and brightness adjustment. It is a 2D visualization, not a hyperspectral datacube; use Export current image when the spectral data must be preserved.

Metadata inspector

The Metadata inspector (#13) shows the properties of the currently selected datacube and updates as workflow operations change the result. Use it to verify the shape, data type, interleave, wavelength information, and other header metadata before analysis or export.

DimensionMeaning
LinesNumber of scan lines, corresponding to image height.
SamplesSpatial width.
BandsNumber of spectral channels.

HV Explorer: metadata information img70p

HV Explorer: metadata information

The Metadata inspector is useful even when no wavelength information is available. When wavelengths are missing, add them with Wavelength Spec or the Setup Wizard.