Example for a feeding a videosource to shared memory , VideoSource_DCAM, VideoShMFeeder
- Author
- MIP
#include <Base/Common/W32Compat.hh>
#include <VideoSource/VideoSource_Disk.hh>
#include <VideoSource/VideoSource_Shm.hh>
#ifdef BIAS_HAVE_DCAM
# include <VideoSource/VideoSource_DCAM.hh>
#endif // BIAS_HAVE_DCAM
#include <Image/Camera.hh>
#include <iostream>
#include <VideoSource/VideoShMFeeder.hh>
using namespace std;
using namespace BIAS;
int main( int , char** )
{
std::vector<std::string> filenames;
filenames.push_back("pic.mip");
char title[100];
sprintf(title,"Sending Picture");
cout << "Image grab OK\n";
int i =0;
while(i<10000){
i++;
cout <<i<<endl;
}
delete cam;
return 0;
}