iSpike
2.1
Spike conversion library for robotics
|
00001 #ifndef FILEVISUALREADER_HPP_ 00002 #define FILEVISUALREADER_HPP_ 00003 00004 #include <iSpike/Reader/VisualReader.hpp> 00005 #include <iSpike/Bitmap.hpp> 00006 00007 namespace ispike { 00008 00010 class FileVisualReader : public VisualReader { 00011 00012 public: 00013 00014 FileVisualReader(); 00015 ~FileVisualReader(); 00016 Bitmap& getBitmap(); 00017 void initialize(map<string, Property>& properties); 00018 void setImageID(unsigned imageID){this->imageID = imageID;}//Used for performance testing 00019 void setProperties(map<string, Property>& properties); 00020 void start() {} //Required by iSpikeThread, but not used by this class 00021 00022 private: 00023 00024 //==================== VARIABLES ====================== 00026 Bitmap bitmap; 00027 00028 //==================== METHODS ======================== 00029 void readPPMImage(string& fileName); 00030 void workerFunction() {} //Required by iSpikeThread, but not used by this class 00031 00032 }; 00033 00034 } 00035 00036 #endif /* FILEVISUALREADER_HPP_ */