core/vil1/vil1_load.h File Reference


Detailed Description

read an image from a file

vil1_load() returns a vil1_image which will "read an image from a file". In practice it may or may not read the image on creation, but a disk read will take place at some point before get_section() returns.

vil1_load() ensures image semantics with regard to vertical orientation: the first image row is always the top pixel row of the image. The disk-stored file could have a different convention, in which case row swapping is performed.

To avoid this possible row swapping, use the vil1_load_raw() functions.

Author:
awf@robots.ox.ac.uk
    Modifications
       011002 Peter Vanroose - vil1_load now respects top-is-first; vil1_load_raw not
  

Definition in file vil1_load.h.

#include <vil1/vil1_fwd.h>
#include <vil1/vil1_image.h>

Go to the source code of this file.


Functions

vil1_image vil1_load (char const *filename)
 Load an image from a file, possibly performing expected conversions.
vil1_image vil1_load_raw (vil1_stream *)
 Load raw from stream.
vil1_image vil1_load_raw (char const *)
 Load raw from file (convenience).

Function Documentation

vil1_image vil1_load ( char const *  filename  ) 

Load an image from a file, possibly performing expected conversions.

Definition at line 63 of file vil1_load.cxx.

vil1_image vil1_load_raw ( char const *   ) 

Load raw from file (convenience).

Definition at line 46 of file vil1_load.cxx.

vil1_image vil1_load_raw ( vil1_stream  ) 

Load raw from stream.

Definition at line 17 of file vil1_load.cxx.


Generated on Sat Nov 22 05:08:30 2008 for core/vil1 by  doxygen 1.5.1