GIRAFFE Pipeline Reference Manual

giimagestack.h
1 /*
2  * This file is part of the GIRAFFE Pipeline
3  * Copyright (C) 2002-2019 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 02110-1301 USA
18  */
19 
20 #ifndef GIIMAGESTACK_H
21 #define GIIMAGESTACK_H
22 
23 #include <cxmacros.h>
24 #include <cxtypes.h>
25 
26 #include <cpl_image.h>
27 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 
42 struct GiImageStack {
43 
44  cxint nimages;
45  cpl_image **images;
47 };
48 
49 typedef struct GiImageStack GiImageStack;
50 
53 cxint giraffe_imagestack_set(GiImageStack *, cxint, cpl_image *);
54 cpl_image *giraffe_imagestack_get(GiImageStack *, cxint);
56 cxint giraffe_imagestack_resize(GiImageStack *istack, cxint size);
57 
58 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #endif /* GIIMAGESTACK_H */
cxint giraffe_imagestack_set(GiImageStack *, cxint, cpl_image *)
Stores a reference to a cpl_image in a GiImageStack.
Definition: giimagestack.c:189
cxint giraffe_imagestack_size(GiImageStack *)
Returns current size of an GiImageStack.
Definition: giimagestack.c:259
cxint giraffe_imagestack_resize(GiImageStack *istack, cxint size)
Non destructive resize of an GiImageStack.
Definition: giimagestack.c:83
void giraffe_imagestack_delete(GiImageStack *)
Destroys an GiImageStack.
Definition: giimagestack.c:141
GiImageStack * giraffe_imagestack_new(cxint)
Create a new GiImageStack.
Definition: giimagestack.c:50
cpl_image * giraffe_imagestack_get(GiImageStack *, cxint)
Retrieve a cpl_image reference stored in a GiImageStack.
Definition: giimagestack.c:225
Structure to handle an array/stack of cpl_images.
Definition: giimagestack.h:42
cpl_image ** images
Definition: giimagestack.h:45

This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004