00001 /* $Id: irplib_strehl.h,v 1.11 2007/03/05 10:31:55 amodigli 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: amodigli $ 00023 * $Date: 2007/03/05 10:31:55 $ 00024 * $Revision: 1.11 $ 00025 * $Name: uves-3_3_1 $ 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 00060 double irplib_strehl_disk_flux(const cpl_image *, double, double, double, 00061 double); 00062 00063 double irplib_strehl_ring_background(const cpl_image *, double, double, double, 00064 double, irplib_strehl_bg_method); 00065 00066 cpl_image * irplib_strehl_generate_psf(double, double, double, double, double, 00067 int); 00068 cpl_error_code irplib_strehl_disk_max(const cpl_image *, double, double, 00069 double, double *); 00070 #endif
1.4.6