long oldRows |
Returns the original row size that is currently
set on the controller. |
long oldCols |
Returns the original column size that is currently
set on the controller. |
long row |
The row number of the center of the sub area
( in pixels ). |
long col |
The column number of the center of the sub-area
( in pixels ). |
long subRows |
The sub-area row size ( in pixels ). |
long subCols |
The sub-area column size ( in pixels ). |
long biasOffset |
The offset of the bias region ( in pixels ). |
long biasCols |
The bias region column width ( in pixels ). |
// This code demonstrates how to set the sub-array
// size to 300x200 at location ( 400, 500 ) on a
// 1200x1024 pixel image. The bias offset is 650
// pixels with a bias column width of 100 pixels.
#include <iostream.h>
#include "CController.h"
using namespace std;
using namespace arc;
CController cController;
// .... open driver, initialize, etc ....
try {
long lOldRows = 0, lOldCols = 0;
cController.SetSubArray( &lOldRows, // Returns old image row size
&lOldCols, // Returns old image column size
500, // Center row of sub-area
400, // Center col of sub-area
200, // Sub-area row size
300, // Sub-area col size
650, // Bias region offset
100 ); // Bias region column size
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
© Astronomical Research Cameras, Inc.