CR2RE Pipeline Reference Manual 1.6.2
hdrl_catalogue.h
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2016 European Southern Observatory
4 *
5 * This program 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, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef HDRL_CATALOGUE_H
21#define HDRL_CATALOGUE_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26#include <cpl.h>
27
28#include "catalogue/hdrl_cat_conf.h"
29
30#include "hdrl_types.h"
31#include "hdrl_image.h"
32
33
34
35CPL_BEGIN_DECLS
36
37/*-----------------------------------------------------------------------------
38 Define
39 -----------------------------------------------------------------------------*/
40
41
42/*-----------------------------------------------------------------------------
43 Functions prototypes
44 -----------------------------------------------------------------------------*/
45
46
47typedef struct {
48 cpl_table * catalogue;
49 cpl_image * segmentation_map;
50 cpl_image * background;
51 cpl_propertylist * qclist;
52} hdrl_catalogue_result;
53
54
55
56hdrl_catalogue_result *
57hdrl_catalogue_compute(const cpl_image * image_, const cpl_image * confidence_map,
58 const cpl_wcs * wcs, hdrl_parameter * param_);
59void hdrl_catalogue_result_delete(hdrl_catalogue_result * result);
60
61hdrl_parameter * hdrl_catalogue_parameter_create(int obj_min_pixels,
62 double obj_threshold, cpl_boolean obj_deblending,
63 double obj_core_radius,
64 cpl_boolean bkg_estimate, int bkg_mesh_size,
65 double bkg_smooth_fwhm, double det_eff_gain,
66 double det_saturation,
67 hdrl_catalogue_options resulttype);
68cpl_error_code hdrl_catalogue_parameter_set_option(hdrl_parameter * par,
69 hdrl_catalogue_options opt);
70cpl_boolean hdrl_catalogue_parameter_check(const hdrl_parameter * self);
72 const cpl_parameterlist * parlist,
73 const char * prefix);
75 const char * base_context,
76 const char * prefix,
77 hdrl_parameter * defaults);
78
79
80/*-----------------------------------------------------------------------------
81 Private declarations - must not be used outside of hdrl
82 -----------------------------------------------------------------------------*/
83
84#ifdef HDRL_USE_PRIVATE
85
86#endif
87
88CPL_END_DECLS
89
90#endif
hdrl_catalogue_result * hdrl_catalogue_compute(const cpl_image *image_, const cpl_image *confidence_map, const cpl_wcs *wcs, hdrl_parameter *param_)
build object catalog
void hdrl_catalogue_result_delete(hdrl_catalogue_result *result)
delete hdrl parameter result object
hdrl_parameter * hdrl_catalogue_parameter_create(int obj_min_pixels, double obj_threshold, cpl_boolean obj_deblending, double obj_core_radius, cpl_boolean bkg_estimate, int bkg_mesh_size, double bkg_smooth_fwhm, double det_eff_gain, double det_saturation, hdrl_catalogue_options resulttype)
Creates catalogue Parameters object.
cpl_boolean hdrl_catalogue_parameter_check(const hdrl_parameter *self)
Check that the parameter is a catalogue parameter.
hdrl_parameter * hdrl_catalogue_parameter_parse_parlist(const cpl_parameterlist *parlist, const char *prefix)
Parse parameter list to create input parameters for the catalogue.
cpl_parameterlist * hdrl_catalogue_parameter_create_parlist(const char *base_context, const char *prefix, hdrl_parameter *defaults)
Create parameter list for the catalogue computation.
cpl_error_code hdrl_catalogue_parameter_set_option(hdrl_parameter *par, hdrl_catalogue_options opt)
set result option of catalogue parameter