GIRAFFE Pipeline Reference Manual

gidark.h

00001 /* $Id: gidark.h,v 1.1 2007/02/26 09:31:46 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/02/26 09:31:46 $
00024  * $Revision: 1.1 $
00025  * $Name: giraffe-2_9 $
00026  */
00027 
00028 #ifndef GIDARK_H
00029 #define GIDARK_H
00030 
00031 #include <giimage.h>
00032 
00033 
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037 
00038     enum GiDarkMethod {
00039         GIDARK_METHOD_UNIFORM = 0,
00040         GIDARK_METHOD_MASTER  = 1,
00041         GIDARK_METHOD_ZMASTER = 2
00042     };
00043 
00044     typedef enum GiDarkMethod GiDarkMethod;
00045 
00046 
00047     struct GiDarkResults {
00048         cxdouble value;
00049         cxdouble expected;
00050         cxdouble mode;
00051         cxdouble maximum;
00052     };
00053 
00054     typedef struct GiDarkResults GiDarkResults;
00055 
00056     struct GiDarkConfig {
00057         GiDarkMethod method;
00058         cxdouble threshold;
00059     };
00060 
00061     typedef struct GiDarkConfig GiDarkConfig;
00062 
00063 
00064     cxint giraffe_subtract_dark(GiImage* image, const GiImage* dark,
00065                                 const GiImage* bpixel, GiDarkResults* data,
00066                                 const GiDarkConfig* config);
00067 
00068 #ifdef __cplusplus
00069 }
00070 #endif
00071 
00072 #endif /* GIDARK_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.9.0.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jan 26 14:20:27 2012 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004