irplib_spectrum.h

00001 /* $Id: irplib_spectrum.h,v 1.7 2009/07/30 12:38:37 yjung Exp $
00002  *
00003  * This file is part of the irplib package
00004  * Copyright (C) 2002,2003 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  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: yjung $
00023  * $Date: 2009/07/30 12:38:37 $
00024  * $Revision: 1.7 $
00025  * $Name: HEAD $
00026  */
00027 
00028 #ifndef IRPLIB_SPECTRUM_H
00029 #define IRPLIB_SPECTRUM_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 /*-----------------------------------------------------------------------------
00038                                 New types
00039  -----------------------------------------------------------------------------*/
00040 
00041 typedef enum SPEC_SHADOWS {
00042     /* 2 shadows above and below true spectrum */
00043     TWO_SHADOWS,
00044     /* 1 shadow at specified distance from spectrum */
00045     ONE_SHADOW,
00046     /* Do not search for shadow */
00047     NO_SHADOW
00048 } spec_shadows ;
00049 
00050 /*-----------------------------------------------------------------------------
00051                                 Prototypes
00052  -----------------------------------------------------------------------------*/
00053 
00054 int irplib_spectrum_find_brightest(const cpl_image *, int, spec_shadows, 
00055         double, int, double *) ;
00056 cpl_vector * irplib_spectrum_detect_peaks(const cpl_vector *, int,
00057         double, int, cpl_vector **, cpl_vector **) ;
00058 
00059 #endif

Generated on 3 Mar 2013 for DETMON Pipeline Reference Manual by  doxygen 1.6.1