MUSE Pipeline Reference Manual  0.18.5
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  *
5  * This file is part of the MUSE Instrument Pipeline
6  * Copyright (C) 2008-2011 European Southern Observatory
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  */
22 
23 #ifndef MUSE_IMAGELIST_H
24 #define MUSE_IMAGELIST_H
25 
26 #include <cpl.h>
27 #include "muse_artifacts.h"
28 #include "muse_image.h"
29 
30 /*----------------------------------------------------------------------------*
31  * Special variable types *
32  *----------------------------------------------------------------------------*/
33 
37 /*----------------------------------------------------------------------------*/
41 /*----------------------------------------------------------------------------*/
42 typedef struct {
49 
51  unsigned int size;
53 
56 /*----------------------------------------------------------------------------*
57  * Function prototypes *
58  *----------------------------------------------------------------------------*/
62 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:41
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.