X-shooter Pipeline Reference Manual 3.8.15
xsh_hist.h
Go to the documentation of this file.
1/* $Id: xsh_hist.h,v 1.3 2011-12-02 14:15:28 amodigli Exp $
2 *
3 * This file is part of the irplib package
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., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19 */
20
21/*
22 * $Author: amodigli $
23 * $Date: 2011-12-02 14:15:28 $
24 * $Revision: 1.3 $
25 * $Name: not supported by cvs2svn $
26 */
27
28#ifndef XSH_HIST_H
29#define XSH_HIST_H
30
31#include <cpl.h>
32
33typedef struct _xsh_hist_ xsh_hist;
34
35/* Creation/Destruction functions */
36
38xsh_hist_new(void);
39
40void
42
43/* Initialisation function */
44
45cpl_error_code
47 unsigned long ,
48 double ,
49 double );
50
51/* Accessor functions */
52
53unsigned long
55 const unsigned long);
56
57unsigned long
59
60double
62
63double
65
66double
68
69/* Histogram computing function */
70
71cpl_error_code
73 const cpl_image *);
74
75/* Statistics functions */
76
77unsigned long
79 unsigned long *);
80
81/* Casting function */
82
83cpl_table *
85
86/* Functions for operations on histograms */
87
88cpl_error_code
90 unsigned long);
91
92#endif /* IRPLIB_HIST_H */
93
cpl_error_code xsh_hist_collapse(xsh_hist *, unsigned long)
Definition: xsh_hist.c:300
unsigned long xsh_hist_get_value(const xsh_hist *, const unsigned long)
Definition: xsh_hist.c:106
cpl_table * xsh_hist_cast_table(const xsh_hist *)
Definition: xsh_hist.c:275
xsh_hist * xsh_hist_new(void)
Definition: xsh_hist.c:54
cpl_error_code xsh_hist_init(xsh_hist *, unsigned long, double, double)
Definition: xsh_hist.c:80
cpl_error_code xsh_hist_fill(xsh_hist *, const cpl_image *)
Definition: xsh_hist.c:174
double xsh_hist_get_bin_size(const xsh_hist *)
Definition: xsh_hist.c:133
double xsh_hist_get_start(const xsh_hist *)
Definition: xsh_hist.c:159
void xsh_hist_delete(xsh_hist *)
Definition: xsh_hist.c:64
unsigned long xsh_hist_get_max(const xsh_hist *, unsigned long *)
Definition: xsh_hist.c:249
double xsh_hist_get_range(const xsh_hist *)
Definition: xsh_hist.c:146
unsigned long xsh_hist_get_nbins(const xsh_hist *)
Definition: xsh_hist.c:121