ERIS Pipeline Reference Manual 1.9.2
eris_nix_match.h
1/* $Id$
2 *
3 * This file is part of the ERIS/NIX Pipeline
4 * Copyright (C) 2017 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$
23 * $Date$
24 * $Rev$
25 */
26
27#ifndef ERIS_NIX_MATCH_H
28#define ERIS_NIX_MATCH_H
29
30#ifdef HAVE_CONFIG_H
31#include <config.h>
32#endif
33
34/*-----------------------------------------------------------------------------
35 Includes
36 -----------------------------------------------------------------------------*/
37
38#include <cpl.h>
39#include "eris_nix_utils.h"
40
41/*-----------------------------------------------------------------------------
42 Prototypes
43 -----------------------------------------------------------------------------*/
44
45cpl_error_code enm_associate_std(cpl_table * objtab,
46 cpl_table * stdtab,
47 const float srad,
48 const int strict_classification,
49 cpl_table ** associated_std);
50
51cpl_error_code enm_correct_crpix(const char * wcs_method,
52 const char * catalogue,
53 cpl_table * matched_stds,
54 located_image * limage,
55 cpl_matrix ** xy_shift);
56
57cpl_error_code enm_try_all_associations(cpl_table * objtab,
58 cpl_table * stdtab,
59 const double match_rad,
60 cpl_table ** matchtab);
61
62cpl_error_code enm_try_association(const double xstd[],
63 const double ystd[],
64 const cpl_size nstd,
65 const double xobj[],
66 const double yobj[],
67 const cpl_size nobj,
68 const cpl_size is,
69 const cpl_size io,
70 cpl_matrix ** distances);
71#endif
cpl_error_code enm_correct_crpix(const char *wcs_method, const char *catalogue, cpl_table *matched_stds, located_image *limage, cpl_matrix **xy_shift)
Apply median offsets from matched standards table to image.
cpl_error_code enm_try_association(const double xstd[], const double ystd[], const cpl_size nstd, const double xobj[], const double yobj[], const cpl_size nobj, const cpl_size is, const cpl_size io, cpl_matrix **distances)
Method to calculate 'distances' matrix given an object association.
cpl_error_code enm_try_all_associations(cpl_table *objtab, cpl_table *stdtab, const double match_rad, cpl_table **matchtab)
Match standards with objects by trying all possibilities and selecting best.
cpl_error_code enm_associate_std(cpl_table *objtab, cpl_table *stdtab, const float srad, const int strict_classification, cpl_table **associated_std)
Associate image catalogue objects with standards.