FORS Pipeline Reference Manual  5.0.9
fors_flat_normalise.h
1 /* $Id: fors_flat_normalise.h,v 1.3 2013-09-09 12:14:12 cgarcia Exp $
2  *
3  * This file is part of the VIMOS Pipeline
4  * Copyright (C) 2002-2010 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 02110-1301 USA
19  */
20 
21 /*
22  * $Author: cgarcia $
23  * $Date: 2013-09-09 12:14:12 $
24  * $Revision: 1.3 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef FORS_FLAT_NORMALISE_H
29 #define FORS_FLAT_NORMALISE_H
30 
31 #include <cpl.h>
32 #include "mosca_image.h"
33 #include "wavelength_calibration.h"
34 
35 namespace fors
36 {
37 
39 {
40 
41 public:
42 
44  ~flat_normaliser();
45 
46  int mos_normalise(mosca::image& flat,
47  const mosca::wavelength_calibration& wave_cal,
48  cpl_image *spatial,
49  cpl_table *slits, cpl_table *polytraces,
50  double blue, double red,
51  double dispersion,
52  int spa_smooth_radius, int disp_smooth_radius,
53  int spa_fit_polyorder, int disp_fit_nknots,
54  double fit_threshold);
55 
56  int lss_normalise(mosca::image& flat,
57  const mosca::wavelength_calibration& wave_cal,
58  int spa_smooth_radius, int disp_smooth_radius,
59  int spa_fit_polyorder, int disp_fit_nknots,
60  double fit_threshold);
61 
62  const mosca::image& get_normalisation_image() const;
63 
64  const std::vector<std::vector<float> >& get_wave_profiles() const;
65 
66  const std::vector<float>& get_wave_profiles_norm() const;
67 
68  cpl_image * get_wave_profiles_im() const;
69 
70 private:
71 
72  mosca::image m_normalisation_image;
73 
74  std::vector<std::vector<float> > m_wave_profiles;
75 
76  std::vector<float> m_wave_profiles_norm;
77 
78 };
79 
80 }
81 
82 #endif /* FORS_FLAT_NORMALISE_H */