Functions | |
cpl_bivector * | cpl_geom_img_offset_fine (const cpl_imagelist *ilist, const cpl_bivector *estimates, const cpl_bivector *anchors, int s_hx, int s_hy, int m_hx, int m_hy, cpl_vector *correl) |
Get the offsets by correlating the images. | |
cpl_image ** | cpl_geom_img_offset_combine (cpl_imagelist *ilist, const cpl_bivector *offs, int refine, const cpl_bivector *aperts, const cpl_vector *sigmas, int *pisigma, int s_hx, int s_hy, int m_hx, int m_hy, int min_rej, int max_rej, cpl_geom_combine union_flag) |
Images list recombination. | |
cpl_bivector * | cpl_geom_img_offset_coarse (const cpl_imagelist *ilist, int zone_sz) |
Get the offsets by correlating the images with the reference. | |
cpl_image ** | cpl_geom_img_offset_saa (const cpl_imagelist *ilist, const cpl_bivector *offs, cpl_kernel kernel, int rejmin, int rejmax, cpl_geom_combine union_flag) |
Shift and add an images list to a single image. |
#include "cpl_geom_img.h"
|
Get the offsets by correlating the images with the reference.
The specified zone_sz should be a power of 2 and smaller than the images x and y sizes. The ith offset (offsx, offsy) in the returned offsets is the one that have to be used to shift the ith image to align it on the reference image (the first one). If not NULL, the returned cpl_bivector must be deallocated with cpl_bivector_delete() Possible _cpl_error_code_ set in this function:
|
|
Images list recombination.
The input image list is purged from bad correlating frames. 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. The bad pixel map of the input images list is ignored, and the bad pixel map of the output image is empty. The returned image array contains 2 images:
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:
|
|
Get the offsets by correlating the images.
The images in the input list must only differ from a shift. In order from the correlation to work, they must have the same level (check the average values of your input images if the correlation does not work). The supported types are CPL_TYPE_DOUBLE and CPL_TYPE_FLOAT. The bad pixel maps are ignored by this function. The ith offset (offsx, offsy) in the returned offsets is the one that have to be used to shift the ith image to align it on the reference image (the first one). If not NULL, the returned cpl_bivector must be deallocated with cpl_bivector_delete(). Possible _cpl_error_code_ set in this function:
|
|
Shift and add an images list to a single image.
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:
|