OMEGA Pipeline Reference Manual  1.0.6
omega_trim.h
1 /* $Id: omega_trim.h,v 1.1.1.1 2011-03-16 11:59:34 agabasch Exp $
2  *
3  * This file is part of the OMEGA Pipeline
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: agabasch $
23  * $Date: 2011-03-16 11:59:34 $
24  * $Revision: 1.1.1.1 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef OC_TRIMOSCAN_H
29 #define OC_TRIMOSCAN_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 #include "omega_fits.h"
37 
38 cpl_image * TrimOscanCorrect (const cpl_frame *, int , int );
39 cpl_image *omega_trim_oscan_correct(omega_fits *ofits, int oscan);
40 /*void DoStatistics (cpl_frame *, cpl_image *, int );*/
41 void DoStatistics (const cpl_frame *, cpl_image *, int,cpl_stats **,cpl_stats **,cpl_stats **,cpl_stats ** );
42 void omega_scan_stats (omega_fits *ofits,cpl_stats **px,cpl_stats **py,
43  cpl_stats **ox,cpl_stats **oy);
44 cpl_vector * omega_get_scan_coord(const cpl_propertylist *plist, int iscan);
45 cpl_image *oscan_row (cpl_image *, int , int );
46 cpl_vector * get_trim_region (const cpl_frame *, int);
47 cpl_vector * omega_get_trim_region(omega_fits *ofits);
48 
49 
50 #endif
void DoStatistics(const cpl_frame *, cpl_image *, int, cpl_stats **, cpl_stats **, cpl_stats **, cpl_stats **)
This function performs several statistics on the image and populates the 4 cpl_stats with CPL_STATS_A...
Definition: omega_trim.c:692
cpl_vector * get_trim_region(const cpl_frame *, int)
Get trim regions based on orientation keyword.
Definition: omega_trim.c:443
void omega_scan_stats(omega_fits *ofits, cpl_stats **px, cpl_stats **py, cpl_stats **ox, cpl_stats **oy)
This function performs several statistics on the image and populates the 4 cpl_stats with CPL_STATS_A...
Definition: omega_trim.c:811
cpl_image * TrimOscanCorrect(const cpl_frame *, int, int)
This method loads a raw image, trims it and (optionally) performs an overscan correction, using the statistics of the pre and overscan regions. This can be done with a single value for the whole image or on a per-row basis.
Definition: omega_trim.c:87
cpl_image * oscan_row(cpl_image *, int, int)
subtract median of overscan from each row
Definition: omega_trim.c:376
cpl_vector * omega_get_trim_region(omega_fits *ofits)
Get trim regions based on CCD layout.
Definition: omega_trim.c:593
cpl_vector * omega_get_scan_coord(const cpl_propertylist *plist, int iscan)
This method calculates the FITS coordinates of the pre/overscan region in the iscan direction...
Definition: omega_trim.c:919
cpl_image * omega_trim_oscan_correct(omega_fits *ofits, int oscan)
This method loads a raw image, trims it and (optionally) performs an overscan correction, using the statistics of the pre and overscan regions. This can be done with a single value for the whole image or on a per-row basis.
Definition: omega_trim.c:248