TarzaNN
TarzaNN neural network simulator
|
00001 #ifndef INPUTLEARNINGFEATUREPLANE_H_INCLUDED 00002 #define INPUTLEARNINGFEATUREPLANE_H_INCLUDED 00003 00004 #include <qimage.h> 00005 00006 #include "nowarn.h" 00007 #include "common.h" 00008 #include <stdlib.h> 00009 00010 #include "OutputImage.h" 00011 #include "InputFeaturePlaneAbstract.h" 00012 #include "FeaturePlaneInput.h" 00013 #include "NotifyStrategyASync.h" 00014 #include "NotifyStrategySync.h" 00015 00016 #include "FacesDataset.h" 00017 #include "FullNorbDataset.h" 00018 #include "GreebleDataset.h" 00019 #include "RoozDataset.h" 00020 #include "RoozDataset2.h" 00021 #include "RoozDatasetOR2.h" 00022 #include "RoozDataset5.h" 00023 #include "SmallNorbDataset.h" 00024 #include "SOMDataset.h" 00025 #include "SOMGeomDataset.h" 00026 #include "VanRullenDataset.h" 00027 00028 //#define SIMPLE_TEST 00029 00031 class InputLearningFeaturePlane : public InputFeaturePlaneAbstract { 00032 friend class FeaturePlaneFactory; 00033 public: 00034 ~InputLearningFeaturePlane(); 00036 OutputImage* getCurrentOutput(); 00037 OutputImage* getCurrentOutput(int index); 00039 OutputImage** getCurrentOutputs(); 00040 void inhibitReturn(); 00041 00043 bool isSameAsLast(); 00044 00045 00046 protected: 00047 char* mask_filename; 00048 bool input_scale; 00049 float input_min, input_max; 00050 int window; 00051 //should noise be added to the input image after loading 00052 bool noise; 00053 00063 InputLearningFeaturePlane( Network* net, int l, char* filename, QString* name, bool isWTA, bool visible, bool scale, bool noise, float min, float max, NotifyStrategyAbstract* notify, int maxSteps, int levels); 00064 00065 private: 00066 00067 void step(); 00068 void applyGatingControl(); 00069 Dataset* dataset; 00070 int currentIndex; 00071 void loadDataset(char* inputFileName); 00072 #ifdef SIMPLE_TEST 00073 //test 00074 QImage* trainTestImages[5]; 00075 #endif 00076 }; 00077 #endif //INPUTLEARNINGFEATUREPLANE_H_INCLUDED