vil_load.h
Go to the documentation of this file.
1 // This is core/vil/vil_load.h
2 #ifndef vil_load_h_
3 #define vil_load_h_
4 //:
5 // \file
6 // \brief read an image from a file
7 //
8 // vil_load returns a pointer to the base class of a vil_image_view object.
9 // You can then cast, or assign it to the appropriate type. You must not forget to
10 // delete the created view.
11 //
12 // vil_load_image_resource() returns a smart pointer to vil_image_resource which
13 // will "read an image from a file". In practice
14 // it may or may not read the image on creation, but a disk read will take place at
15 // some point before get_view() returns.
16 //
17 // \author awf@robots.ox.ac.uk
18 //
19 // \verbatim
20 // Modifications
21 // 011002 Peter Vanroose - vil_load now respects top-is-first; vil_load_raw not
22 // 24 Sep 2002 Ian Scott - converted to vil
23 //\endverbatim
24 
25 #include <vil/vil_fwd.h>
26 #include <vil/vil_image_resource.h>
28 #include <vxl_config.h>
29 
30 //: Load an image resource object from a file.
31 // \relatesalso vil_image_resource
33  bool verbose = true);
34 
35 //: Load from a stream.
36 // Won't use plugins.
37 // \relatesalso vil_image_resource
39  bool verbose = true);
40 
41 //: Load an image resource object from a file.
42 // Won't use plugins.
43 // \relatesalso vil_image_resource
45  bool verbose = true);
46 
47 //: Load from a filename with a plugin.
48 // \relatesalso vil_image_resource
50 
51 
52 //: Load a pyramid image resource object from a file or directory.
53 // \relatesalso vil_pyramid_image_resource
55 vil_load_pyramid_resource(char const* directory_or_file, bool verbose = true);
56 
57 //: Convenience function for loading an image into an image view.
58 // \relatesalso vil_image_view
59 vil_image_view_base_sptr vil_load(const char *, bool verbose = true);
60 
61 
62 #if defined(_WIN32) && VXL_USE_WIN_WCHAR_T
63 //: Load an image resource object from a file.
64 // \relatesalso vil_image_resource
65 vil_image_resource_sptr vil_load_image_resource(wchar_t const* filename, bool verbose = true);
66 
67 //: Load an image resource object from a file.
68 // Won't use plugins.
69 vil_image_resource_sptr vil_load_image_resource_raw(wchar_t const*, bool verbose = true);
70 
71 //: Convenience function for loading an image into an image view.
72 // \relatesalso vil_image_view
73 vil_image_view_base_sptr vil_load(const wchar_t *, bool verbose = true);
74 #endif //defined(_WIN32) && VXL_USE_WIN_WCHAR_T
75 
76 
77 #endif // vil_load_h_
vil_image_resource_sptr vil_load_image_resource_raw(vil_stream *, bool verbose=true)
Load from a stream.
Definition: vil_load.cxx:19
vil_image_resource_sptr vil_load_image_resource_plugin(char const *)
Load from a filename with a plugin.
Definition: vil_load.cxx:80
Stream interface for VIL image loaders.
Definition: vil_stream.h:21
Representation of a pyramid resolution hierarchy.
vil_image_resource_sptr vil_load_image_resource(char const *filename, bool verbose=true)
Load an image resource object from a file.
Definition: vil_load.cxx:68
Representation of a generic image source or destination.
vil_image_view_base_sptr vil_load(const char *, bool verbose=true)
Convenience function for loading an image into an image view.
Definition: vil_load.cxx:128
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: vil_load.cxx:100