.. automodule:: pysptools.util

Util functions and classes
**************************

The load_ENVI_file and load_ENVI_spec_lib functions are used by the examples to load the HS cubes
that are saved in the ENVI file format. The functions corr and cov are the one
defined in the Matlab Hyperspectral Toolbox.

------------------------------

load_ENVI_file
==============

.. autofunction:: pysptools.util.load_ENVI_file

------------------------------

load_ENVI_spec_lib
==================

.. autofunction:: pysptools.util.load_ENVI_spec_lib

------------------------------

corr
====

.. autofunction:: pysptools.util.corr

------------------------------

cov
===

.. autofunction:: pysptools.util.cov

------------------------------

display_linear_stretch
======================

.. autofunction:: pysptools.util.display_linear_stretch

------------------------------

plot_linear_stretch
===================

.. autofunction:: pysptools.util.plot_linear_stretch

------------------------------

convert2d
=========

.. autofunction:: pysptools.util.convert2d

------------------------------

convert3d
=========

.. autofunction:: pysptools.util.convert3d

------------------------------

normalize
=========

.. autofunction:: pysptools.util.normalize

------------------------------

ROIs
====

.. autoclass:: pysptools.util.ROIs
    :members:

------------------------------


InputValidation
===============

.. autoclass:: pysptools.util.InputValidation
    :members:
