SINFONI Pipeline Reference Manual  2.6.0
sinfo_distortion.h
1 /* $Id: sinfo_distortion.h,v 1.7 2007-06-06 07:10:45 amodigli 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: amodigli $
23  * $Date: 2007-06-06 07:10:45 $
24  * $Revision: 1.7 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef SINFO_DISTORTION_H
29 #define SINFO_DISTORTION_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33 -----------------------------------------------------------------------------*/
34 #include <cpl.h>
35 /*-----------------------------------------------------------------------------
36  Prototypes
37 -----------------------------------------------------------------------------*/
38 cpl_polynomial *
39 sinfo_distortion_estimate(const cpl_image *,
40  int,
41  int,
42  int,
43  int,
44  int,
45  int,
46  int,
47  int,
48  double,
49  cpl_apertures **) ;
50 
51 cpl_polynomial * sinfo_distortion_estimate_new(
52  const cpl_image * org,
53  int xmin,
54  int ymin,
55  int xmax,
56  int ymax,
57  int auto_ramp_sub,
58  int arc_sat,
59  int max_arc_width,
60  double kappa,
61  double arcs_min_arclen_factor,
62  int arcs_window_size,
63  int smooth_rad,
64  int degree,
65  double offset,
66  cpl_apertures ** arcs);
67 
68 cpl_image *
69 sinfo_distortion_image_restore(const cpl_image* inp,
70  const int r,
71  const int d,
72  const double kappa,
73  const int ks_method,
74  const int n);
75 #endif