X-shooter Pipeline Reference Manual
3.8.15
xsh
xsh_spectrum.h
Go to the documentation of this file.
1
/* $Id: xsh_spectrum.h,v 1.3 2011-12-02 14:15:28 amodigli Exp $
2
*
3
* This file is part of the irplib package
4
* Copyright (C) 2002,2003 European Southern Observatory
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19
*/
20
21
/*
22
* $Author: amodigli $
23
* $Date: 2011-12-02 14:15:28 $
24
* $Revision: 1.3 $
25
* $Name: not supported by cvs2svn $
26
*/
27
28
#ifndef XSH_SPECTRUM_H
29
#define XSH_SPECTRUM_H
30
31
/*-----------------------------------------------------------------------------
32
Includes
33
-----------------------------------------------------------------------------*/
34
35
#include <cpl.h>
36
37
/*-----------------------------------------------------------------------------
38
New types
39
-----------------------------------------------------------------------------*/
40
41
typedef
enum
SPEC_SHADOWS
{
42
/* 2 shadows above and below true spectrum */
43
TWO_SHADOWS
,
44
/* 1 shadow at specified distance from spectrum */
45
ONE_SHADOW
,
46
/* Do not search for shadow */
47
NO_SHADOW
48
}
spec_shadows
;
49
50
/*-----------------------------------------------------------------------------
51
Prototypes
52
-----------------------------------------------------------------------------*/
53
54
int
xsh_spectrum_find_brightest
(
const
cpl_image *,
int
,
spec_shadows
,
55
double
,
int
,
double
*) ;
56
cpl_vector *
xsh_spectrum_detect_peaks
(
const
cpl_vector *,
int
,
57
double
,
int
) ;
58
59
#endif
xsh_spectrum_find_brightest
int xsh_spectrum_find_brightest(const cpl_image *, int, spec_shadows, double, int, double *)
Finds the brightest spectrum in an image.
Definition:
xsh_spectrum.c:86
xsh_spectrum_detect_peaks
cpl_vector * xsh_spectrum_detect_peaks(const cpl_vector *, int, double, int)
Detect the brightest features in a spectrum.
Definition:
xsh_spectrum.c:255
SPEC_SHADOWS
SPEC_SHADOWS
Definition:
xsh_spectrum.h:41
NO_SHADOW
@ NO_SHADOW
Definition:
xsh_spectrum.h:47
TWO_SHADOWS
@ TWO_SHADOWS
Definition:
xsh_spectrum.h:43
ONE_SHADOW
@ ONE_SHADOW
Definition:
xsh_spectrum.h:45
spec_shadows
enum SPEC_SHADOWS spec_shadows
Generated by
1.9.6