sinfo_resampling.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    File name     :    sinfo_resampling.h
00022    Author         :    Nicolas Devillard
00023    Created on    :    Jan 04, 1996
00024    Description    :    resampling routines
00025 
00026  ---------------------------------------------------------------------------*/
00027 
00028 /*
00029 
00030  $Id: sinfo_resampling.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 
00037 #ifndef SINFO_RESAMPLING_H
00038 #define SINFO_RESAMPLING_H
00039 
00040 /*---------------------------------------------------------------------------
00041                                   Includes
00042  ---------------------------------------------------------------------------*/
00043 
00044 #include <cpl.h>
00045 #include "sinfo_msg.h"
00046 /*---------------------------------------------------------------------------
00047                                   Defines
00048  ---------------------------------------------------------------------------*/
00049 #define TRANSFO_AFFINE          0
00050 #define TRANSFO_DEG2            1
00051 #define TRANSFO_HOMOGRAPHIC     2
00052 
00053 /* Number of pixels set to 0 by the shift resampling */
00054 #define    SHIFT_REJECT_L            2
00055 #define    SHIFT_REJECT_R            2
00056 #define    SHIFT_REJECT_T            2
00057 #define    SHIFT_REJECT_B            2
00058 
00059 /*
00060  * Kernel definition in terms of sampling
00061  */
00062 
00063 
00064 /* Number of tabulations in kernel  */
00065 #define TABSPERPIX      (1000)
00066 #define KERNEL_WIDTH    (2.0)
00067 #define KERNEL_SAMPLES  (1+(int)(TABSPERPIX * KERNEL_WIDTH))
00068 
00069 #define TANH_STEEPNESS    (5.0)
00070 
00071 
00072 /*---------------------------------------------------------------------------
00073                          Function ANSI C prototypes
00074  ---------------------------------------------------------------------------*/
00075 
00100 double   *
00101 sinfo_generate_interpolation_kernel(const char * kernel_type) ;
00102 
00103 
00115 double
00116 sinfo_sinc(double x) ;
00117 
00155 double *
00156 sinfo_invert_linear_transform(double *trans) ;
00157 #endif

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