34 #include <Image/Camera.hh>
35 #include <Base/Image/ImageConvert.hh>
36 #include <Base/Image/ImageIO.hh>
37 #include <VideoSource/VideoSource_DCAM.hh>
44 #include <Base/Debug/TimeMeasure.hh>
48 int main(
int argc,
char *argv[])
67 cerr<<
" Can not open camera on bus "<<res<<endl;
81 for(
int i=0; i<10;i++){
102 cout <<
"Write finished, closing cameras"<<endl;
virtual int InitImage(BIAS::ImageBase &Image)
int GrabSingle(BIAS::Camera< unsigned char > &image)
Select the port (bus-id) to use, only valid before OpenDevice()
void SetColorModel(EColorModel Model)
Bayer_RGGB, 1 channel RGB image Bayer tile.
This class VideoSource_DCAM implements access to IEEE1394 (Firewire, iLink) cameras following the DCa...
int OpenDevice()
Opens a dc1394 device.
unsigned int GetWidth() const
virtual int SetColorModel(BIAS::ImageBase::EColorModel mode)
Select colormodel to use.
static int BayerToRGB_(const Image< StorageType > &source, Image< StorageType > &dest)
added border calculation, woelk evers, woelk
color values, 3 channels, order: red,green,blue
void SetDebugLevel(const long int lv)
unsigned int GetHeight() const
static int Save(const std::string &filename, const ImageBase &img, const enum TFileFormat FileFormat=FF_auto, const bool sync=BIAS_DEFAULT_SYNC, const int c_jpeg_quality=BIAS_DEFAULT_IMAGE_QUALITY, const bool forceNewID=BIAS_DEFAULT_FORCENEWID, const bool &writeMetaData=true)
Export image as file using extrnal libs.
void Init(unsigned int Width, unsigned int Height, unsigned int channels=1, enum EStorageType storageType=ST_unsignedchar, const bool interleaved=true)
calls Init from ImageBase storageType is ignored, just dummy argument
int CloseDevice()
closes a camera device and cleans up
static int BayerToRGB(const Image< StorageType > &source, Image< StorageType > &dest, BayerDemosaicMethod method=BAYER_DEMOSAIC_METHOD_BILINEAR, bool flip=false)
converts an image with bayer pattern to rgb
int PostGrab()
stops iso transmission of a camera.
int PreGrab()
initializes the iso transmission of a camera.