33 #include <Base/Common/W32Compat.hh>
34 #include <VideoSource/VideoSource_Shm.hh>
35 #include <Base/Image/ImageIO.hh>
36 #include <Image/Camera.hh>
46 int main(
int argc,
char *argv[])
55 cout <<
"Using shared mem file: "<<argv[1]<<endl;
70 sprintf(name,
"image_%04i.mip",imgNo);
virtual int InitImage(BIAS::ImageBase &Image)
Defines a common interface to different devices.
This class implements a video streaming client using shared memory to receive images from another app...
unsigned int GetWidth() const
virtual int OpenDevice()
selects the first available device to open (e.g.
unsigned int GetChannelCount() const
returns the number of Color channels, e.g.
void SetDebugLevel(const long int lv)
unsigned int GetHeight() const
virtual int PreGrab()
Do last preparations before grabbing (e.g. start ISO transfer)
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.
virtual int GrabSingle(BIAS::Camera< unsigned char > &image)
virtual int PostGrab()
Stop anything started in PreGrab()
virtual int CloseDevice()