readMatrix.H

Go to the documentation of this file.
00001 /*! @file VFAT/readMatrix.H [put description here] */
00002 
00003 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/VFAT/readMatrix.H $
00004 // $Id: readMatrix.H 6182 2006-01-31 18:41:41Z rjpeters $
00005 
00006 /*! this class will read in the file fileName as a standard whitespace
00007   delimited file and put it into a matrix. The matrix can be retrieved
00008   in either a double nested std::vector<float> or an Image<float>. The input
00009   file must state the dimensions on the first line. Comments may be
00010   placed using # charactors
00011 */
00012 
00013 #include "Image/Image.H"
00014 #include <vector>
00015 
00016 class readMatrix
00017 {
00018 private:
00019   int sizeX, sizeY;
00020   std::vector<std::vector<double> > vectorIn;
00021   Image<float> outImage;
00022 public:
00023   readMatrix(const char* fileName);
00024   ~readMatrix();
00025   std::vector<std::vector<double> >  returnMatrix();
00026   Image<float> returnMatrixAsImage();
00027   void echoMatrix();
00028 };
00029 
00030 
Generated on Sun May 8 08:07:03 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3