GIRAFFE Pipeline Reference Manual

gimath.h

00001 /* $Id: gimath.h,v 1.11 2008/07/10 11:21:04 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 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  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2008/07/10 11:21:04 $
00024  * $Revision: 1.11 $
00025  * $Name: giraffe-2_9 $
00026  */
00027 
00028 #ifndef GIMATH_H
00029 #define GIMATH_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_matrix.h>
00035 
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 
00042 cxdouble
00043 giraffe_interpolate_linear(cxdouble x, cxdouble x_0, cxdouble y_0,
00044                            cxdouble x_1, cxdouble y_1);
00045 
00046 /*
00047  * Chebyshev polynomials
00048  */
00049 
00050 cpl_matrix*
00051 giraffe_chebyshev_base1d(cxdouble start, cxdouble size, cxint order,
00052                          cpl_matrix* m_x);
00053 
00054 cpl_matrix*
00055 giraffe_chebyshev_base2d(cxdouble xstart, cxdouble ystart, cxdouble xsize,
00056                          cxdouble ysize, cxint xorder, cxint yorder,
00057                          cpl_matrix* m_x, cpl_matrix* m_y);
00058 
00059 cpl_matrix*
00060 giraffe_chebyshev_base2dt(cxdouble xstart, cxdouble ystart, cxdouble xsize,
00061                           cxdouble ysize, cxint xorder, cxint yorder,
00062                           cpl_matrix* m_x, cpl_matrix* m_y);
00063 
00064 cpl_matrix*
00065 giraffe_chebyshev_fit1d(cxdouble start, cxdouble size, cpl_matrix* m_c,
00066                         cpl_matrix* m_x);
00067 
00068 cpl_matrix*
00069 giraffe_chebyshev_fit2d(cxdouble xstart, cxdouble ystart, cxdouble xsize,
00070                         cxdouble ysize, const cpl_matrix* m_c,
00071                         const cpl_matrix* m_x, const cpl_matrix* m_y);
00072 
00073 cxint   giraffe_gauss_jordan(cpl_matrix*, cxint, cpl_matrix*, cxint);
00074 
00075 void    giraffe_compute_image_coordinates(cxlong, cxlong, cpl_matrix*,
00076                                           cpl_matrix*);
00077 
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 #endif /* GIMATH_H */
00084 
00085 
00086 

This file is part of the GIRAFFE Pipeline Reference Manual 2.9.0.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Jan 26 14:20:28 2012 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004