Functions | |
| cpl_image ** | hawki_geom_img_offset_saa (const cpl_imagelist *ilist, const cpl_bivector *offs, cpl_kernel kernel, int rejmin, int rejmax, cpl_geom_combine union_flag, double *ppos_x, double *ppos_y) |
| Shift and add an images list to a single image. | |
This module contains functions to compute the shift-and-add operation on an image list.
#include "hawki_geom_img.h"
| cpl_image** hawki_geom_img_offset_saa | ( | const cpl_imagelist * | ilist, | |
| const cpl_bivector * | offs, | |||
| cpl_kernel | kernel, | |||
| int | rejmin, | |||
| int | rejmax, | |||
| cpl_geom_combine | union_flag, | |||
| double * | ppos_x, | |||
| double * | ppos_y | |||
| ) |
Shift and add an images list to a single image.
| ilist | Input image list | |
| offs | List of offsets in x and y | |
| kernel | Interpolation kernel to use for resampling | |
| rejmin | Number of minimum value pixels to reject in stacking | |
| rejmax | Number of maximum value pixels to reject in stacking | |
| union_flag | Combination mode (CPL_GEOM_UNION or CPL_GEOM_INTERSECT) | |
| ppos_x | If non-NULL, *ppos_x is the X-position of the first image in the combined image | |
| ppos_y | If non-NULL, *ppos_y is the Y- position of the first image in the combined image |
The supported types are CPL_TYPE_DOUBLE, CPL_TYPE_FLOAT.
The number of provided offsets shall be equal to the number of inputs images. The ith offset (offs_x, offs_y) is the offset that has to be used to shift the ith image to align it on the first one.
Provide the name of the kernel you want to generate. Supported kernel types are:
If the number of input images is lower or equal to 3, the rejection parameters are ignored. If the number of input images is lower or equal to 2*(rejmin+rejmax), the rejection parameters are ignored.
The bad pixel map of the input images list is ignored, and the bad pixel map of the output image is empty.
If not NULL, the returned cpl_image array arr must be deallocated like:
if (arr[0] != NULL) cpl_image_delete(arr[0]); if (arr[1] != NULL) cpl_image_delete(arr[1]); cpl_free(arr);
Possible _cpl_error_code_ set in this function:
Definition at line 185 of file hawki_geom_img.c.
1.6.1