fors_extract.h

00001 /* $Id: fors_extract.h,v 1.10 2010/09/14 07:49:30 cizzo Exp $
00002  *
00003  * This file is part of the FORS Library
00004  * Copyright (C) 2002-2010 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  02110-1301 USA
00019  */
00020 
00021 /*
00022  * $Author: cizzo $
00023  * $Date: 2010/09/14 07:49:30 $
00024  * $Revision: 1.10 $
00025  * $Name: fors-4_8_6 $
00026  */
00027 
00028 #ifndef FORS_EXTRACT_H
00029 #define FORS_EXTRACT_H
00030 
00031 #include <fors_star.h>
00032 #include <fors_image.h>
00033 
00034 #include <cpl.h>
00035 
00036 CPL_BEGIN_DECLS
00037 
00038 typedef struct _extract_method extract_method;
00039 
00040 typedef struct fors_extract_sky_stats {
00041     double mean, median, rms;
00042 } fors_extract_sky_stats;
00043 
00044 void 
00045 fors_extract_define_parameters(             cpl_parameterlist *parameters, 
00046                                             const char *context);
00047 
00048 bool
00049 fors_extract_check_sex_flag(                unsigned int    sex_flag);
00050 
00051 bool
00052 fors_extract_check_sex_star(                const fors_star *star,
00053                                             const cpl_image *ref_img);
00054 
00055 
00056 extract_method *
00057 fors_extract_method_new(                    const cpl_parameterlist *parameters,
00058                                             const char *context);
00059 
00060 void
00061 fors_extract_method_delete(                 extract_method **em);
00062 
00063 fors_star_list *
00064 fors_extract(                               const fors_image *image, 
00065                                             const fors_setting *setting,
00066                                             const extract_method *em,
00067                                             fors_extract_sky_stats *sky_stats,
00068                                             cpl_image **background,
00069                                             cpl_table **extracted_sources);
00070 
00071 
00072 CPL_END_DECLS
00073 
00074 #endif

Generated on Fri Mar 4 09:46:00 2011 for FORS Pipeline Reference Manual by  doxygen 1.4.7