CR2RE Pipeline Reference Manual 1.6.7
cr2res_detlin.h
1/*
2 * This file is part of the CR2RES Pipeline
3 * Copyright (C) 2002,2003 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 02111-1307 USA
18 */
19
20#ifndef CR2RES_DETLIN_H
21#define CR2RES_DETLIN_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28#include "hdrl.h"
29
30/*-----------------------------------------------------------------------------
31 Define
32 -----------------------------------------------------------------------------*/
33
34#define CR2RES_DETLIN_THRESHOLD 4000.0 // ADU up to which linear response
35#define CR2RES_DETLIN_MAXFIT 37000.0 // Ignore ADU values above this
36
37/*-----------------------------------------------------------------------------
38 Prototypes
39 -----------------------------------------------------------------------------*/
40
42 hdrl_image * in,
43 const hdrl_imagelist * detlin);
44
46 const cpl_vector * dits,
47 const cpl_vector * values,
48 cpl_size max_degree,
49 cpl_polynomial ** fitted,
50 cpl_vector ** error) ;
51
52cpl_frameset * cr2res_detlin_sort_frames(
53 const cpl_frameset * in) ;
54
55#endif
cpl_frameset * cr2res_detlin_sort_frames(const cpl_frameset *in)
Sort the frames by increasing DIT.
int cr2res_detlin_compute(const cpl_vector *dits, const cpl_vector *values, cpl_size max_degree, cpl_polynomial **fitted, cpl_vector **error)
Fits the response of a given pixel to the illumination increase.
int cr2res_detlin_correct(hdrl_image *in, const hdrl_imagelist *detlin)
Apply the detector linearity correction.
Definition: cr2res_detlin.c:71