CR2RE Pipeline Reference Manual 1.6.8
hdrl_fringe.h
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2015 European Southern Observatory
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 * hdrl_fringe.h
20 *
21 * Created on: May 11, 2015
22 * Author: agabasch
23 */
24
25#ifndef HDRL_FRINGE_H
26#define HDRL_FRINGE_H
27/*-----------------------------------------------------------------------------
28 Includes
29 -----------------------------------------------------------------------------*/
30
31#include "hdrl_imagelist.h"
32#include <cpl.h>
33
34/*-----------------------------------------------------------------------------
35 Define
36 -----------------------------------------------------------------------------*/
37
38
39/*-----------------------------------------------------------------------------
40 Functions prototypes
41 -----------------------------------------------------------------------------*/
42
43cpl_error_code
44hdrl_fringe_compute(hdrl_imagelist* ilist_fringe, const cpl_imagelist * ilist_obj,
45 const cpl_mask* stat_mask, const hdrl_parameter* collapse_params,
46 hdrl_image** master, cpl_image** contrib_map,
47 cpl_table ** qctable);
48cpl_error_code
49hdrl_fringe_correct(hdrl_imagelist * ilist_fringe, const cpl_imagelist * ilist_obj,
50 const cpl_mask * stat_mask, const hdrl_image * masterfringe,
51 cpl_table ** qctable);
52
53#if defined HDRL_USE_PRIVATE
54cpl_matrix * hdrl_mime_fringe_amplitudes(const cpl_image * img0,
55 const cpl_mask * mask0);
56
57cpl_matrix * hdrl_mime_fringe_amplitudes_ls(const cpl_image * img0,
58 const cpl_mask * mask0, const cpl_image * fringe0);
59
60int hdrl_mime_gmix_derivs1(const double x[], const double params[],
61 double result[]);
62int hdrl_mime_gmix1(const double x[], const double params[], double *result);
63cpl_matrix *hdrl_mime_hermite_series_create(int n, double center,
64 double scale, const cpl_matrix * coeffs, const cpl_matrix * x);
65cpl_matrix *hdrl_mime_hermite_functions_sums_create(int n, double center,
66 double scale, const cpl_matrix * x);
67#endif
68
69
70#endif /* HDRL_FRINGE_H */
cpl_error_code hdrl_fringe_correct(hdrl_imagelist *ilist_fringe, const cpl_imagelist *ilist_obj, const cpl_mask *stat_mask, const hdrl_image *masterfringe, cpl_table **qctable)
Scales and subtracts the master fringe from the images.
Definition: hdrl_fringe.c:346
cpl_error_code hdrl_fringe_compute(hdrl_imagelist *ilist_fringe, const cpl_imagelist *ilist_obj, const cpl_mask *stat_mask, const hdrl_parameter *collapse_params, hdrl_image **master, cpl_image **contrib_map, cpl_table **qctable)
Calculates the master fringe and contribution map based on the.
Definition: hdrl_fringe.c:160