Read a hyperspectral flat (FLA) file from disk

Contents

Syntax:

       I = FLAread(FILENAME);
       I = FLAread(FILENAME, scale);
       I = FLAread(FILENAME, rows, cols);
       I = FLAread(FILENAME, rect);

Description:

   FLAread loads the content of an ENVI standard flat file (FLA). Note that
   the header file of the hyperspectral image has to be present along with the
   data file on the same folder.

Input:

   FILENAME: Name of the flat (FLA) file to be opened, including the
         extension
   rows, cols: Image cube dimensions. Note that the hyperspectral image is to be resized if 
         required.
   scale: Scale up to which the image is to be resized at loading time.
   rect: Used to crop the image at loading time. rect is a four-element
         position vector [xmin ymin width height] that specifies the size
         and position of the crop rectangle.

Output:

   
    I: Data structure containing the header and image cube for the flat
         file.

See also

 FLAwrite, HSZwrite, HSZread, SLZwrite, SLZread