|
CR2RE Pipeline Reference Manual 1.6.2
|
Functions | |
| hdrl_xcorrelation_result * | hdrl_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_result * | hdrl_compute_xcorrelation (const cpl_array *arr1, const cpl_array *arr2, const cpl_size half_window, const cpl_boolean normalize) |
| Calculate cross-correlation. | |
| hdrl_xcorrelation_result * | hdrl_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_result * | hdrl_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. | |
| hdrl_xcorrelation_result * hdrl_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.
| arr1 | First array |
| arr2 | Second array |
| half_win | half search window where the correlation is calculated |
| normalize | CPL_TRUE normalize correlation in mean and rms |
| bin | wavelength bin |
| wrange | half window wavelength range where the fit is going to be done |
Definition at line 299 of file hdrl_correlation.c.
References hdrl_compute_offset_gaussian_internal(), and hdrl_xcorrelation_result_delete().
Referenced by hdrl_spectrum1D_compute_shift_xcorrelation().
| hdrl_xcorrelation_result * hdrl_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.
| arr1 | First array |
| arr2 | Second array |
| half_win | half search window where the correlation is calculated |
| normalize | CPL_TRUE normalize correlation in mean and rms |
| bin | wavelength bin |
| wrange | half window wavelength range where the fit is going to be done |
Definition at line 340 of file hdrl_correlation.c.
References hdrl_compute_xcorrelation(), and hdrl_xcorrelation_result_delete().
Referenced by hdrl_compute_offset_gaussian().
| hdrl_xcorrelation_result * hdrl_compute_xcorrelation | ( | const cpl_array * | arr1, |
| const cpl_array * | arr2, | ||
| const cpl_size | half_window, | ||
| const cpl_boolean | normalize | ||
| ) |
Calculate cross-correlation.
| arr1 | First array |
| arr2 | Second array |
| half_window | half search window where the correlation is calculated |
| normalize | CPL_TRUE normalize correlation in mean and rms |
Definition at line 211 of file hdrl_correlation.c.
References hdrl_xcorrelation_result_wrap().
Referenced by hdrl_compute_offset_gaussian_internal().
| void hdrl_xcorrelation_result_delete | ( | hdrl_xcorrelation_result * | self | ) |
Destructor for hdrl_xcorrelation_result.
| self | hdrl_xcorrelation_result to be deleted |
Definition at line 103 of file hdrl_correlation.c.
Referenced by hdrl_compute_offset_gaussian(), and hdrl_compute_offset_gaussian_internal().
| const cpl_array * hdrl_xcorrelation_result_get_correlation | ( | const hdrl_xcorrelation_result * | self | ) |
Getter for the cross correlation.
| self | hdrl_xcorrelation_result the getter will extract the data from |
Definition at line 190 of file hdrl_correlation.c.
| cpl_size hdrl_xcorrelation_result_get_half_window | ( | const hdrl_xcorrelation_result * | self | ) |
Get the half_window used to calculate the cross-correlation.
| self | hdrl_xcorrelation_result the getter will extract the data from |
Definition at line 155 of file hdrl_correlation.c.
| cpl_size hdrl_xcorrelation_result_get_peak_pixel | ( | const hdrl_xcorrelation_result * | self | ) |
Get the index where the cross correlation reaches its maximum.
| self | hdrl_xcorrelation_result the getter will extract the data from |
Definition at line 120 of file hdrl_correlation.c.
| 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.
| self | hdrl_xcorrelation_result the getter will extract the data from |
Definition at line 138 of file hdrl_correlation.c.
| double hdrl_xcorrelation_result_get_sigma | ( | const hdrl_xcorrelation_result * | self | ) |
Get the estimated standard deviation of the correlation.
| self | hdrl_xcorrelation_result the getter will extract the data from |
Definition at line 173 of file hdrl_correlation.c.
| hdrl_xcorrelation_result * hdrl_xcorrelation_result_wrap | ( | cpl_array * | x_corr, |
| const cpl_size | max_idx, | ||
| const cpl_size | half_window | ||
| ) |
Constructor for hdrl_xcorrelation_result.
| x_corr | Cross correlation. x_corr becomes owned by the returned value, do not free x_corr after the wrapping. |
| max_idx | Index where the cross correlation reaches its maximum |
| half_window | Half window used for the cross-correlation calculation |
Definition at line 79 of file hdrl_correlation.c.
Referenced by hdrl_compute_xcorrelation().