UVES Pipeline Reference Manual  5.4.6
uves_orderpos_hough.h
1 /* *
2  * This file is part of the ESO UVES Pipeline *
3  * Copyright (C) 2002,2003 European Southern Observatory *
4  * *
5  * This library is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public License *
16  * along with this program; if not, write to the Free Software *
17  * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA *
18  * */
19 
20 /*
21  * $Author: amodigli $
22  * $Date: 2011-12-08 13:56:30 $
23  * $Revision: 1.9 $
24  * $Name: not supported by cvs2svn $
25  * $Log: not supported by cvs2svn $
26  * Revision 1.8 2010/09/24 09:32:05 amodigli
27  * put back QFITS dependency to fix problem spot by NRI on FIBER mode (with MIDAS calibs) data
28  *
29  * Revision 1.6 2007/06/06 08:17:33 amodigli
30  * replace tab with 4 spaces
31  *
32  * Revision 1.5 2007/04/17 09:34:40 jmlarsen
33  * Parametrize the assumption about consecutive orders (for FLAMES support)
34  *
35  * Revision 1.4 2006/08/17 13:56:53 jmlarsen
36  * Reduced max line length
37  *
38  * Revision 1.3 2006/06/08 08:42:53 jmlarsen
39  * Added support for computing Hough transform on image subwindow
40  *
41  * Revision 1.2 2006/02/15 13:19:15 jmlarsen
42  * Reduced source code max. line length
43  *
44  * Revision 1.1 2006/02/03 07:46:30 jmlarsen
45  * Moved recipe implementations to ./uves directory
46  *
47  * Revision 1.8 2005/12/19 16:17:55 jmlarsen
48  * Replaced bool -> int
49  *
50  */
51 #ifndef UVES_ORDERPOS_HOUGH_H
52 #define UVES_ORDERPOS_HOUGH_H
53 #include <uves_cpl_size.h>
54 #include <cpl.h>
55 
56 #include <stdbool.h>
57 
58 cpl_table *uves_hough(const cpl_image *image, int ymin, int ymax, int NORDERS,
59  bool norders_is_guess,
60  int SAMPLEWIDTH, double PTHRES, double MINSLOPE,
61  double MAXSLOPE,
62  int SLOPERES, bool consecutive,
63  cpl_image **htrans,
64  cpl_image **htrans_original);
65 
66 cpl_error_code uves_draw_orders(const cpl_table *, cpl_image *);
67 
68 #endif /* UVES_ORDERPOS_HOUGH_H */
cpl_table * uves_hough(const cpl_image *image, int ymin, int ymax, int NORDERS, bool norders_is_guess, int SAMPLEWIDTH, double PTHRES, double MINSLOPE, double MAXSLOPE, int SLOPERES, bool consecutive, cpl_image **htrans, cpl_image **htrans_original)
Compute Hough transform and detect lines.
cpl_error_code uves_draw_orders(const cpl_table *, cpl_image *)
Draw detected order lines.