CR2RE Pipeline Reference Manual 1.6.7
cr2res_slit_curv.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_SLIT_CURV_H
21#define CR2RES_SLIT_CURV_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28#include "hdrl.h"
29#include "cr2res_utils.h"
30
31/*-----------------------------------------------------------------------------
32 Prototypes
33 -----------------------------------------------------------------------------*/
34
36 const hdrl_image * img,
37 const cpl_table * trace_wave,
38 const int order,
39 const int trace,
40 const int height,
41 const int window,
42 const cpl_size degree,
43 const int fit_second_order,
44 cpl_polynomial ** slit_poly_a,
45 cpl_polynomial ** slit_poly_b,
46 cpl_polynomial ** slit_poly_c) ;
47
48hdrl_image * cr2res_slit_curv_gen_map(
49 const cpl_table * trace_wave,
50 int order,
51 int trace_id,
52 int spacing_pixels,
53 int full_trace) ;
54
55cpl_polynomial * cr2res_slit_curv_build_poly(
56 cpl_polynomial * slit_poly_a,
57 cpl_polynomial * slit_poly_b,
58 cpl_polynomial * slit_poly_c,
59 cpl_size x) ;
60
61#endif
int cr2res_slit_curv_compute_order_trace(const hdrl_image *img, const cpl_table *trace_wave, const int order, const int trace, const int height, const int window, const cpl_size degree, const int fit_second_order, cpl_polynomial **slit_poly_a, cpl_polynomial **slit_poly_b, cpl_polynomial **slit_poly_c)
Get the slit curvature directly from the image.
hdrl_image * cr2res_slit_curv_gen_map(const cpl_table *trace_wave, int order, int trace_id, int spacing_pixels, int full_trace)
Compute the slit_curv map from the trace_wave table.
cpl_polynomial * cr2res_slit_curv_build_poly(cpl_polynomial *slit_poly_a, cpl_polynomial *slit_poly_b, cpl_polynomial *slit_poly_c, cpl_size x)
Create the slit curvature polynomial for x position.