FORS Pipeline Reference Manual 4.9.9
|
00001 /* $Id: fors_stack.h,v 1.7 2010/09/14 07:49:30 cizzo Exp $ 00002 * 00003 * This file is part of the FORS Library 00004 * Copyright (C) 2002-2010 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: cizzo $ 00023 * $Date: 2010/09/14 07:49:30 $ 00024 * $Revision: 1.7 $ 00025 * $Name: fors-4_9_9 $ 00026 */ 00027 00028 #ifndef FORS_STACK_IMPL_H 00029 #define FORS_STACK_IMPL_H 00030 00031 #include <fors_image.h> 00032 #include <cpl.h> 00033 00034 CPL_BEGIN_DECLS 00035 00036 typedef struct _stack_method 00037 { 00038 enum {AVERAGE, MEDIAN, MINMAX, KSIGMA} method; 00039 const char *method_name; 00040 union { 00041 struct { 00042 int min_reject; 00043 int max_reject; 00044 } minmax; 00045 struct { 00046 double klow; 00047 double khigh; 00048 int kiter; 00049 } ksigma; 00050 } pars; 00051 } stack_method; 00052 00053 void 00054 fors_stack_define_parameters(cpl_parameterlist *parameters, 00055 const char *context, const char *default_method); 00056 stack_method * 00057 fors_stack_method_new(const cpl_parameterlist *parameters, const char *context); 00058 00059 void 00060 fors_stack_method_delete(stack_method **sm); 00061 00062 fors_image * 00063 fors_stack(fors_image_list *images, const stack_method *sm); 00064 00065 fors_image * 00066 fors_stack_const(const fors_image_list *images, const stack_method *sm); 00067 00068 CPL_END_DECLS 00069 00070 #endif