Common Pipeline Library Reference Manual
6.1.1
|
Functions | |
cpl_error_code | cpl_detector_interpolate_rejected (cpl_image *self) |
Interpolate any bad pixels in an image and delete the bad pixel map. | |
cpl_error_code | cpl_flux_get_bias_window (const cpl_image *diff, const cpl_size *zone_def, cpl_size ron_hsize, cpl_size ron_nsamp, double *bias, double *error) |
Compute the bias in a rectangle. | |
cpl_error_code | cpl_flux_get_noise_ring (const cpl_image *diff, const double *zone_def, cpl_size ron_hsize, cpl_size ron_nsamp, double *noise, double *error) |
Compute the readout noise in a ring. |
#include "cpl_detector.h"
cpl_error_code cpl_detector_interpolate_rejected | ( | cpl_image * | self | ) |
Interpolate any bad pixels in an image and delete the bad pixel map.
self | The image to clean |
The value of a bad pixel is interpolated from the good pixels among the 8 nearest. (If all but one of the eight neighboring pixels are bad, the interpolation becomes a nearest neighbor interpolation). For integer images the interpolation in done with floating-point and rounded to the nearest integer.
If there are pixels for which all of the eight neighboring pixels are bad, a subsequent interpolation pass is done, where the already interpolated pixels are included as source for the interpolation.
The interpolation passes are repeated until all bad pixels have been interpolated. In the worst case, all pixels will be interpolated from a single good pixel.
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_flux_get_bias_window | ( | const cpl_image * | diff, |
const cpl_size * | zone_def, | ||
cpl_size | ron_hsize, | ||
cpl_size | ron_nsamp, | ||
double * | bias, | ||
double * | error | ||
) |
Compute the bias in a rectangle.
diff | Input image, usually a difference frame. |
zone_def | Zone where the bias is to be computed. |
ron_hsize | to specify half size of squares (<0 to use default) |
ron_nsamp | to specify the nb of samples (<0 to use default) |
bias | Output parameter: bias in the frame. |
error | Output parameter: error on the bias. |
cpl_error_code cpl_flux_get_noise_ring | ( | const cpl_image * | diff, |
const double * | zone_def, | ||
cpl_size | ron_hsize, | ||
cpl_size | ron_nsamp, | ||
double * | noise, | ||
double * | error | ||
) |
Compute the readout noise in a ring.
diff | Input image, usually a difference frame. |
zone_def | Zone where the readout noise is to be computed. |
ron_hsize | to specify half size of squares (<0 to use default) |
ron_nsamp | to specify the nb of samples (<0 to use default) |
noise | Output parameter: noise in the frame. |
error | Output parameter: error on the noise. |
The provided zone is an array of four integers specifying the zone to take into account for the computation. The integers specify a ring as x, y, r1, r2 where these coordinates are given in the FITS notation (x from 1 to nx, y from 1 to ny and bottom to top).
Possible _cpl_error_code_ set in this function: