25 #include "VideoSource_DCAM_XB3.hh"
30 #include <1394Camera.h>
31 #include <Base/Debug/TimeMeasure.hh>
32 #include <Base/Image/ImageConvert.hh>
33 #include <Base/Image/ImageIO.hh>
37 #include <dc1394/control.h>
70 unsigned char* sinkPixels = NULL;
73 for(
unsigned int j=0; j<3; j++)
121 for(
int index = 0; index < size; index++)
123 sinkPixels[index] = grabedPixels[index*3 + j];
141 unsigned char* sinkPixels = NULL;
144 for(
unsigned int j=0; j<3; j++)
196 for(
int j = 0; j < HEIGHT_S; j++)
198 for(
int i = 0; i < WIDTH_S; i++)
201 sinkPixels[index++] = grabedPixels[indexG+offsetR];
203 sinkPixels[index++] = grabedPixels[indexG];
205 sinkPixels[index++] = grabedPixels[indexG+offsetB];
int GrabSingle(BIAS::Camera< unsigned char > &image)
Select the port (bus-id) to use, only valid before OpenDevice()
bool IsEmpty() const
check if ImageData_ points to allocated image buffer or not
This class VideoSource_DCAM implements access to IEEE1394 (Firewire, iLink) cameras following the DCa...
int GrabSingleAsSmallRGB(BIAS::Camera< unsigned char > &allImages, BIAS::Camera< unsigned char > &imageLeft, BIAS::Camera< unsigned char > &imageMiddle, BIAS::Camera< unsigned char > &imageRight)
Grab single images as RGB.
VideoSource_DCAM_XB3(int Card=0)
const StorageType * GetImageData() const
overloaded GetImageData() from ImageBase
int GrabSingle(BIAS::Camera< unsigned char > &allImages, BIAS::Camera< unsigned char > &imageLeft, BIAS::Camera< unsigned char > &imageMiddle, BIAS::Camera< unsigned char > &imageRight)
Grab single images as bayer pattern GBRG.