void * data |
A void pointer to the buffer containing the interlaced
image data. |
||||||||||||||||||
int rows |
The image row size ( in pixels ). |
||||||||||||||||||
int cols |
The image column size ( in pixels ). |
||||||||||||||||||
int algorithm |
The algorithm to use for deinterlacing. Can be one of
the following class constants:
|
||||||||||||||||||
int arg |
[optional] Any argument that may be required by the
algorithm in use. See above for details. Default value: -1. |
// This code demonstrates how to deinterlace a previously
// taken quad readout CCD image that currently resides in
// the kernel image buffer (CController::mapFd).
#include <iostream>
#include "CController.h"
#include "CDeinterlace.h"
using namespace std;
using namespace arc;
int main()
{
CController cController;
try {
// .... previously exposed quad readout
// .... image resides in kernel buffer
// .... at CController.mapFd
CDeinterlace cDeint;
cDeint.RunAlg( cController.mapFd,
rows,
cols,
CDeinterlace::DEINTERLACE_CCD_QUAD );
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
}
© Astronomical Research Cameras, Inc.