Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vil_load.h

Go to the documentation of this file.
00001 // This is core/vil/vil_load.h
00002 #ifndef vil_load_h_
00003 #define vil_load_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \brief read an image from a file
00010 //
00011 // vil_load returns a pointer to the base class of an vil_image_view object.
00012 // You can then cast, or assign it to the appropriate type. You must not forget to
00013 // delete the created view.
00014 //
00015 // vil_load_image_resource() returns a smart pointer to vil_image_resource which
00016 // will "read an image from a file". In practice
00017 // it may or may not read the image on creation, but a disk read will take place at
00018 // some point before get_view() returns.
00019 //
00020 // \author awf@robots.ox.ac.uk
00021 //
00022 // \verbatim
00023 //  Modifications
00024 //     011002 Peter Vanroose - vil_load now respects top-is-first; vil_load_raw not
00025 //     24 Sep 2002 Ian Scott - converted to vil
00026 //\endverbatim
00027 
00028 #include <vil/vil_fwd.h>
00029 #include <vil/vil_image_resource.h>
00030 #include <vil/vil_pyramid_image_resource.h>
00031 //: Load an image resource object from a file.
00032 // \relates vil_image_resource
00033 vil_image_resource_sptr vil_load_image_resource(char const* filename);
00034 
00035 //: Load from a stream.
00036 // Won't use plugins.
00037 vil_image_resource_sptr vil_load_image_resource_raw(vil_stream *);
00038 
00039 //: Load an image resource object from a file.
00040 // Won't use plugins.
00041 vil_image_resource_sptr vil_load_image_resource_raw(char const*);
00042 
00043 //: Load from a filename with a plugin.
00044 vil_image_resource_sptr vil_load_image_resource_plugin(char const*);
00045 
00046 //: Load a pyramid image resource object from a file or directory.
00047 // \relates vil_pyramid_image_resource
00048 vil_pyramid_image_resource_sptr vil_load_pyramid_resource(char const* directory_or_file);
00049 
00050 //: Convenience function for loading an image into an image view.
00051 // \relates vil_image_view
00052 vil_image_view_base_sptr vil_load(const char *);
00053 
00054 #endif // vil_load_h_

Generated on Thu Jan 10 14:40:01 2008 for core/vil by  doxygen 1.4.4