GIRAFFE Pipeline Reference Manual

gilocalize.h

00001 /* $Id: gilocalize.h,v 1.17 2010/06/21 09:14:35 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: 2010/06/21 09:14:35 $
00024  * $Revision: 1.17 $
00025  * $Name: giraffe-2_8_8 $
00026  */
00027 
00028 #ifndef GILOCALIZE_H
00029 #define GILOCALIZE_H
00030 
00031 #include <cpl_parameterlist.h>
00032 
00033 #include <giimage.h>
00034 #include <gitable.h>
00035 #include <gilocalization.h>
00036 
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif
00041 
00042 
00043 struct GiLocalizeConfig {
00044     cxbool       full;
00045     cxint        start;
00046     cxint        retries;
00047     cxint        binsize;
00048     cxdouble     ewidth;
00049     cxint        ywidth;
00050     cxbool       centroid;
00051     cxbool       normalize;
00052     cxint        threshold;
00053     cxdouble     noise;
00054     cxdouble     ron;
00055     cxint        yorder;
00056     cxint        worder;
00057     cxdouble     sigma;
00058     cxint        iterations;
00059     cxdouble     fraction;
00060 };
00061 
00062 typedef struct GiLocalizeConfig GiLocalizeConfig;
00063 
00064 
00065 /*
00066  * Spectrum localization
00067  */
00068 
00069 cxint giraffe_localize_spectra(GiLocalization* result, GiImage* image,
00070                                GiTable* fibers, GiLocalization* master,
00071                                GiImage* badpixels, GiLocalizeConfig* config);
00072 
00073 
00074 /*
00075  * Convenience functions
00076  */
00077 
00078 GiLocalizeConfig* giraffe_localize_config_create(cpl_parameterlist* list);
00079 void giraffe_localize_config_destroy(GiLocalizeConfig* config);
00080 
00081 void giraffe_localize_config_add(cpl_parameterlist* list);
00082 
00083 
00084 #ifdef __cplusplus
00085 }
00086 #endif
00087 
00088 #endif /* GILOCALIZE_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.8.8.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Fri Mar 4 10:50:27 2011 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004