#ifdef WIN32
#include "Base/Common/W32Compat.hh"
#endif
#include <Image/Camera.hh>
#include <Base/Image/ImageConvert.hh>
#include <Base/Image/ImageIO.hh>
#include <VideoSource/VideoSource_DCAM_XB3.hh>
using namespace BIAS;
using namespace std;
#include <Base/Debug/TimeMeasure.hh>
#define WIDTH 1280
#define HEIGHT 960
#define ULX 0
#define ULY 0
#define PACKAGESIZE 3840
#define NO_OF_FRAMES 20
int main(int argc, char *argv[])
{
int res = -1;
cam->
SetFormat7(3, PACKAGESIZE, DC1394_COLOR_CODING_RGB8);
if (res <0) {
cerr<<" Can not open camera on bus "<<res<<endl;
exit(1);
}
cout << "Grabbing..." << endl;
for (unsigned int frame=0; frame < NO_OF_FRAMES; frame++) {
stringstream filename_left,filename_center,filename_right;
filename_left << "xb3_left_" << frame << ".mip";
filename_center << "xb3_center_" << frame << ".mip";
filename_right << "xb3_right_" << frame << ".mip";
}
}
}
}
cout <<"Write finished, closing cameras"<<endl;
return 0;
}