// This code demonstrates how to launch DS9 and display
// a previously taken 1200x1024 pixel CCD image that
// currently resides in the kernel image buffer
// ( CController::mapFd ).
#include <iostream>
#include "CController.h"
#include "CDisplay.h"
using namespace std;
using namespace arc;
int main()
{
CController cController;
CDisplay cDisplay;
try {
cDisplay.Launch();
// .... previously exposed image that resides
// .... in kernel buffer at CController.mapFd
cDisplay.Clear();
cDisplay.Show( cController.mapFd, 1024, 1200 );
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
}
© Astronomical Research Cameras, Inc.