ERIS Pipeline Reference Manual 1.8.15
eris_nix_master_flat.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_flat' result.
30 */
31
32#ifndef ERIS_NIX_MASTER_FLAT_H
33#define ERIS_NIX_MASTER_FLAT_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 * flat;
53 cpl_mask * cold_bpm;
54 cpl_image * confidence;
55 cpl_propertylist * plist;
56} master_flat;
57
58/*-----------------------------------------------------------------------------
59 Prototypes
60 -----------------------------------------------------------------------------*/
61
62master_flat * en_master_flat_create(const hdrl_image *,
63 const cpl_mask *,
64 const cpl_image *,
65 const char *,
66 const cpl_propertylist *);
67
68void en_master_flat_delete(master_flat *);
69
70master_flat * en_master_flat_load_from_frameset(const cpl_frameset *,
71 const char *,
72 cpl_frameset *,
73 const int);
74
75#endif /* ERIS_NIX_MASTER_FLAT_H */
master_flat * en_master_flat_create(const hdrl_image *, const cpl_mask *, const cpl_image *, const char *, const cpl_propertylist *)
Create a new master_flat struct and initialise the contents.