/vol/vipdata/irtk/image++/include/irtkFilePGMToImage.h

00001 /*=========================================================================
00002 
00003   Library   : Image Registration Toolkit (IRTK)
00004   Module    : $Id: irtkFilePGMToImage.h 8 2009-03-02 16:12:58Z dr $
00005   Copyright : Imperial College, Department of Computing
00006               Visual Information Processing (VIP), 2008 onwards
00007   Date      : $Date: 2009-03-02 16:12:58 +0000 (Mon, 02 Mar 2009) $
00008   Version   : $Revision: 8 $
00009   Changes   : $Author: dr $
00010 
00011 =========================================================================*/
00012 
00013 #ifndef _IRTKFILEPGMTOIMAGE
00014 
00015 #define _IRTKFILEPGMTOIMAGE
00016 
00017 // PGM magic number
00018 #define PGM_MAGIC         "P5"
00019 
00029 class irtkFilePGMToImage : public irtkFileToImage
00030 {
00031 
00032 protected:
00033 
00035   virtual void ReadHeader();
00036 
00037 public:
00038 
00040   virtual const char *NameOfClass();
00041 
00043   static int CheckHeader(const char *);
00044 };
00045 
00046 #endif