00001 // This is core/vil1/vil1_file_image.h 00002 #ifndef vil1_file_image_h_ 00003 #define vil1_file_image_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \brief Class to load an image from disk 00010 // \author awf@robots.ox.ac.uk 00011 // \date 15 Mar 00 00012 00013 #include <vcl_string.h> 00014 #include <vil1/vil1_image.h> 00015 00016 //: Load an image from disk 00017 class vil1_file_image : public vil1_image 00018 { 00019 public: 00020 enum verbosity { 00021 silent, 00022 laconic, 00023 verbose 00024 }; 00025 00026 // Default constructor 00027 vil1_file_image() {} 00028 00029 //: Attempt to load named file 00030 vil1_file_image(char const* filename, verbosity v=verbose) {load(filename,v);} 00031 //: Attempt to load named file 00032 vil1_file_image(vcl_string const& f, verbosity v=verbose) { load(f, v); } 00033 00034 //: Attempt to load named file 00035 bool load(char const* filename, verbosity = verbose); 00036 //: Attempt to load named file 00037 bool load(vcl_string const&, verbosity = verbose); 00038 }; 00039 00040 #endif // vil1_file_image_h_
1.5.1