00001 #ifndef vnl_file_matrix_h_ 00002 #define vnl_file_matrix_h_ 00003 // This is vxl/vnl/vnl_file_matrix.h 00004 00005 //: \file 00006 // \brief Load vnl_matrix<double> from file 00007 // \author Andrew W. Fitzgibbon, Oxford RRG, 23 Dec 96 00008 00009 // Modifications: 00010 // LSB (Manchester) 23/3/01 Documenation tidied 00011 // 00012 //----------------------------------------------------------------------------- 00013 00014 #include <vnl/vnl_matrix.h> 00015 //: Class to load a matrix from a file. 00016 export template <class T> 00017 class vnl_file_matrix : public vnl_matrix<T> { 00018 public: 00019 vnl_file_matrix(char const* filename); 00020 00021 operator bool() const { return ok_; } 00022 00023 private: 00024 bool ok_; 00025 }; 00026 00027 #endif // vnl_file_matrix_h_