TarzaNN
TarzaNN neural network simulator
|
00001 #ifndef MGMOTIONFEATUREPLANE_H 00002 #define MGMOTIONFEATUREPLANE_H 00003 00004 #include "Array2D.h" 00005 #include "Network.h" 00006 #include "FeaturePlane.h" 00007 #include "Direction.h" 00008 #include "MotionFilterFactory.h" 00009 #include "MotionMask.h" 00010 00011 #include "Filter.h" 00012 00013 00015 class MGMotionFeaturePlane: public FeaturePlane{ 00016 friend class FeaturePlaneFactory; 00017 00018 public: 00019 ~MGMotionFeaturePlane(); 00020 // void step(); 00021 void computeGatingUnits(); 00022 inline int getSpeeds(){return speeds;} 00023 inline int getAngles(){return angles;} 00024 // void applyGatingControl(); 00025 void feedForward(); 00026 void setThetaDelta(float t); 00027 00028 protected: 00029 MGMotionFeaturePlane( Network* net, int l, QString* name, 00030 int w, int h, int window, 00031 int angles, int speeds, int alpha, int delta, int speed, 00032 bool isWTA, bool visible, Neuron* neuron, NotifyStrategyAbstract* notify); 00033 00034 private: 00035 int alpha, delta, speed; 00036 int angles, speeds; 00037 float thetaDelta; 00038 Direction* dir; 00039 int x0, y0; 00040 MotionMask **masks; 00041 float* pixelSpeeds; 00042 00043 float deltaFunc(int index, int beta, 00044 int x, int y); 00045 int getDeltaIndex(int a, int d, int s); 00046 00047 }; 00048 00049 #endif //MGMOTIONFEATUREPLANE_H