Camera.H

00001 #ifndef CAMERA_H
00002 #define CAMERA_H
00003 
00004 #include <dc1394/dc1394.h>
00005 #include "Ice/ImageIce.ice.H"
00006 #include "Image/Image.H"
00007 
00008 // Wrapper class that holds a dc1394 camera and provides convenient way to extract
00009 // frames.
00010 
00011 class Camera {
00012 
00013 public:
00014 
00015   Camera(dc1394camera_t* _camera = NULL);
00016   ~Camera();
00017   Image<byte> getImage();
00018   ImageIceMod::ImageIce getIceImage();
00019   ImageIceMod::ImageIce dc2Ice(dc1394video_frame_t* input);
00020   dc1394video_frame_t getdc1394Frame();
00021 
00022 private:
00023 
00024   dc1394camera_t* camera;
00025   dc1394error_t error;
00026   dc1394error_t setupCameraDefaults();
00027 };
00028 #endif
Generated on Sun May 8 08:41:09 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3