CR2RE Pipeline Reference Manual 1.7.0
irplib_strehl.h
1/* $Id: irplib_strehl.h,v 1.12 2009-06-29 14:32:53 kmirny Exp $
2 *
3 * This file is part of the irplib package
4 * Copyright (C) 2002,2003 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19 */
20
21/*
22 * $Author: kmirny $
23 * $Date: 2009-06-29 14:32:53 $
24 * $Revision: 1.12 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef IRPLIB_STREHL_H
29#define IRPLIB_STREHL_H
30
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34
35#include <cpl.h>
36
37/*-----------------------------------------------------------------------------
38 Define
39 -----------------------------------------------------------------------------*/
40
41#ifndef IRPLIB_STREHL_BORDER
42#define IRPLIB_STREHL_BORDER 5
43#endif
44
45/*----------------------------------------------------------------------------*/
52/*----------------------------------------------------------------------------*/
53#define IRPLIB_STREHL_M1 8.0
54/*----------------------------------------------------------------------------*/
61/*----------------------------------------------------------------------------*/
62#define IRPLIB_STREHL_M2 1.1
63/*----------------------------------------------------------------------------*/
70/*----------------------------------------------------------------------------*/
71#define IRPLIB_STREHL_BOX_SIZE 64
72
73/*----------------------------------------------------------------------------*/
80/*----------------------------------------------------------------------------*/
81#define IRPLIB_STREHL_STAR_RADIUS 2.0
82/*----------------------------------------------------------------------------*/
89/*----------------------------------------------------------------------------*/
90#define IRPLIB_STREHL_BACKGROUND_R1 2.0
91/*----------------------------------------------------------------------------*/
98/*----------------------------------------------------------------------------*/
99#define IRPLIB_STREHL_BACKGROUND_R2 3.0
100
101typedef enum
102{
103 IRPLIB_BG_METHOD_AVER_REJ,
104 IRPLIB_BG_METHOD_MEDIAN
105} irplib_strehl_bg_method;
106
107/*-----------------------------------------------------------------------------
108 Function prototypes
109 -----------------------------------------------------------------------------*/
110
111cpl_error_code irplib_strehl_compute(const cpl_image *,
112 double,
113 double,
114 double,
115 double,
116 double,
117 int,
118 double,
119 double,
120 double,
121 double,
122 double,
123 int,
124 int,
125 double *,
126 double *,
127 double *,
128 double *,
129 double *,
130 double *,
131 double *,
132 double *);
133
134double
135irplib_strehl_disk_flux(const cpl_image *, double, double, double, double);
136
137double irplib_strehl_ring_background(const cpl_image *,
138 double,
139 double,
140 double,
141 double,
142 irplib_strehl_bg_method);
143
144cpl_image *
145irplib_strehl_generate_psf(double, double, double, double, double, int);
146cpl_error_code
147irplib_strehl_disk_max(const cpl_image *, double, double, double, double *);
148#endif