long rows |
The number of rows in the synthetic image. |
long cols |
The number of columns in the synthetic image. |
// This code demonstrates how to the controller
// to operate in synthetic image mode.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
// .... open driver, initialize, etc ....
try {
cController.SetSyntheticImageMode( true );
if ( cController.IsSyntheticImageMode() )
cout << "Controller set to synthetic image mode!" << endl;
// .... take some synthetic images
// Verify the image. Throws std:runtime_error
// exception on error.
cController.VerifyImageAsSynthetic( rows, cols );
// Return to normal operations
cController.SetSyntheticImageMode( false );
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.