Add Simple Image Processor
This commit is contained in:
@@ -1,30 +1,32 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "StreamManager.hpp"
|
||||
#include "ImageProcessor.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
StreamManager mgr;
|
||||
ImageProcessor processor;
|
||||
StreamManager manager;
|
||||
PvString lConnectionID;
|
||||
|
||||
// If no devies are found, exit.
|
||||
if (mgr.FindDevice(&lConnectionID).IsFailure())
|
||||
if (manager.FindDevice(&lConnectionID).IsFailure())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (mgr.ConnectToDevice(lConnectionID).IsFailure())
|
||||
if (manager.ConnectToDevice(lConnectionID).IsFailure())
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
mgr.OpenStream(lConnectionID);
|
||||
manager.OpenStream(lConnectionID);
|
||||
|
||||
mgr.AcquireImages();
|
||||
manager.AcquireImages(processor);
|
||||
|
||||
mgr.Disconnect();
|
||||
manager.Disconnect();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user