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.
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). | |
| 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 * | ) |
| vil1_image vil1_load_raw | ( | vil1_stream * | ) |
1.5.1