CR2RE Pipeline Reference Manual 1.6.7
hdrl_imagelist_basic.h
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
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.
cpl_error_code hdrl_imagelist_div_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Divide two image lists, the first one is replaced by the result.
cpl_error_code hdrl_imagelist_add_scalar(hdrl_imagelist *, hdrl_value)
Elementwise addition of a scalar to each image in the himlist.
cpl_error_code hdrl_imagelist_collapse_mean(const hdrl_imagelist *, hdrl_image **, cpl_image **)
Mean collapsing of image list.
cpl_error_code hdrl_imagelist_add_image(hdrl_imagelist *, const hdrl_image *)
Add an image to an image list.
cpl_error_code hdrl_imagelist_pow_scalar(hdrl_imagelist *, hdrl_value)
Compute the elementwise power of each image in the himlist.
cpl_error_code hdrl_imagelist_div_scalar(hdrl_imagelist *, hdrl_value)
Elementwise division by a scalar to each image in the himlist.
cpl_error_code hdrl_imagelist_sub_image(hdrl_imagelist *, const hdrl_image *)
Subtract an image from an image list.
cpl_error_code hdrl_imagelist_sub_scalar(hdrl_imagelist *, hdrl_value)
Elementwise subtraction of a scalar to each image in the himlist.
cpl_error_code hdrl_imagelist_collapse(const hdrl_imagelist *himlist, const hdrl_parameter *param, hdrl_image **out, cpl_image **contrib)
collapsing of image list
cpl_error_code hdrl_imagelist_mul_scalar(hdrl_imagelist *, hdrl_value)
Elementwise multiplication of a scalar to each image in the himlist.
cpl_error_code hdrl_imagelist_collapse_median(const hdrl_imagelist *, hdrl_image **, cpl_image **)
Median collapsing of image list.
cpl_error_code hdrl_imagelist_mul_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Multiply two image lists, the first one is replaced by the result.
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.
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.
cpl_error_code hdrl_imagelist_sub_imagelist(hdrl_imagelist *, const hdrl_imagelist *)
Subtract two image lists, the first one is replaced by the result.
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.
cpl_error_code hdrl_imagelist_collapse_weighted_mean(const hdrl_imagelist *, hdrl_image **, cpl_image **)
Weighted Mean collapsing of image list.
cpl_error_code hdrl_imagelist_mul_image(hdrl_imagelist *, const hdrl_image *)
Multiply an image by an image list.
cpl_error_code hdrl_imagelist_div_image(hdrl_imagelist *, const hdrl_image *)
Divide an image from an image list.