pythonenthought

Hyperspectral Image Processing with Python


How do you read into memory a hyperspectral image (3d) using python's enthought canopy distribution?


Solution

  • Installing Spectral Python (Spy) is the best way to go:

    C:\Users\Me> pip install spectral
    

    Once you get the module installed, reading a hyperspectral image into memory can be readily accomplished by:

    >>> import spectral
    >>> img = spectral.open_image(<HSI_filename>)