SetBinning
Sets a controller to operate in binning mode with the specified parameters.
Syntax
void SetBinning( rows, cols, rowFactor, colFactor, binRows, binCols );
Parameters
long rows
The pre-binning number of image rows.
long cols
The pre-binning number of images columns.
long rowFactor
The number of pixels to bin in the row dimension.
long colFactor
The number of pixels to bin in the column dimension.
long binRows
[optional] Returns binned image row size. Default: NULL
long binCols
[optional] Returns binned image column size. Default: NULL
Returns
None
Required Headers
CController.h
Namespace
arc
Throws
std::runtime_error
Remarks
Sets the camera controller binning factors for both the rows and columns. Binning causes each axis to combine xxxFactor number of pixels. For example, if rows = 1000, cols = 1000, rowFactor = 2, colFactor = 4 then binnedRows = 500, binnedCols = 250. Exceptions can be caught using a try/catch block.
Example
        // This code demonstrates how to set the
        // controller to 2x2 binning.

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

        CController cController;

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

        try {
            // Set 2x2 binning, image size will be 256x300
            cController.SetBinning( 512, 600, 2, 2 );
        }
        catch ( std::exception &e )
        {
            cerr << "Exception Occurred: " << e.what() << endl;
        }

© Astronomical Research Cameras, Inc.