VerifyImageAsSynthetic
Verifies that the kernel image buffer contains a valid synthetic image. This method can be used after using SetSyntheticImageMode( true ) and taking an image. It verifies that the image buffer contains the pattern: 0, 1, 2, 3, ..., 65535, 0, 1, 2, 3, ..., 65535, 0, 1, 2, 3, ..., 65535, etc.
Syntax
void VerifyImageAsSynthetic( rows, cols );
Parameters
long rows
The number of rows in the synthetic image.
long cols
The number of columns in the synthetic image.
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
Throws a std::runtime_error exception if the image data fails to match the expected synthetic image pattern. Exceptions can be caught using a try/catch block. The image will have the following pattern:

Example
        // 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.