34 #include <VideoSource/VideoSource_Disk.hh>
35 #include <Image/Camera.hh>
36 #include <Base/Image/ImageIO.hh>
41 int main(
int argc,
char *argv[])
46 string img = BIAS_TESTS_DATA;
50 cout <<
"Import OK\n";
57 string imgs = BIAS_TESTS_DATA;
70 for (
int i=0; i<10; i++){
72 cout <<i<<
" Grab() done"<<endl;
Defines a common interface to different devices.
int GetColorChannels() const
virtual int SetColorModel(BIAS::ImageBase::EColorModel mode)
Select colormodel to use.
virtual int OpenDevice()
selects the first available device to open (e.g.
void SetDebugLevel(const long int lv)
virtual int PreGrab()
Do last preparations before grabbing (e.g. start ISO transfer)
void FillImageWithConstValue(StorageType Value)
fill grey images
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
virtual int GrabSingle(BIAS::Camera< unsigned char > &image)
virtual int PostGrab()
Stop anything started in PreGrab()
static int Load(const std::string &FileName, ImageBase &img)
first tries a call to Read MIP image and if that fails, tries to Import Image with all other availabl...
virtual int CloseDevice()
This class simulates a video device by loading images from disk.