shift_images.h

00001 #ifndef SHIFT_IMAGES_H
00002 #define SHIFT_IMAGES_H
00003 
00004 /*******************************************************************************
00005 * E.S.O. - VLT project
00006 *
00007 * "@(#) $Id: shift_images.h,v 1.4 2005/04/19 11:52:43 amodigli Exp $"
00008 *
00009 * who       when      what
00010 * --------  --------  ----------------------------------------------
00011 * schreib  05/03/03  created
00012 */
00013 
00014 /************************************************************************
00015  * shift_images.h
00016  * shift two emission line images on each other
00017  *----------------------------------------------------------------------
00018  */
00019 
00020 /*
00021  * header files
00022  */
00023 
00024 /*
00025 #include <stdio.h>
00026 #include <math.h>
00027 */
00028 #include <qfits.h>
00029 #include <cpl.h>
00030 #include "spectrum_ops.h"
00031 
00032 /*----------------------------------------------------------------------------
00033  *                      Function ANSI C prototypes
00034  *--------------------------------------------------------------------------*/
00035 
00036 /*----------------------------------------------------------------------------
00037    Function     :       determineShiftByCorrelation()
00038    In           :       refImage: reference image
00039                         shiftedImage: image shifted in spectral direction
00040                                       with respect to the reference image
00041    Out          :       shift in sub-pixel accuracy
00042    Job          :       determines the sub-pixel shift of to emission line
00043                         frames by cross correlation and fitting the correlation
00044                         function by a Gaussian
00045  ---------------------------------------------------------------------------*/
00046 
00047 /* <python> */
00048 double determineShiftByCorrelation ( OneImage * refImage,
00049                                      OneImage * shiftedImage ) ;
00050 /* </python> */
00051 
00052 /*----------------------------------------------------------------------------
00053    Function     :       shiftImageInSpec()
00054    In           :       shiftedImage: image to shift in spectral direction
00055                         shift: amount of shift, output of determineShiftByCorrelation
00056                         sub_shift: non-integer rest of shift < 1
00057    Out          :       shifted image
00058    Job          :       shifts an image by a given amount to integer pixel accuracy
00059  ---------------------------------------------------------------------------*/
00060 
00061 /* <python> */
00062 OneImage * shiftImageInSpec ( OneImage * shiftedImage, double shift, double * sub_shift ) ;
00063 /* </python> */
00064 
00065 /*----------------------------------------------------------------------------
00066    Function     :       fineShiftImageInSpecPoly()
00067    In           :       shiftedImage: image to shift in spectral direction
00068                         sub_shift: amount of shift < 1, output of  shiftImageInSpec
00069                         order:     order of polynomial
00070    Out          :       shifted image
00071    Job          :       shifts an image by a given amount to sub-pixel accuracy
00072  ---------------------------------------------------------------------------*/
00073 
00074 /* <python> */
00075 OneImage * fineShiftImageInSpecPoly ( OneImage * shiftedImage, double sub_shift, int order ) ;
00076 /* </python> */
00077 
00078 /*----------------------------------------------------------------------------
00079    Function     :       fineShiftImageInSpecCubicspline()
00080    In           :       shiftedImage: image to shift in spectral direction
00081                         sub_shift: amount of shift < 1, output of  shiftImageInSpec
00082    Out          :       shifted image
00083    Job          :       shifts an image by a given amount to sub-pixel accuracy
00084  ---------------------------------------------------------------------------*/
00085 
00086 /* <python> */
00087 OneImage * fineShiftImageInSpecCubicspline ( OneImage * shiftedImage, double sub_shift ) ;
00088 /* </python> */
00089 
00090 
00091 /*----------------------------------------------------------------------------
00092    Function     :       alignCubeToReference()
00093    In           :       cube: cube containing images to shift in spectral direction
00094                         refIm: reference image (OH spectrum)
00095                         order: order of polynomial interpolation for the resampling
00096                         shift_indicator: indicator for the polynomial interpolation (0)
00097                                          or cubic spline interpolation shift (1).
00098    Out          :       shifted cube
00099    Job          :       shifts a images stacked in a cube by a given amount to sub-pixel accuracy
00100  ---------------------------------------------------------------------------*/
00101 
00102 /* <python> */
00103 OneCube * alignCubeToReference ( OneCube * cube,
00104                                  OneImage * refIm,
00105                                  int order,
00106                                  int shift_indicator ) ;
00107 /* </python> */
00108 
00109 
00110 #endif 
00112 /*--------------------------------------------------------------------------*/

Generated on Wed Oct 26 13:08:54 2005 for SINFONI Pipeline Reference Manual by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001