Functions | |
cpl_image * | cpl_image_new_from_accepted (const cpl_imagelist *imlist) |
Create a contribution map from the bad pixel maps of the images. | |
cpl_error_code | cpl_imagelist_add (cpl_imagelist *in1, const cpl_imagelist *in2) |
Add two image lists, the first one is replaced by the result. | |
cpl_error_code | cpl_imagelist_add_image (cpl_imagelist *imlist, const cpl_image *img) |
Add an image to an image list. | |
cpl_error_code | cpl_imagelist_add_scalar (cpl_imagelist *imlist, double addend) |
Elementwise addition of a scalar to each image in the imlist. | |
cpl_image * | cpl_imagelist_collapse_create (const cpl_imagelist *imlist) |
Average an imagelist to a single image. | |
cpl_image * | cpl_imagelist_collapse_median_create (const cpl_imagelist *imlist) |
Compute the median of an image list to a single image. | |
cpl_image * | cpl_imagelist_collapse_minmax_create (const cpl_imagelist *imlist, int low, int high) |
Average with rejection an imagelist to a single image. | |
cpl_image * | cpl_imagelist_collapse_sigclip_create (const cpl_imagelist *imlist, double sigma, double kappahigh, double keep, unsigned mode, cpl_image *kept) |
Average with sigma-clipping rejection an imagelist to a single image. | |
cpl_error_code | cpl_imagelist_divide (cpl_imagelist *in1, const cpl_imagelist *in2) |
Divide two image lists, the first one is replaced by the result. | |
cpl_error_code | cpl_imagelist_divide_image (cpl_imagelist *imlist, const cpl_image *img) |
Divide an image list by an image. | |
cpl_error_code | cpl_imagelist_divide_scalar (cpl_imagelist *imlist, double divisor) |
Elementwise division of each image in the imlist with a scalar. | |
cpl_error_code | cpl_imagelist_exponential (cpl_imagelist *imlist, double base) |
Compute the elementwise exponential of each image in the imlist. | |
cpl_error_code | cpl_imagelist_logarithm (cpl_imagelist *imlist, double base) |
Compute the elementwise logarithm of each image in the imlist. | |
cpl_error_code | cpl_imagelist_multiply (cpl_imagelist *in1, const cpl_imagelist *in2) |
Multiply two image lists, the first one is replaced by the result. | |
cpl_error_code | cpl_imagelist_multiply_image (cpl_imagelist *imlist, const cpl_image *img) |
Multiply an image list by an image. | |
cpl_error_code | cpl_imagelist_multiply_scalar (cpl_imagelist *imlist, double factor) |
Elementwise multiplication of the imlist with a scalar. | |
cpl_error_code | cpl_imagelist_normalise (cpl_imagelist *imlist, cpl_norm mode) |
Normalize each image in the list. | |
cpl_error_code | cpl_imagelist_power (cpl_imagelist *imlist, double exponent) |
Compute the elementwise power of each image in the imlist. | |
cpl_error_code | cpl_imagelist_subtract (cpl_imagelist *in1, const cpl_imagelist *in2) |
Subtract two image lists, the first one is replaced by the result. | |
cpl_error_code | cpl_imagelist_subtract_image (cpl_imagelist *imlist, const cpl_image *img) |
Subtract an image from an image list. | |
cpl_error_code | cpl_imagelist_subtract_scalar (cpl_imagelist *imlist, double subtrahend) |
Elementwise subtraction of a scalar from each image in the imlist. | |
cpl_imagelist * | cpl_imagelist_swap_axis_create (const cpl_imagelist *ilist, cpl_swap_axis mode) |
Swap the axis of an image list. | |
cpl_error_code | cpl_imagelist_threshold (cpl_imagelist *imlist, double lo_cut, double hi_cut, double assign_lo_cut, double assign_hi_cut) |
Threshold all pixel values to an interval. |
#include "cpl_imagelist_basic.h"
cpl_image* cpl_image_new_from_accepted | ( | const cpl_imagelist * | imlist | ) |
Create a contribution map from the bad pixel maps of the images.
imlist | The imagelist |
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_imagelist_add | ( | cpl_imagelist * | in1, | |
const cpl_imagelist * | in2 | |||
) |
Add two image lists, the first one is replaced by the result.
in1 | first input image list (modified) | |
in2 | image list to add |
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_imagelist_add_image | ( | cpl_imagelist * | imlist, | |
const cpl_image * | img | |||
) |
Add an image to an image list.
imlist | input image list (modified) | |
img | image to add |
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_imagelist_add_scalar | ( | cpl_imagelist * | imlist, | |
double | addend | |||
) |
Elementwise addition of a scalar to each image in the imlist.
imlist | Imagelist to be modified in place. | |
addend | Number to add |
cpl_image* cpl_imagelist_collapse_create | ( | const cpl_imagelist * | imlist | ) |
Average an imagelist to a single image.
imlist | the input images list |
The bad pixel maps of the images in the input list are taken into account, the result image pixels are flagged as rejected for those where there were no good pixel at the same position in the input image list.
Possible _cpl_error_code_ set in this function:
cpl_image* cpl_imagelist_collapse_median_create | ( | const cpl_imagelist * | imlist | ) |
Compute the median of an image list to a single image.
imlist | the input images list |
The bad pixel maps of the input frames are not taken into account, and the one of the created image is empty.
The input image list can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE.
Possible _cpl_error_code_ set in this function:
cpl_image* cpl_imagelist_collapse_minmax_create | ( | const cpl_imagelist * | imlist, | |
int | low, | |||
int | high | |||
) |
Average with rejection an imagelist to a single image.
imlist | the input images list | |
low | number of low rejected values | |
high | number of high rejected values |
The bad pixel maps of the input frames are not taken into account, and the one of the created image is empty.
The input images are averaged, for each pixel position the low lowest pixels and the high highest pixels are discarded for the average computation.
The input image list can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE.
Possible _cpl_error_code_ set in this function:
cpl_image* cpl_imagelist_collapse_sigclip_create | ( | const cpl_imagelist * | imlist, | |
double | sigma, | |||
double | kappahigh, | |||
double | keep, | |||
unsigned | mode, | |||
cpl_image * | kept | |||
) |
Average with sigma-clipping rejection an imagelist to a single image.
imlist | the input images list | |
sigma | the sigma value |
The bad pixel maps of the input frames are not taken into account, and the one of the created image is empty.
For each pixel position the pixels whose value is higher than mean+sigma*stdev or lower than mean-sigma*stdev are discarded for the average computation. If all pixels are discarde, the reslting pixel is 0. Where mean is the average of the pixels at that position, and stdev is the standard deviation of the pixels at that position.
The input image list can be of type CPL_TYPE_INT, CPL_TYPE_FLOAT and CPL_TYPE_DOUBLE.
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_imagelist_divide | ( | cpl_imagelist * | in1, | |
const cpl_imagelist * | in2 | |||
) |
Divide two image lists, the first one is replaced by the result.
in1 | first input image list (modified) | |
in2 | image list to divide |
cpl_error_code cpl_imagelist_divide_image | ( | cpl_imagelist * | imlist, | |
const cpl_image * | img | |||
) |
Divide an image list by an image.
imlist | input image list (modified) | |
img | image for division |
cpl_error_code cpl_imagelist_divide_scalar | ( | cpl_imagelist * | imlist, | |
double | divisor | |||
) |
Elementwise division of each image in the imlist with a scalar.
imlist | Imagelist to be modified in place. | |
divisor | Non-zero number to divide with |
cpl_error_code cpl_imagelist_exponential | ( | cpl_imagelist * | imlist, | |
double | base | |||
) |
Compute the elementwise exponential of each image in the imlist.
imlist | Imagelist to be modified in place. | |
base | Base of the exponential. |
cpl_error_code cpl_imagelist_logarithm | ( | cpl_imagelist * | imlist, | |
double | base | |||
) |
Compute the elementwise logarithm of each image in the imlist.
imlist | Imagelist to be modified in place. | |
base | Base of the logarithm. |
cpl_error_code cpl_imagelist_multiply | ( | cpl_imagelist * | in1, | |
const cpl_imagelist * | in2 | |||
) |
Multiply two image lists, the first one is replaced by the result.
in1 | first input image list (modified) | |
in2 | image list to multiply |
cpl_error_code cpl_imagelist_multiply_image | ( | cpl_imagelist * | imlist, | |
const cpl_image * | img | |||
) |
Multiply an image list by an image.
imlist | input image list (modified) | |
img | image to multiply |
cpl_error_code cpl_imagelist_multiply_scalar | ( | cpl_imagelist * | imlist, | |
double | factor | |||
) |
Elementwise multiplication of the imlist with a scalar.
imlist | Imagelist to be modified in place. | |
factor | Number to multiply with |
cpl_error_code cpl_imagelist_normalise | ( | cpl_imagelist * | imlist, | |
cpl_norm | mode | |||
) |
Normalize each image in the list.
imlist | Imagelist to modify. | |
mode | Normalization mode. |
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_imagelist_power | ( | cpl_imagelist * | imlist, | |
double | exponent | |||
) |
Compute the elementwise power of each image in the imlist.
imlist | Imagelist to be modified in place. | |
exponent | Scalar exponent |
cpl_error_code cpl_imagelist_subtract | ( | cpl_imagelist * | in1, | |
const cpl_imagelist * | in2 | |||
) |
Subtract two image lists, the first one is replaced by the result.
in1 | first input image list (modified) | |
in2 | image list to subtract |
cpl_error_code cpl_imagelist_subtract_image | ( | cpl_imagelist * | imlist, | |
const cpl_image * | img | |||
) |
Subtract an image from an image list.
imlist | input image list (modified) | |
img | image to subtract |
cpl_error_code cpl_imagelist_subtract_scalar | ( | cpl_imagelist * | imlist, | |
double | subtrahend | |||
) |
Elementwise subtraction of a scalar from each image in the imlist.
imlist | Imagelist to be modified in place. | |
subtrahend | Number to subtract |
cpl_imagelist* cpl_imagelist_swap_axis_create | ( | const cpl_imagelist * | ilist, | |
cpl_swap_axis | mode | |||
) |
Swap the axis of an image list.
ilist | The image list to swap | |
mode | The swapping mode |
Image list can be CPL_TYPE_INT, CPL_TYPE_FLOAT or CPL_TYPE_DOUBLE. The mode can be either CPL_SWAP_AXIS_XZ or CPL_SWAP_AXIS_YZ
Possible _cpl_error_code_ set in this function:
cpl_error_code cpl_imagelist_threshold | ( | cpl_imagelist * | imlist, | |
double | lo_cut, | |||
double | hi_cut, | |||
double | assign_lo_cut, | |||
double | assign_hi_cut | |||
) |
Threshold all pixel values to an interval.
imlist | Image list to threshold. | |
lo_cut | Lower bound. | |
hi_cut | Higher bound. | |
assign_lo_cut | Value to assign to pixels below low bound. | |
assign_hi_cut | Value to assign to pixels above high bound. |
Possible _cpl_error_code_ set in this function: