giimagestack.h
00001 /* $Id: giimagestack.h,v 1.5 2007/03/12 12:53:23 rpalsa Exp $ 00002 * 00003 * This file is part of the GIRAFFE Pipeline 00004 * Copyright (C) 2002-2006 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 /* 00022 * $Author: rpalsa $ 00023 * $Date: 2007/03/12 12:53:23 $ 00024 * $Revision: 1.5 $ 00025 * $Name: giraffe-2_8_8 $ 00026 */ 00027 00028 #ifndef GIIMAGESTACK_H 00029 #define GIIMAGESTACK_H 00030 00031 #include <cxmacros.h> 00032 #include <cxtypes.h> 00033 00034 #include <cpl_image.h> 00035 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 00050 struct GiImageStack { 00051 00052 cxint nimages; 00053 cpl_image **images; 00055 }; 00056 00057 typedef struct GiImageStack GiImageStack; 00058 00059 GiImageStack *giraffe_imagestack_new(cxint); 00060 void giraffe_imagestack_delete(GiImageStack *); 00061 cxint giraffe_imagestack_set(GiImageStack *, cxint, cpl_image *); 00062 cpl_image *giraffe_imagestack_get(GiImageStack *, cxint); 00063 cxint giraffe_imagestack_size(GiImageStack *); 00064 cxint giraffe_imagestack_resize(GiImageStack *istack, cxint size); 00065 00066 00067 #ifdef __cplusplus 00068 } 00069 #endif 00070 00071 #endif /* GIIMAGESTACK_H */