25 #ifndef __VideoSource_MDCAM_HH__
26 #define __VideoSource_MDCAM_HH__
28 #include <bias_config.h>
30 #ifndef BIAS_HAVE_DCAM
31 # error You need DCAM for BIAS Videosource_MDCAM. Please recompile BIAS with USE_DCAM.
32 #endif // BIAS_HAVE_DCAM
35 # error BIAS VideoSource_MDcam is unsupported on WIN32, currently. Please fix the code/buildsystem.
40 #include <VideoSource/VideoSource_Base.hh>
41 #include <VideoSource/VideoSource_DCAM.hh>
42 #include <Base/Debug/Debug.hh>
43 #include <Base/Debug/Error.hh>
45 #define D_MDCAM_INIT (1<<0)
46 #define D_MDCAM_GRAB (1<<2)
62 void ActivateScorpionTimestamp();
67 void SetDebugLevelDcam(
int d);
69 int ScanBus(std::ofstream &ofs);
71 int InitCameras(
const std::string filename);
79 #ifdef BUILD_IMAGE_USHORT
87 int SetFeature(dc1394feature_t feature,
unsigned int value);
89 int AutoMode( dc1394feature_t feature, dc1394feature_mode_t mode);
91 int OnePushAuto(dc1394feature_t feature);
93 int SetShutter(
float exptime);
95 {
return Camera_[0]->GetShutter(); }
98 {
return Camera_[0]->GetGain(); }
100 inline void SetFps(
float fps){Fps_ = fps;};
110 int ExternalTrigger(
bool on,
bool active);
113 int EqualizeFeature(
int master, dc1394feature_t feature);
122 if (i <NumCams_ )
return Camera_[i]->GetID();
Stores the camera parameters such as Shutter, Gain, etc.
unsigned char BytesPerPixel_
int BIASVideoSource_EXPORT ScanBus(std::stringstream &ofs)
support function to get the number of cameras and IDs of all cameras on one bus
This class VideoSource_DCAM implements access to IEEE1394 (Firewire, iLink) cameras following the DCa...
void SetBytesPerPixel(unsigned char b)
VideoSource_MDcam simplifies acces to more then one DCam. It suports multiple IEEE1394-adapters, extern synchronization via parallel port and networked capture cluster.
The image template class for specific storage types.
VideoSource_DCAM * GetCamera(int n)
VideoSource_DCAM ** Camera_