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 */
39 const hdrl_imagelist *);
41 const hdrl_imagelist *);
43 const 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
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 **) ;
67 hdrl_image **, cpl_image **) ;
69 hdrl_image **, cpl_image **) ;
71 double, double, int, hdrl_image **, cpl_image **,
72 cpl_image **, cpl_image **) ;
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_mode_type
Define the type of the mode that should be computed.
Definition hdrl_mode_defs.h:33
struct _hdrl_parameter_ hdrl_parameter
Definition hdrl_parameter.h:27
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Definition hdrl_image_defs.h:40
Definition hdrl_imagelist_defs.h:42
Definition hdrl_types.h:77