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 bool verbose = true); 00035 00036 //: Load from a stream. 00037 // Won't use plugins. 00038 // \relates vil_image_resource 00039 vil_image_resource_sptr vil_load_image_resource_raw(vil_stream *, 00040 bool verbose = true); 00041 00042 //: Load an image resource object from a file. 00043 // Won't use plugins. 00044 // \relates vil_image_resource 00045 vil_image_resource_sptr vil_load_image_resource_raw(char const*, 00046 bool verbose = true); 00047 00048 //: Load from a filename with a plugin. 00049 // \relates vil_image_resource 00050 vil_image_resource_sptr vil_load_image_resource_plugin(char const*); 00051 00052 00053 //: Load a pyramid image resource object from a file or directory. 00054 // \relates vil_pyramid_image_resource 00055 vil_pyramid_image_resource_sptr 00056 vil_load_pyramid_resource(char const* directory_or_file, bool verbose = true); 00057 00058 //: Convenience function for loading an image into an image view. 00059 // \relates vil_image_view 00060 vil_image_view_base_sptr vil_load(const char *, bool verbose = true); 00061 00062 #endif // vil_load_h_
1.5.1