gislight.h
00001 /* $Id: gislight.h,v 1.5 2007/03/06 19:48:08 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/06 19:48:08 $ 00024 * $Revision: 1.5 $ 00025 * $Name: giraffe-2_10 $ 00026 */ 00027 00028 #ifndef GISLIGHT_H 00029 #define GISLIGHT_H 00030 00031 #include <cxtypes.h> 00032 00033 #include <cpl_parameterlist.h> 00034 00035 #include <giimage.h> 00036 #include <gilocalization.h> 00037 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 struct GiSLightConfig { 00044 const cxchar* model; 00045 cxint xorder[2]; 00046 cxint yorder[2]; 00047 cxint xstep; 00048 cxint ystep; 00049 cxdouble ewidth; 00050 cxint iswidth; 00051 cxbool istrim; 00052 cxbool phffcor; 00053 cxbool remove; 00054 }; 00055 00056 typedef struct GiSLightConfig GiSLightConfig; 00057 00058 00059 cxint giraffe_adjust_scattered_light(GiImage* result, 00060 const GiImage* image, 00061 const GiLocalization* localization, 00062 const GiImage* bpixel, GiImage* phff, 00063 const GiSLightConfig* config); 00064 00065 GiSLightConfig* giraffe_slight_config_create(cpl_parameterlist*); 00066 void giraffe_slight_config_destroy(GiSLightConfig*); 00067 void giraffe_slight_config_add(cpl_parameterlist*); 00068 00069 #ifdef __cplusplus 00070 } 00071 #endif 00072 00073 #endif /* GISLIGHT_H */