sinfo_poly2d.h

00001 /*
00002  * This file is part of the ESO SINFONI Pipeline
00003  * Copyright (C) 2004,2005 European Southern Observatory
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00018  */
00019 
00020 /*---------------------------------------------------------------------------
00021    
00022    File name     :    sinfo_poly2d.h
00023    Author         :    N. Devillard
00024    Created on    :    22 Jun 1999
00025    Description    :    2D polynomial handling
00026 
00027  *--------------------------------------------------------------------------*/
00028 
00029 /*
00030     $Id: sinfo_poly2d.h,v 1.4 2007/06/06 07:10:45 amodigli Exp $
00031     $Author: amodigli $
00032     $Date: 2007/06/06 07:10:45 $
00033     $Revision: 1.4 $
00034 */
00035 
00036 #ifndef SINFO_POLY2D_H
00037 #define SINFO_POLY2D_H
00038 
00039 /*---------------------------------------------------------------------------
00040                                    Includes
00041  ---------------------------------------------------------------------------*/
00042 #include <stdio.h>
00043 #include <stdlib.h>
00044 #include <string.h>
00045 #include "sinfo_ipow.h"
00046 #include "sinfo_msg.h"
00047 #include <cpl.h>
00048 /*---------------------------------------------------------------------------
00049                                    New types
00050  ---------------------------------------------------------------------------*/
00051 
00094 struct _2D_POLY_ {
00095     int            nc ;        /* number of coefficients in px, py, c */
00096     int        *    px ;        /* powers of x                         */
00097     int        *    py ;        /* powers of y                         */
00098     double    *    c ;            /* polynomial coefficients             */
00099 } ;
00100 
00101 typedef struct _2D_POLY_ poly2d ;
00102 
00103 
00104 
00105 /*---------------------------------------------------------------------------
00106                                Function codes    
00107  ---------------------------------------------------------------------------*/
00108 
00122 double
00123 sinfo_poly2d_compute(
00124     poly2d    *    p,
00125     double        x,
00126     double        y
00127 );
00128 
00129 #endif

Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1