High-Level Data Reduction Library: hdrl_imagelist_basic.h Source File

High-Level Data Reduction Library 1.6.0 High-Level data reduction routines for ESO pipelines

Loading...
Searching...
No Matches
hdrl_imagelist_basic.h
Go to the documentation of this file.
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2013 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_IMAGELIST_BASIC_H
21#define HDRL_IMAGELIST_BASIC_H
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26
27#include "hdrl_collapse.h"
28#include "hdrl_parameter.h"
29#include "hdrl_imagelist.h"
30
31CPL_BEGIN_DECLS
32
33/*-----------------------------------------------------------------------------
34 Function prototypes
35 -----------------------------------------------------------------------------*/
36
37/* Imagelist Basic Operations */
38cpl_error_code hdrl_imagelist_add_imagelist(hdrl_imagelist *,
39 const hdrl_imagelist *);
40cpl_error_code hdrl_imagelist_sub_imagelist(hdrl_imagelist *,
41 const hdrl_imagelist *);
42cpl_error_code hdrl_imagelist_mul_imagelist(hdrl_imagelist *,
43 const hdrl_imagelist *);
44cpl_error_code hdrl_imagelist_div_imagelist(hdrl_imagelist *,
45 const hdrl_imagelist *);
46
47cpl_error_code hdrl_imagelist_add_image(hdrl_imagelist *, const hdrl_image *);
48cpl_error_code hdrl_imagelist_sub_image(hdrl_imagelist *, const hdrl_image *);
49cpl_error_code hdrl_imagelist_mul_image(hdrl_imagelist *, const hdrl_image *);
50cpl_error_code hdrl_imagelist_div_image(hdrl_imagelist *, const hdrl_image *);
51
52cpl_error_code hdrl_imagelist_add_scalar(hdrl_imagelist *, hdrl_value);
53cpl_error_code hdrl_imagelist_sub_scalar(hdrl_imagelist *, hdrl_value);
54cpl_error_code hdrl_imagelist_mul_scalar(hdrl_imagelist *, hdrl_value);
55cpl_error_code hdrl_imagelist_div_scalar(hdrl_imagelist *, hdrl_value);
56cpl_error_code hdrl_imagelist_pow_scalar(hdrl_imagelist *, hdrl_value);
57
58/* Collapsing functions */
59cpl_error_code hdrl_imagelist_collapse(
60 const hdrl_imagelist * himlist,
61 const hdrl_parameter * param,
62 hdrl_image ** out,
63 cpl_image ** contrib);
64cpl_error_code hdrl_imagelist_collapse_mean(const hdrl_imagelist *,
65 hdrl_image **, cpl_image **) ;
66cpl_error_code hdrl_imagelist_collapse_weighted_mean(const hdrl_imagelist *,
67 hdrl_image **, cpl_image **) ;
68cpl_error_code hdrl_imagelist_collapse_median(const hdrl_imagelist *,
69 hdrl_image **, cpl_image **) ;
70cpl_error_code hdrl_imagelist_collapse_sigclip(const hdrl_imagelist *,
71 double, double, int, hdrl_image **, cpl_image **,
72 cpl_image **, cpl_image **) ;
73cpl_error_code hdrl_imagelist_collapse_minmax(const hdrl_imagelist *,
74 double, double, hdrl_image **, cpl_image **,
75 cpl_image **, cpl_image **) ;
76cpl_error_code hdrl_imagelist_collapse_mode(const hdrl_imagelist *, double,
77 double, double, hdrl_mode_type,
78 cpl_size, hdrl_image **,
79 cpl_image **) ;
80
81CPL_END_DECLS
82
83#endif
hdrl_imagelist.h
hdrl_mode_type
hdrl_mode_type
Define the type of the mode that should be computed.
Definition hdrl_mode_defs.h:33
hdrl_collapse.h
hdrl_parameter.h
hdrl_parameter
struct _hdrl_parameter_ hdrl_parameter
Definition hdrl_parameter.h:27
hdrl_imagelist_collapse_sigclip
cpl_error_code hdrl_imagelist_collapse_sigclip(const hdrl_imagelist *, double, double, int, hdrl_image **, cpl_image **, cpl_image **, cpl_image **)
Sigma-clipped collapsing of image list.
Definition hdrl_imagelist_basic.c:554
hdrl_imagelist_div_imagelist
cpl_error_code hdrl_imagelist_div_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Divide two image lists, the first one is replaced by the result.
Definition hdrl_imagelist_basic.c:168
hdrl_imagelist_add_scalar
cpl_error_code hdrl_imagelist_add_scalar(hdrl_imagelist *, hdrl_value)
Elementwise addition of a scalar to each image in the himlist.
Definition hdrl_imagelist_basic.c:282
hdrl_imagelist_collapse_mean
cpl_error_code hdrl_imagelist_collapse_mean(const hdrl_imagelist *, hdrl_image **, cpl_image **)
Mean collapsing of image list.
Definition hdrl_imagelist_basic.c:476
hdrl_imagelist_add_image
cpl_error_code hdrl_imagelist_add_image(hdrl_imagelist *, const hdrl_image *)
Add an image to an image list.
Definition hdrl_imagelist_basic.c:191
hdrl_imagelist_pow_scalar
cpl_error_code hdrl_imagelist_pow_scalar(hdrl_imagelist *, hdrl_value)
Compute the elementwise power of each image in the himlist.
Definition hdrl_imagelist_basic.c:376
hdrl_imagelist_div_scalar
cpl_error_code hdrl_imagelist_div_scalar(hdrl_imagelist *, hdrl_value)
Elementwise division by a scalar to each image in the himlist.
Definition hdrl_imagelist_basic.c:354
hdrl_imagelist_sub_image
cpl_error_code hdrl_imagelist_sub_image(hdrl_imagelist *, const hdrl_image *)
Subtract an image from an image list.
Definition hdrl_imagelist_basic.c:214
hdrl_imagelist_sub_scalar
cpl_error_code hdrl_imagelist_sub_scalar(hdrl_imagelist *, hdrl_value)
Elementwise subtraction of a scalar to each image in the himlist.
Definition hdrl_imagelist_basic.c:306
hdrl_imagelist_collapse
cpl_error_code hdrl_imagelist_collapse(const hdrl_imagelist *himlist, const hdrl_parameter *param, hdrl_image **out, cpl_image **contrib)
collapsing of image list
Definition hdrl_imagelist_basic.c:413
hdrl_imagelist_mul_scalar
cpl_error_code hdrl_imagelist_mul_scalar(hdrl_imagelist *, hdrl_value)
Elementwise multiplication of a scalar to each image in the himlist.
Definition hdrl_imagelist_basic.c:330
hdrl_imagelist_collapse_median
cpl_error_code hdrl_imagelist_collapse_median(const hdrl_imagelist *, hdrl_image **, cpl_image **)
Median collapsing of image list.
Definition hdrl_imagelist_basic.c:524
hdrl_imagelist_mul_imagelist
cpl_error_code hdrl_imagelist_mul_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Multiply two image lists, the first one is replaced by the result.
Definition hdrl_imagelist_basic.c:150
hdrl_imagelist_add_imagelist
CPL_BEGIN_DECLS cpl_error_code hdrl_imagelist_add_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Add two image lists, the first one is replaced by the result.
Definition hdrl_imagelist_basic.c:114
hdrl_imagelist_collapse_mode
cpl_error_code hdrl_imagelist_collapse_mode(const hdrl_imagelist *, double, double, double, hdrl_mode_type, cpl_size, hdrl_image **, cpl_image **)
Mode collapsing of image list.
Definition hdrl_imagelist_basic.c:686
hdrl_imagelist_sub_imagelist
cpl_error_code hdrl_imagelist_sub_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Subtract two image lists, the first one is replaced by the result.
Definition hdrl_imagelist_basic.c:132
hdrl_imagelist_collapse_minmax
cpl_error_code hdrl_imagelist_collapse_minmax(const hdrl_imagelist *, double, double, hdrl_image **, cpl_image **, cpl_image **, cpl_image **)
Minmax-clipped collapsing of image list.
Definition hdrl_imagelist_basic.c:619
hdrl_imagelist_collapse_weighted_mean
cpl_error_code hdrl_imagelist_collapse_weighted_mean(const hdrl_imagelist *, hdrl_image **, cpl_image **)
Weighted Mean collapsing of image list.
Definition hdrl_imagelist_basic.c:500
hdrl_imagelist_mul_image
cpl_error_code hdrl_imagelist_mul_image(hdrl_imagelist *, const hdrl_image *)
Multiply an image by an image list.
Definition hdrl_imagelist_basic.c:237
hdrl_imagelist_div_image
cpl_error_code hdrl_imagelist_div_image(hdrl_imagelist *, const hdrl_image *)
Divide an image from an image list.
Definition hdrl_imagelist_basic.c:260
_hdrl_image_
Definition hdrl_image_defs.h:40
_hdrl_imagelist_
Definition hdrl_imagelist_defs.h:42
hdrl_value
Definition hdrl_types.h:77