Wavelet and Image class library  1.3.2
RawReader.hh
Go to the documentation of this file.
00001 /*
00002  * class RawReader
00003  *
00004  * $Date$
00005  * $Revision$
00006  *
00007  */
00008 
00009 #ifndef RAW_READER_HH__
00010 #define RAW_READER_HH__
00011 
00012 #include "WImage/GreymapReader.hh"
00013 
00021 class 
00022 RawReader: public GreymapReader
00023 {
00024 public:
00025 
00039   RawReader (char const * name, ImageArray<coeff> &data, int y = 512, 
00040              int x = 512, int offs = 0): GreymapReader (name, data) 
00041   { header (offs); rows (y); cols (x); }
00042 
00044   virtual ~RawReader (void) {}
00045 
00049   inline void header (int offs) { m_offset = offs; }
00053   inline void cols (int cols) { m_xsize = cols; }
00057   inline void rows (int rows) { m_ysize = rows; }
00058 
00059 private:
00062   int m_offset;
00064   int m_xsize;
00066   int m_ysize;
00067   
00068 protected:
00073   virtual int readfmt (void);
00074 
00075 }; /* class RawReader */
00076 
00079 #endif /* RAW_READER_HH__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines