CR2RE Pipeline Reference Manual 1.6.10
cr2res_nodding.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_NODDING_H
21#define CR2RES_NODDING_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include <cpl.h>
28#include <hdrl.h>
29
30/*-----------------------------------------------------------------------------
31 Define
32 -----------------------------------------------------------------------------*/
33
34typedef enum {
35 CR2RES_NODDING_NONE,
36 CR2RES_NODDING_A,
37 CR2RES_NODDING_B,
38} cr2res_nodding_pos ;
39
40/*-----------------------------------------------------------------------------
41 Prototypes
42 -----------------------------------------------------------------------------*/
43
44cr2res_nodding_pos * cr2res_nodding_read_positions( const cpl_frameset * in) ;
45
46char cr2res_nodding_position_char(cr2res_nodding_pos pos) ;
47
49 const hdrl_imagelist * in,
50 const cr2res_nodding_pos * positions,
51 hdrl_imagelist ** pos_a,
52 hdrl_imagelist ** pos_b) ;
53
55 const cpl_frameset * in,
56 const cr2res_nodding_pos * positions,
57 cpl_frameset ** pos_a,
58 cpl_frameset ** pos_b) ;
59
60#endif
int cr2res_combine_nodding_split_frames(const cpl_frameset *in, const cr2res_nodding_pos *positions, cpl_frameset **pos_a, cpl_frameset **pos_b)
Split A/B positions in 2 framesets.
char cr2res_nodding_position_char(cr2res_nodding_pos pos)
Get the nodding position character for display.
int cr2res_combine_nodding_split(const hdrl_imagelist *in, const cr2res_nodding_pos *positions, hdrl_imagelist **pos_a, hdrl_imagelist **pos_b)
Split A/B positions in 2 image lists.
cr2res_nodding_pos * cr2res_nodding_read_positions(const cpl_frameset *in)
Get the nodding positions from a frame set.