CR2RE Pipeline Reference Manual 1.6.2
hdrl_fit.h
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2014 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_FIT_H
21#define HDRL_FIT_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26#include "hdrl_imagelist.h"
27#include <cpl.h>
28
29CPL_BEGIN_DECLS
30
31/*-----------------------------------------------------------------------------
32 Define
33 -----------------------------------------------------------------------------*/
34
35/*-----------------------------------------------------------------------------
36 Functions prototypes
37 -----------------------------------------------------------------------------*/
38
39cpl_error_code
40hdrl_fit_polynomial_imagelist(const hdrl_imagelist * list,
41 const cpl_vector * samplepos,
42 const int degree,
43 hdrl_imagelist ** coef,
44 cpl_image ** chi2,
45 cpl_image ** dof);
46
47#if defined HDRL_USE_EXPERIMENTAL || defined HDRL_USE_PRIVATE
50cpl_error_code
51hdrl_fit_polynomial_imagelist2(const hdrl_imagelist * list,
52 const cpl_imagelist * samplepos,
53 const int degree,
54 hdrl_imagelist ** coef,
55 cpl_image ** chi2,
56 cpl_image ** dof);
57
59#endif
60
61/*-----------------------------------------------------------------------------
62 Private declarations - must not be used outside of hdrl
63 -----------------------------------------------------------------------------*/
64
65#ifdef HDRL_USE_PRIVATE
66
67#endif
68
69CPL_END_DECLS
70
71#endif
cpl_error_code hdrl_fit_polynomial_imagelist2(const hdrl_imagelist *list, const cpl_imagelist *samplepos, const int degree, hdrl_imagelist **coef, cpl_image **chi2, cpl_image **dof)
weighted least squares polynomial fit of each pixel of a imagelist
Definition: hdrl_fit.c:540
CPL_BEGIN_DECLS cpl_error_code hdrl_fit_polynomial_imagelist(const hdrl_imagelist *list, const cpl_vector *samplepos, const int degree, hdrl_imagelist **coef, cpl_image **chi2, cpl_image **dof)
weighted least squares polynomial fit of each pixel of a imagelist
Definition: hdrl_fit.c:367