merge.h

00001 #ifndef MERGE_H
00002 #define MERGE_H
00003 /*******************************************************************************
00004 * E.S.O. - VLT project
00005 *
00006 * "@(#) $Id: merge.h,v 1.4 2005/04/19 11:34:19 amodigli Exp $"
00007 *
00008 * who       when      what
00009 * --------  --------  ----------------------------------------------
00010 * schreib  04/07/00  created
00011 */
00012 
00013 /************************************************************************
00014  * merge.h
00015  * merges the rows of two image data frames into one frame with doubled
00016  * column length
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 
00031 #include "eclipse.h"
00032 #include "recipes.h"
00033 
00034 
00035 /*
00036  * function prototypes
00037  */
00038 
00039 /*----------------------------------------------------------------------------
00040    Function     :       mergeImages()
00041    In           :       two images to merge, dummy for residual image
00042                         note: first must have smaller wavelength than the 
00043                               second for the same pixel row.
00044    Out          :       resulting merged image, final residual image
00045    Job          :       merges the rows of two image frames in a way that the resulting
00046                         image has double length in y-direction
00047  ---------------------------------------------------------------------------*/
00048 /*<python>*/
00049 OneImage * mergeImages ( OneImage * im1, 
00050                          OneImage * im2, 
00051                          OneImage * res_image ) ;
00052 /*</python>*/
00053 
00054 /*----------------------------------------------------------------------------
00055    Function     :       removeGeneralOffset()
00056    In           :       two images, number of rows from which the offset is
00057                         determined, residual image.
00058    Out          :       changed second image, residual image
00059    Job          :       adds general offset between two frames to the second image
00060                         and delivers the residual image, assuming that the background
00061                         cancellation did not work perfectly well.
00062  ---------------------------------------------------------------------------*/
00063 
00064 /*<python>*/
00065 OneImage * removeGeneralOffset( OneImage * im1, 
00066                                 OneImage * im2, 
00067                                 OneImage * res_image,
00068                                 int n ) ;
00069 /*</python>*/
00070 
00071 /*----------------------------------------------------------------------------
00072    Function     :       removeRegionalTilt()
00073    In           :       both images to merge, residual image (obligatory no NullImage).
00074    Out          :       changed second image, residual image 
00075    Job          :       removes a general tilt from the spectra , created e.g. by
00076                         different emissivities of the telescope itself
00077                         and delivers the residual image
00078  ---------------------------------------------------------------------------*/
00079 
00080 /*<python>*/
00081 OneImage * 
00082 removeRegionalTilt ( OneImage * im1,
00083                      OneImage * im2, 
00084                      OneImage * res_image ) ;
00085 /*</python>*/
00086 
00087 /*----------------------------------------------------------------------------
00088    Function     :       removeColumnOffset()
00089    In           :       first image and already corrected second image to merge,
00090                         residual image (obligatory no NullImage).
00091    Out          :       changed second image, residual image
00092    Job          :       removes individual column offset, created e.g. by imperfect
00093                         guiding. The offset is divided out. The ratio is derived
00094                         from the medians of the contributions.
00095  ---------------------------------------------------------------------------*/
00096 
00097 /*<python>*/
00098 OneImage * removeColumnOffset ( OneImage * im1,
00099                                 OneImage * im2,
00100                                 OneImage * res_image ) ;
00101 /*</python>*/
00102 
00103 /*----------------------------------------------------------------------------
00104    Function     :       removeResidualTilt()
00105    In           :       second image to merge, residual image (obligatory no NullImage).
00106    Out          :       changed second image, residual image
00107    Job          :       removes a residual column tilt (determined from the 
00108                         residual image) created by previous operations
00109  ---------------------------------------------------------------------------*/
00110 
00111 /*<python>*/
00112 OneImage * removeResidualTilt ( OneImage * im2, OneImage * res_image ) ;
00113 /*</python>*/
00114 
00115 /*----------------------------------------------------------------------------
00116    Function     :       removeResidualOffset()
00117    In           :       second image that will be changed,
00118                         residual image must be given.
00119    Out          :       changed second image, residual image
00120    Job          :       removes the residual offset by subtracting the median
00121                         of the residual image from each column
00122  ---------------------------------------------------------------------------*/
00123 
00124 /*<python>*/
00125 OneImage * removeResidualOffset( OneImage * im2, OneImage * res_image ) ;
00126 /*</python>*/
00127 
00128 #endif 

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