TarzaNN
TarzaNN neural network simulator
|
00001 00006 #ifndef SALIENCYOUTPUTFEATUREPLANE_H_INCLUDED 00007 #define SALIENCYOUTPUTFEATUREPLANE_H_INCLUDED 00008 00009 #include "FeaturePlane.h" 00010 #ifdef WIN32 00011 #include "ptuController.h" 00012 #endif 00013 00014 #define CENTRE_FIELD 0 // define the size of the central visual field, inside of which there should be no saccade call 00015 00016 class SaliencyOutputFeaturePlane : public FeaturePlane { 00017 friend class FeaturePlaneFactory; 00018 00019 public: 00020 // the target variables are okay to be public 00021 int targX; 00022 int targY; 00023 00024 protected: 00025 //constructor 00026 SaliencyOutputFeaturePlane(Network* net, int l, QString* n, int w, int h, int angles, int speeds, int alpha, int speed, bool isWTA, bool visible, Neuron* neuron, NotifyStrategyAbstract* notify); 00027 00028 // store the image dimensions so that coordinates can be determined relative to the image centre 00029 int h; 00030 int w; 00031 00032 #ifdef WIN32 00033 // camera controller object 00034 ptuController* cameraControl; 00035 #endif 00036 00037 // Overload the sumActivations functions to calculate the visual target and output that 00038 // target to the PTU controller 00039 void sumActivations(MatrixVector regularActivations, MatrixVector nonFourierActivations, Matrix* totalActivation); 00040 void _sumActivations(MatrixVector activations, Matrix* totalActivation); 00041 00042 }; 00043 00044 #endif //SALIENCYOUTPUTFEATUREPLANE_H_INCLUDED