read an image from a file More...
#include <vil/vil_fwd.h>
#include <vil/vil_image_resource.h>
#include <vil/vil_pyramid_image_resource.h>
#include <vxl_config.h>
Go to the source code of this file.
Functions | |
vil_image_resource_sptr | vil_load_image_resource (char const *filename, bool verbose=true) |
Load an image resource object from a file. | |
vil_image_resource_sptr | vil_load_image_resource_raw (vil_stream *, bool verbose=true) |
Load from a stream. | |
vil_image_resource_sptr | vil_load_image_resource_raw (char const *, bool verbose=true) |
Load an image resource object from a file. | |
vil_image_resource_sptr | vil_load_image_resource_plugin (char const *) |
Load from a filename with a plugin. | |
vil_pyramid_image_resource_sptr | vil_load_pyramid_resource (char const *directory_or_file, bool verbose=true) |
Load a pyramid image resource object from a file or directory. | |
vil_image_view_base_sptr | vil_load (const char *, bool verbose=true) |
Convenience function for loading an image into an image view. |
read an image from a file
vil_load returns a pointer to the base class of a vil_image_view object. You can then cast, or assign it to the appropriate type. You must not forget to delete the created view.
vil_load_image_resource() returns a smart pointer to vil_image_resource 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_view() returns.
Modifications 011002 Peter Vanroose - vil_load now respects top-is-first; vil_load_raw not 24 Sep 2002 Ian Scott - converted to vil
Definition in file vil_load.h.
vil_image_view_base_sptr vil_load | ( | const char * | , |
bool | verbose = true |
||
) |
Convenience function for loading an image into an image view.
Definition at line 130 of file vil_load.cxx.
vil_image_resource_sptr vil_load_image_resource | ( | char const * | filename, |
bool | verbose = true |
||
) |
Load an image resource object from a file.
Definition at line 71 of file vil_load.cxx.
vil_image_resource_sptr vil_load_image_resource_plugin | ( | char const * | ) |
Load from a filename with a plugin.
Definition at line 83 of file vil_load.cxx.
vil_image_resource_sptr vil_load_image_resource_raw | ( | vil_stream * | , |
bool | verbose = true |
||
) |
vil_image_resource_sptr vil_load_image_resource_raw | ( | char const * | , |
bool | verbose = true |
||
) |
Load an image resource object from a file.
Won't use plugins.
Definition at line 45 of file vil_load.cxx.
vil_pyramid_image_resource_sptr vil_load_pyramid_resource | ( | char const * | directory_or_file, |
bool | verbose = true |
||
) |
Load a pyramid image resource object from a file or directory.
Definition at line 103 of file vil_load.cxx.