ERIS Pipeline Reference Manual 1.8.15
eris_nix_master_wave.h
1/* $Id$
2 *
3 * This file is part of the ERIS/NIX Pipeline
4 * Copyright (C) 2017 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21/*
22 * $Author$:
23 * $Date$:
24 * $Rev$:
25 */
26
27/*
28 * This file defines structures and methods used to store and maintain
29 * an ERIS/NIX 'master_wave' result.
30 */
31
32#ifndef ERIS_NIX_MASTER_WAVE_H
33#define ERIS_NIX_MASTER_WAVE_H
34
35#ifdef HAVE_CONFIG_H
36#include <config.h>
37#endif
38
39/*-----------------------------------------------------------------------------
40 Includes
41 -----------------------------------------------------------------------------*/
42
43#include <cpl.h>
44#include <hdrl.h>
45
46/*-----------------------------------------------------------------------------
47 Declarations
48 -----------------------------------------------------------------------------*/
49
50typedef struct {
51 char * filename;
52 hdrl_image * raw_wave_image;
53 cpl_mask * raw_wave_bpm;
54 cpl_image * raw_wave_confidence;
55 hdrl_image * calibrated_wave_image;
56 cpl_mask * calibrated_wave_bpm;
57 cpl_image * calibrated_wave_confidence;
58 cpl_propertylist * plist;
59} master_wave;
60
61/*-----------------------------------------------------------------------------
62 Prototypes
63 -----------------------------------------------------------------------------*/
64
65master_wave * en_master_wave_create(const hdrl_image *,
66 const cpl_mask *,
67 const cpl_image *,
68 const hdrl_image *,
69 const cpl_mask *,
70 const cpl_image *,
71 const char *,
72 const cpl_propertylist *);
73
74void en_master_wave_delete(master_wave *);
75
76master_wave * en_master_wave_load_from_frameset(const cpl_frameset *,
77 const char *,
78 cpl_frameset *);
79
80#endif /* ERIS_NIX_MASTER_WAVE_H */
81
82
master_wave * en_master_wave_create(const hdrl_image *, const cpl_mask *, const cpl_image *, const hdrl_image *, const cpl_mask *, const cpl_image *, const char *, const cpl_propertylist *)
Create a new master_wave struct and initialise the contents.