00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00020 #ifndef CImageReader_h
00021 #define CImageReader_h
00022
00023 #include <CReader.h>
00024
00025 #if defined (WIN32)
00026 # if defined MOTION2D_DLL_EXPORTS
00027 # define MOTION2D_API __declspec( dllexport )
00028 # elif defined MOTION2D_DLL_IMPORTS
00029 # define MOTION2D_API __declspec( dllimport )
00030 # else
00031 # define MOTION2D_API
00032 # endif
00033 #else
00034 # define MOTION2D_API
00035 #endif
00036
00037 class MOTION2D_API CImageReader: public CReader
00038 {
00039 public:
00040 ~CImageReader();
00041
00042 string getFileName();
00043 bool getFrame(CMotion2DImage<unsigned char> & I, unsigned nbsubsample,
00044 unsigned nrows=0, unsigned ncols=0);
00045 bool getFrame(CMotion2DImage<short> & I, unsigned nbsubsample,
00046 unsigned nrows=0, unsigned ncols=0);
00047 bool openStream() {return true;};
00048 bool closeStream() {return true; };
00049 void getType() { cout <<" ImageReader "<<endl;};
00050 EReaderFormat getFormat();
00051 unsigned getNbSubsample();
00052 };
00053
00054 #endif