Example for a videosource getting images over shared memory
- Author
- MIP
#include <Base/Common/W32Compat.hh>
#include <VideoSource/VideoSource_Shm.hh>
#include <Base/Image/ImageIO.hh>
#include <Image/Camera.hh>
using namespace BIAS;
using namespace std;
bool done = false;
bool save = false;
int imgNo = 0;
int main( int argc, char *argv[])
{
int res;
if (argc>1) {
cout <<"Using shared mem file: "<<argv[1]<<endl;
}
if (res <0) exit(1);
if (res <0) exit(1);
while(!done){
char name[255];
sprintf(name,"image_%04i.mip",imgNo);
imgNo++;
}
delete cam;
return 0;
}