SubtractImageHalves
Subtracts the bottom half of the kernel image buffer from the top half. The bottom half of the buffer starts at buffer[ 0 ] or CController::mapFd[ 0 ] and the top half starts at buffer[ 0 ] + ( rows * cols ) / 2 or CController::mapFd[ 0 ] + ( rows * cols ) / 2.
Syntax
void SubtractImageHalves( rows, cols );
Parameters
long rows
The total image row size ( in pixels ).
long cols
The total image column size ( in pixels ).
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
Example
        // This code demonstrates how to subtract
        // the two sides of an image to produce a
        // subtracted 512x1200 pixel image from a
        // 1024x1200 pixel image.

        #include <iostream.h>
        #include "CController.h"
        using namespace std;
        using namespace arc;

        CController cController;

        // .... open driver, initialize, etc ....

        try {
            cController.SubtractImageHalves( 1024, 1200 );
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.