GIRAFFE Pipeline Reference Manual

gistacking.h

00001 /* $Id: gistacking.h,v 1.9 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.9 $
00025  * $Name: giraffe-2_10 $
00026  */
00027 
00028 #ifndef GISTACKING_H
00029 #define GISTACKING_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_frame.h>
00035 #include <cpl_table.h>
00036 #include <cpl_parameterlist.h>
00037 
00038 #include "giimage.h"
00039 
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 
00046 enum GiStackingMethod {
00047     GISTACKING_METHOD_UNDEFINED = 0,
00048     GISTACKING_METHOD_AVERAGE = 1,
00049     GISTACKING_METHOD_MEDIAN = 2,
00050     GISTACKING_METHOD_MINMAX = 3,
00051     GISTACKING_METHOD_KSIGMA = 4
00052 };
00053 
00054 typedef enum GiStackingMethod GiStackingMethod;
00055 
00056 struct GiStackingConfig {
00057     GiStackingMethod stackmethod;
00058     cxdouble         ksigmalow;
00059     cxdouble         ksigmahigh;
00060     cxint            rejectmax;
00061     cxint            rejectmin;
00062     cxint            min_nr_frames;
00063 };
00064 
00065 typedef struct GiStackingConfig GiStackingConfig;
00066 
00067 
00068 GiImage* giraffe_stacking_average(GiImage**, const GiStackingConfig*);
00069 GiImage* giraffe_stacking_median(GiImage**, const GiStackingConfig*);
00070 GiImage* giraffe_stacking_minmax(GiImage**, const GiStackingConfig*);
00071 GiImage* giraffe_stacking_ksigma(GiImage**, const GiStackingConfig*);
00072 GiImage* giraffe_stacking_stack_images(GiImage**, const GiStackingConfig*);
00073 GiStackingConfig* giraffe_stacking_config_create(cpl_parameterlist*);
00074 
00075 void giraffe_stacking_config_destroy(GiStackingConfig*);
00076 void giraffe_stacking_config_add(cpl_parameterlist*);
00077 
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 #endif /* GISTACKING_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Mar 7 14:11:02 2013 by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2004