Basics

IO

int32_t hv_hsi_file_open(char const *path, hv_hsi_file_t **file)

Opens a hyperspectral image file at the given path and returns an ImageFile handle.

Parameters:
  • path – Path to the file to open.

  • file – Output parameter for the resulting ImageFile.

Return values:
  • 0 – Ok

  • nonzero – Error

hv_image_t *hv_hsi_file_to_image(hv_hsi_file_t **file)

Converts an ImageFile to a image for flexible data access.

Parameters:

file – Output parameter for the ImageFile to convert. NOTE: it can’t be NULL

Returns:

Boxed image.

int32_t hv_image_write(hv_image_t const *dynimg, char const *path)

Writes a hv_image to the specified path.

Parameters:
  • dynimg – Image to write.

  • path – Path to write the image to.

Return values:
  • 0 – Ok

  • nonzero – Error

Useful global definitions

doxygentypedef:: hv_shape_t

autoclass:: qtec_hv_sdk.Shape autoclass:: qtec_hv_sdk.ButeoPamType

Axes

To make operations independent of memory ordering, the library uses the a type to specify axes:

autoclass:: qtec_hv_sdk.Axis

For convenience, the following shorthands are included:

Data types

The library currently uses its own internal types that are analogous to NumPy’s datatypes (no complex numbers for now). This might change in the future. The types are marked with the following tag type:

autoclass:: qtec_hv_sdk.DType

For convenience, the following shorthands are included: