High-Level Data Reduction Library 1.6.0a5
High-Level data reduction routines for ESO pipelines
Loading...
Searching...
No Matches
hdrl_correlation.c File Reference
#include "hdrl_correlation.h"
#include <math.h>
Include dependency graph for hdrl_correlation.c:

Data Structures

struct  mean_and_stdev
 

Functions

hdrl_xcorrelation_resulthdrl_xcorrelation_result_wrap (cpl_array *x_corr, const cpl_size max_idx, const cpl_size half_window)
 Constructor for hdrl_xcorrelation_result.
 
void hdrl_xcorrelation_result_delete (hdrl_xcorrelation_result *self)
 Destructor for hdrl_xcorrelation_result.
 
cpl_size hdrl_xcorrelation_result_get_peak_pixel (const hdrl_xcorrelation_result *self)
 Get the index where the cross correlation reaches its maximum.
 
double hdrl_xcorrelation_result_get_peak_subpixel (const hdrl_xcorrelation_result *self)
 Get the index where the cross correlation reaches its maximum, with sub-pixel precision.
 
cpl_size hdrl_xcorrelation_result_get_half_window (const hdrl_xcorrelation_result *self)
 Get the half_window used to calculate the cross-correlation.
 
double hdrl_xcorrelation_result_get_sigma (const hdrl_xcorrelation_result *self)
 Get the estimated standard deviation of the correlation.
 
const cpl_array * hdrl_xcorrelation_result_get_correlation (const hdrl_xcorrelation_result *self)
 Getter for the cross correlation.
 
hdrl_xcorrelation_resulthdrl_compute_xcorrelation (const cpl_array *arr1, const cpl_array *arr2, const cpl_size half_window, const cpl_boolean normalize)
 Calculate cross-correlation.
 
hdrl_xcorrelation_resulthdrl_compute_offset_gaussian (const cpl_array *arr1, const cpl_array *arr2, const cpl_size half_win, const cpl_boolean normalize, const double bin, const double wrange)
 Calculate gaussian fit on cross-correlation, does a second fitting for refinement.
 
hdrl_xcorrelation_resulthdrl_compute_offset_gaussian_internal (const cpl_array *arr1, const cpl_array *arr2, const cpl_size half_win, const cpl_boolean normalize, const double bin, const double wrange)
 Calculate gaussian fit on cross-correlation.