MUSE Pipeline Reference Manual  2.1.1
muse_imagelist.h
1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set sw=2 sts=2 et cin: */
3 /*
4  * This file is part of the MUSE Instrument Pipeline
5  * Copyright (C) 2008-2012 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef MUSE_IMAGELIST_H
23 #define MUSE_IMAGELIST_H
24 
25 #include <cpl.h>
26 #include "muse_artifacts.h"
27 #include "muse_image.h"
28 
29 /*----------------------------------------------------------------------------*
30  * Special variable types *
31  *----------------------------------------------------------------------------*/
32 
36 /*----------------------------------------------------------------------------*/
40 /*----------------------------------------------------------------------------*/
41 typedef struct {
48 
50  unsigned int size;
52 
55 /*----------------------------------------------------------------------------*
56  * Function prototypes *
57  *----------------------------------------------------------------------------*/
61 cpl_error_code muse_imagelist_set(muse_imagelist *, muse_image *, unsigned int);
67 cpl_bivector *muse_imagelist_compute_ron(muse_imagelist *, int, int);
68 
69 #endif /* MUSE_IMAGELIST_H */
Structure definition for a collection of muse_images.
void muse_imagelist_delete(muse_imagelist *)
Free the memory of the MUSE image list.
void muse_imagelist_dump_statistics(muse_imagelist *)
Show statistics of a muse_image list.
Structure definition of MUSE three extension FITS file.
Definition: muse_image.h:40
unsigned int muse_imagelist_get_size(muse_imagelist *)
Return the number of stored images.
cpl_error_code muse_imagelist_scale_exptime(muse_imagelist *)
Scale muse_images to a common exposure time.
muse_image * muse_imagelist_get(muse_imagelist *, unsigned int)
Get the muse_image of given list index.
int muse_imagelist_is_uniform(muse_imagelist *)
Check that all images in the muse_imagelist have the same size.
cpl_bivector * muse_imagelist_compute_ron(muse_imagelist *, int, int)
Compute the read-out noise from bias images in an imagelist.
muse_imagelist * muse_imagelist_new(void)
Create a new (empty) MUSE image list.
muse_image ** list
The list of muse_images.
unsigned int size
cpl_error_code muse_imagelist_set(muse_imagelist *, muse_image *, unsigned int)
Set the muse_image of given list index.
muse_image * muse_imagelist_unset(muse_imagelist *, unsigned int)
Unset the muse_image at given list index from the list.