SINFONI Pipeline Reference Manual  2.6.0
sinfo_focus.h
1 #ifndef SINFO_FOCUS_H
2 #define SINFO_FOCUS_H
3 /*
4  * This file is part of the ESO SINFONI Pipeline
5  * Copyright (C) 2004,2005 European Southern Observatory
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
20  */
21 /*******************************************************************************
22 * E.S.O. - VLT project
23 *
24 * "@(#) $Id: sinfo_focus.h,v 1.3 2007-06-06 07:10:45 amodigli Exp $"
25 *
26 * who when what
27 * -------- -------- ----------------------------------------------
28 * schreib 04/02/02 created
29 */
30 
31 /************************************************************************
32  * sinfo_focus.h
33  * some functions to fit a 2-D Gaussian for focus finding
34  *----------------------------------------------------------------------
35  */
36 
37 /*
38  * header files
39  */
40 
41 #include <cpl.h>
42 #include "sinfo_utilities.h"
43 #include "sinfo_new_cube_ops.h"
44 /*----------------------------------------------------------------------------
45  * Function ANSI C prototypes
46  *--------------------------------------------------------------------------*/
47 
48 double
49 sinfo_new_gaussian_ellipse(double * xdat, double * parlist) ;
50 
51 
52 void
53 sinfo_new_gaussian_ellipse_deriv( double * xdat,
54  double * parlist,
55  double * dervs ) ;
56 
57 
58 int
59 sinfo_new_lsqfitd ( double * xdat,
60  int * xdim,
61  double * ydat,
62  double * wdat,
63  int * ndat,
64  double * fpar,
65  double * epar,
66  int * mpar,
67  int * npar,
68  double * tol ,
69  int * its ,
70  double * lab ) ;
71 
72 
73 int
74 sinfo_new_fit_2d_gaussian ( cpl_image * image,
75  double * fit_par,
76  double * derv_par,
77  int * mpar,
78  int lleftx,
79  int llefty,
80  int halfbox_x,
81  int halfbox_y, int* check ) ;
82 
83 
84 
85 cpl_image *
86 sinfo_crea_gaussian ( cpl_image * image,
87  double * parlist ) ;
88 
89 float
90 sinfo_new_determine_conversion_factor ( cpl_imagelist * cube,
91  float mag,
92  float exptime,
93  int llx,
94  int lly,
95  int halfbox_x,
96  int halfbox_y, int* check ) ;
97 
98 #endif