TarzaNN
TarzaNN neural network simulator
|
00001 /* Input feature plane which grabs an image with a PointGrey camera and otherwise operates as 00002 a regular InputFeaturePlane. 00003 Author: Calden Wloka 00004 */ 00005 00006 #ifndef INPUTCAMERAFEATUREPLANE_H_INCLUDED 00007 #define INPUTCAMERAFEATUREPLANE_H_INCLUDED 00008 00009 #include <stdio.h> 00010 #include "InputFeaturePlaneAbstract.h" 00011 #include "FeaturePlane.h" 00012 00013 00014 #include <qdebug.h> 00015 namespace FlyCapture2 00016 { 00017 class Camera; 00018 } 00019 00020 class InputCameraFeaturePlane : public InputFeaturePlaneAbstract { 00021 friend class FeaturePlaneFactory; 00022 00023 public: 00024 //OutputImage* getCurrentOutput(); 00025 00026 protected: 00027 //constructor 00028 InputCameraFeaturePlane(Network* net, int l, int w, int h, QString* nameIn, bool visible, bool isWTA, NotifyStrategyAbstract* notify); 00029 00030 // grab a new image 00031 void step(); 00032 00033 FlyCapture2::Camera *cam; // the camera 00034 int imgCount; 00035 00036 void run(); // overload the run function so that it runs multiple times regardless of the network characteristics 00037 void finalize(); // finalize the output of the step 00038 00039 ~InputCameraFeaturePlane(); 00040 }; 00041 00042 #endif //INPUTCAMERAFEATUREPLANE_H_INCLUDED