sinfo_focus.h

00001 #ifndef SINFO_FOCUS_H
00002 #define SINFO_FOCUS_H
00003 /*
00004  * This file is part of the ESO SINFONI Pipeline
00005  * Copyright (C) 2004,2005 European Southern Observatory
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2 of the License, or
00010  * (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00020  */
00021 /*******************************************************************************
00022 * E.S.O. - VLT project
00023 *
00024 * "@(#) $Id: sinfo_focus.h,v 1.3 2007/06/06 07:10:45 amodigli Exp $"
00025 *
00026 * who       when      what
00027 * --------  --------  ----------------------------------------------
00028 * schreib  04/02/02  created
00029 */
00030 
00031 /************************************************************************
00032  * sinfo_focus.h
00033  * some functions to fit a 2-D Gaussian for focus finding
00034  *----------------------------------------------------------------------
00035  */
00036 
00037 /*
00038  * header files
00039  */
00040 
00041 #include <cpl.h>
00042 #include "sinfo_utilities.h"
00043 #include "sinfo_new_cube_ops.h"
00044 /*----------------------------------------------------------------------------
00045  *                        Function ANSI C prototypes
00046  *--------------------------------------------------------------------------*/
00072 double 
00073 sinfo_new_gaussian_ellipse(double * xdat, double * parlist) ;
00074 
00100 void 
00101 sinfo_new_gaussian_ellipse_deriv( double * xdat, 
00102                                   double * parlist, 
00103                                   double * dervs ) ;
00104 
00150 int 
00151 sinfo_new_lsqfitd ( double * xdat,
00152               int    * xdim,
00153               double * ydat,
00154               double * wdat,
00155               int    * ndat,
00156               double * fpar,
00157               double * epar,
00158               int    * mpar,
00159               int    * npar,
00160               double * tol ,
00161               int    * its ,
00162               double * lab  ) ;
00163 
00188 int 
00189 sinfo_new_fit_2d_gaussian ( cpl_image   * image,
00190                     double     * fit_par,
00191                     double     * derv_par,
00192                     int        * mpar,
00193                     int          lleftx,
00194                     int          llefty,
00195                     int          halfbox_x,
00196                     int          halfbox_y, int* check ) ;
00197 
00206 cpl_image * 
00207 sinfo_new_plot_gaussian ( cpl_image   * image,
00208                           double     * parlist ) ;
00209 
00228 float 
00229 sinfo_new_determine_conversion_factor ( cpl_imagelist * cube,
00230                                   float     mag,
00231                                   float     exptime,
00232                                   int       llx,
00233                                   int       lly,
00234                                   int       halfbox_x,
00235                                   int       halfbox_y, int* check ) ;
00236 
00237 #endif 

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1