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: HEAD $
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 typedef enum {
00046     IRPLIB_BG_METHOD_AVER_REJ,
00047     IRPLIB_BG_METHOD_MEDIAN
00048 } irplib_strehl_bg_method;
00049 
00050 /*-----------------------------------------------------------------------------
00051                                Functions prototypes
00052  -----------------------------------------------------------------------------*/
00053 
00054 cpl_error_code irplib_strehl_compute(const cpl_image *, double, double, double,
00055                                      double, double, int, double, double,
00056                                      double, double, double, int, int,
00057                                      double *, double *, double *, double *,
00058                                      double *, double *, double *, double *);
00059 cpl_error_code irplib_strehl_mark_bad_and_compute(
00060                     cpl_image *, double, double, double,
00061                     double, double, int, double, double,
00062                     double, double, double, int, int,
00063                     double *, double *, double *, double *,
00064                     double *, double *, double *, double *);
00065 double irplib_strehl_disk_flux(const cpl_image *, double, double, double,
00066                                double);
00067 
00068 double irplib_strehl_ring_background(const cpl_image *, double, double, double,
00069                                      double, irplib_strehl_bg_method);
00070 
00071 cpl_image * irplib_strehl_generate_psf(double, double, double, double, double,
00072                                        int);
00073 cpl_error_code irplib_strehl_disk_max(const cpl_image *, double, double,
00074                                              double, double *);
00075 #endif

Generated on Thu Mar 24 11:59:39 2011 for VISIR Pipeline Reference Manual by  doxygen 1.5.8