High-Level Data Reduction Library 1.6.0a5
High-Level data reduction routines for ESO pipelines
Loading...
Searching...
No Matches
hdrl_fringe.h
Go to the documentation of this file.
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
20#ifndef HDRL_FRINGE_H
21#define HDRL_FRINGE_H
22/*-----------------------------------------------------------------------------
23 Includes
24 -----------------------------------------------------------------------------*/
25
26#include "hdrl_imagelist.h"
27#include <cpl.h>
28
29/*-----------------------------------------------------------------------------
30 Define
31 -----------------------------------------------------------------------------*/
32
33CPL_BEGIN_DECLS
34
35/*-----------------------------------------------------------------------------
36 Functions prototypes
37 -----------------------------------------------------------------------------*/
38
39cpl_error_code
40hdrl_fringe_compute(hdrl_imagelist* ilist_fringe, const cpl_imagelist * ilist_obj,
41 const cpl_mask* stat_mask, const hdrl_parameter* collapse_params,
42 hdrl_image** master, cpl_image** contrib_map,
43 cpl_table ** qctable);
44cpl_error_code
45hdrl_fringe_correct(hdrl_imagelist * ilist_fringe, const cpl_imagelist * ilist_obj,
46 const cpl_mask * stat_mask, const hdrl_image * masterfringe,
47 cpl_table ** qctable);
48
49#if defined HDRL_USE_PRIVATE
50cpl_matrix * hdrl_mime_fringe_amplitudes(const cpl_image * img0,
51 const cpl_mask * mask0);
52
53cpl_matrix * hdrl_mime_fringe_amplitudes_ls(const cpl_image * img0,
54 const cpl_mask * mask0, const cpl_image * fringe0);
55
56int hdrl_mime_gmix_derivs1(const double x[], const double params[],
57 double result[]);
58int hdrl_mime_gmix1(const double x[], const double params[], double *result);
59cpl_matrix *hdrl_mime_hermite_series_create(int n, double center,
60 double scale, const cpl_matrix * coeffs, const cpl_matrix * x);
61cpl_matrix *hdrl_mime_hermite_functions_sums_create(int n, double center,
62 double scale, const cpl_matrix * x);
63#endif
64
65CPL_END_DECLS
66
67#endif /* HDRL_FRINGE_H */
struct _hdrl_parameter_ hdrl_parameter
Definition hdrl_parameter.h:27
const hdrl_spectrum1D_wave_scale scale
Definition hdrl_response-test.c:41
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:341
CPL_BEGIN_DECLS 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:155
Definition hdrl_image_defs.h:40
Definition hdrl_imagelist_defs.h:42