irplib_strehl.h

00001 /* $Id: irplib_strehl.h,v 1.12 2009-06-29 14:32:53 kmirny Exp $
00002  *
00003  * This file is part of the irplib package
00004  * Copyright (C) 2002,2003 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  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: kmirny $
00023  * $Date: 2009-06-29 14:32:53 $
00024  * $Revision: 1.12 $
00025  * $Name: not supported by cvs2svn $
00026  */
00027 
00028 #ifndef IRPLIB_STREHL_H
00029 #define IRPLIB_STREHL_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 /*-----------------------------------------------------------------------------
00038                                    Define
00039  -----------------------------------------------------------------------------*/
00040 
00041 #ifndef IRPLIB_STREHL_BORDER
00042 #define IRPLIB_STREHL_BORDER        5
00043 #endif
00044 
00045 /*----------------------------------------------------------------------------*/
00052 /*----------------------------------------------------------------------------*/
00053 #define IRPLIB_STREHL_M1                       8.0
00054 /*----------------------------------------------------------------------------*/
00061 /*----------------------------------------------------------------------------*/
00062 #define IRPLIB_STREHL_M2                       1.1
00063 /*----------------------------------------------------------------------------*/
00070 /*----------------------------------------------------------------------------*/
00071 #define IRPLIB_STREHL_BOX_SIZE                 64
00072 
00073 /*----------------------------------------------------------------------------*/
00080 /*----------------------------------------------------------------------------*/
00081 #define IRPLIB_STREHL_STAR_RADIUS              2.0
00082 /*----------------------------------------------------------------------------*/
00089 /*----------------------------------------------------------------------------*/
00090 #define IRPLIB_STREHL_BACKGROUND_R1            2.0
00091 /*----------------------------------------------------------------------------*/
00098 /*----------------------------------------------------------------------------*/
00099 #define IRPLIB_STREHL_BACKGROUND_R2            3.0
00100 
00101 typedef enum {
00102     IRPLIB_BG_METHOD_AVER_REJ,
00103     IRPLIB_BG_METHOD_MEDIAN
00104 } irplib_strehl_bg_method;
00105 
00106 /*-----------------------------------------------------------------------------
00107                                Functions prototypes
00108  -----------------------------------------------------------------------------*/
00109 
00110 cpl_error_code irplib_strehl_compute(const cpl_image *, double, double, double,
00111                                      double, double, int, double, double,
00112                                      double, double, double, int, int,
00113                                      double *, double *, double *, double *,
00114                                      double *, double *, double *, double *);
00115 
00116 cpl_error_code irplib_strehl_mark_bad_and_compute(
00117                     cpl_image *, double, double, double,
00118                     double, double, int, double, double,
00119                     double, double, double, int, int,
00120                     double *, double *, double *, double *,
00121                     double *, double *, double *, double *);
00122 double irplib_strehl_disk_flux(const cpl_image *, double, double, double,
00123                                double);
00124 
00125 double irplib_strehl_ring_background(const cpl_image *, double, double, double,
00126                                      double, irplib_strehl_bg_method);
00127 
00128 cpl_image * irplib_strehl_generate_psf(double, double, double, double, double,
00129                                        int);
00130 cpl_error_code irplib_strehl_disk_max(const cpl_image *, double, double,
00131                                              double, double *);
00132 #endif
Generated on Mon Feb 17 15:01:44 2014 for NACO Pipeline Reference Manual by  doxygen 1.6.3